Is there any way to get the scripts updated to allow install of ethernet drivers before the payload is installed? I have a Nettop box that does not have support to the ethernet devices by default? I would like to installed CentOs, pause for custom ethernet drivers, then a resume of install.
I guess I just could not find any details on this but, in the end, it was easy.
I think my problem is that my system needs a driver to access the internet. So no internet until the install is done and I can install the appropriate drivers. Perhaps I can attempt to install it on the flash drive.Dec 24, 2010: Uploaded new config files (the process should be more robust on a wider range of machines).
Pbx in a Flash on a Flash - the quick method.
Note: I have significantly changed the procedure from the original. The Centos DVD is no longer required and you use the *.cfg files in the attached archive. A USB drive with free space of 655 MB or greater can be used.
After a lot of reading and testing I was able to get PIAF to install from a bootable USB flash drive. Read all the procedures before you start. The article is long but the process is not complex.
This list below is a summary of the procedures so you get an overall picture of what you will be doing:Booting from a flash drive offers a lot of advantages. Among them:
- Edit PIAF ISO to add a folder named Centos or use PIAF 1.7.5.5.5 ISO.
- Make the flash drive linux bootable using UNetbootin
- Copy the modified pbxiaf iso (or IAF 1.7.5.5.5 ISO) to flash drive CentOS folder.
- Copy the downloaded syslinux and kickstart config files to the root (/) folder of the flash drive
- Upgrade existing Centos Install
- Advanced users can easily modify the installation by adding packages are other changes
- New PIAF releases only need the iso on the flash replaced (no need to burn new CDs)
- Easy testing of new deployments by changing the flash drive contents
- Generally make changes to installations very easily by editing a portable flash drive
- Install on any machine with a flash drive (no need for the box to have a cd drive). Easy install on the Acer Aspire Revo and others with no cd drive
PrerequisitesRead the complete instructions before attempting this procedure. If used improperly this procedure can result in data loss or erasing of an incorrect drive. You have been warned. The usual caveats apply: You are not required to use this procedure and so if you lose any data for whatever reason or by whatever means you are solely responsible for such loss. However if done properly this procedure is very safe.
- 1 GB of Larger USB flash Drive. This procedure needs about 655 MB or greater free. A smaller drive can be used with some customizations (e.g., for a network only install, the drive needs only about 200 kb free)
- PIAF 1.7.5.5.5 install ISO
- UNetbootin from http://unetbootin.sourceforge.net/ Note that UNetbootin works on Windows and Linux (Ubuntu Debian Fedora Suse Arch Gentoo etc).
InstructionsThe *.cfg files in the root of the flash drive were changed: syslinux.cfg and ks*.cfg (ks.cfg, ksauto.cfg, kslvm.cfg, ksmin.cfg, ksnet.cfg, ksraid.cfg). To get this working, at a minimum the syslinux.cfg and one of the ks*.cfg need to be edited/changed. For an automated install we will point to the ks.cfg file at http://www.pbxinaflash.net/ksdir/ks.cfg or http://www.pbxinaflash.com/ksdir/ks.cfg.
- If you have not done so yet, Download the experimental PIAF 1.7.5.5.5 install ISO from SourceForge.
- If the flash drive is formated as FAT with only one partition, it does does not need to be formated or erased. Additional files can be added to it later. However you should backup any files you need. An initially empty flash drive is easier to manage. If it is not already formated FAT 32, format the flash drive as FAT 32. It needs a sufficiently large primary partition (about 1 Gb or greater for a complete self contained install)
- Insert the flash drive. In Linux it will need to be mounted. In Windows make absolutely sure you know the drive letter windows has assigned to the flash drive.
- Run UNetbootin. Select the Diskimage button. Browse to 1.7.5.5.5 pbxinaflash iso and select. Make sure you choose correct Drive letter/Device for flash drive. Then click OK to create the live usb drive. You do not need to reboot when finished.
- UNetbootin will create a bootable USB drive with the piaf iso copied to the USB drive. You can delete some files and folders as they will not be required.
- Browse to the folder. In linux you can also do this from a terminal and use the proper commands or a X windows file manager.
- On the flash drive, delete the following folders/directories:
Code:docs, images, pbx, repodata, source
- On the flash drive: If it does not already exist; Create a folder/directory named CentOS (remember exact case is important). It should already exist since it is in the pbiaf iso.
- Copy the 1.7.5.5.5 piaf iso to the CentOS folder on the flash drive.
- Extract the files in the ks.zip archive attached to this post to the root (/) of the USB flash drive
- That's it, the flash drive is done.
The Linux bootloader uses the instructions in syslinux.cfg and the selected ks*.cfg file to control the bootup and install process. ks.cfg files are called Kickstart files and are used to automate the install process. On X windows Linux you can install and use the graphical Kickstart Configurator package. This makes editing a kickstart (ks*.cfg) file much easier.
To linux the flash drive is like another hard drive. Linux mounts your hard drives as block devices and assigns the drive a device name of the form sda or hda (hda for ide drives, sda for SATA drives and our flash drive). Each partition on each drive is assigned a partition number (from 1 to 4 for primary partitions and from 5 up for extended partitions).
The flash drive device will be sdX (where X is a letter like a, b, c). The partitions are addressed as sdX1, sdX2 (sdb1, sdb2 etc). The mostly likely device name will be sdb (but you must make absolutely sure you know the device name), though code in the files will try and usually detect it correctly. The flash drive needs to have a primary partition formatted as fat32. Thus the most likely device name for the first partition on the flash drive will be sdb1 (this is the name on a stock Acer Aspire Revo).
If the flash drive is not not sdb, the install will pause and ask you to select the drive with the install files. The flash drive will be one of the sdx drives (sda or sdc etc)
The Kickstart files
The default pbx in a flash install erases all hard drives. Recall that Centos treats the flash drive as a hard drive so we need to edit our ks*.cfg files to tell it not to erase or partition our flash drive.
I added code to the downloaded kickstart config files to address the following issues:We will use the ks.cfg files at the piaf website as shown above. The downloaded syslinux.cfg files point to the ks*.cfg files at pbxinaflash.net
- Prevent partition formating of the flash drive during boot.
- Have the GRUB bootloader installed on the master boot record of the correct drive and not our flash drive
- Tell the CentOS anaconda boot script the device name of our drives and the folder that contains the install ISO images.
- Let the install find all packages to be installed
That is it. Insert the flash drive and boot the computer to install pbx in a flash. First, either enter the bios and change the boot order to USB drive first or interrupt the boot process by pressing the appropriate key (F12 on the Acer Revo) then selecting boot from USB drive.
Let me know if you discover any inaccuracies or issues and I will correct or revise.
There are other advanced and cool ways to change the kickstart files but I will leave those for comments and for advanced users.
Note: The procedure should be considered experimental. Please let me know any issues that you discover so that they can be fixed.
Thanks
Hi, I have tried to install the latest build, 17562 on an Acer Aspire One. It will pull up the starting install page with the warning and shows the "root" prompt but the keyboard does not respond. How do you get that functioning?
thanks!
label ubnentry7
menu label ksraid (raid install)
kernel /isolinux/vmlinuz
append initrd=/isolinux/initrd.img ks text ramdisk_size=8192 ks=http://www.pbxinaflash.com/ksdir/ks.cfg method=hd:sdb1:/CentOS
ks=http://www.pbxinaflash.com/ksdir/ks.cfg
ks=hd:sdc1:/ksraid.cfg
zerombr
clearpart --all --initlabel
part raid.01 --size=100 --ondisk=sda --asprimary
part raid.02 --size=100 --ondisk=sdb --asprimary
part raid.11 --size=1024 --ondisk=sda
part raid.12 --size=1024 --ondisk=sdb
part raid.21 --size=100 --grow --ondisk=sda
part raid.22 --size=100 --grow --ondisk=sdb
raid /boot --level=1 --device=md0 --fstype=ext3 raid.01 raid.02
raid swap --level=1 --device=md1 --fstype=swap raid.11 raid.12
raid / --level=1 --device=md2 --fstype=ext3 raid.21 raid.22
Hello,
I'm trying to get this to work on a Rhino Cerus 1U server with 2 hard drives.
When I boot from the flash drive, I get to the setup options. If I select ksraid, it says the kernel cannot find that module. If I hit Enter and accept the default setup, it then asks me to locate the CentOS folder. I point it to the proper drive for this and the setup continues. It goes back to the setup options, I can now select ksraid. But at the end of the install RAID is not setup.
Can anyone offer any suggestions?
Thanks,
Daniel
Link up your team and customers Phone System Live Chat Video Conferencing
Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.
Check your inbox!
We’ve sent you an email. Click on the button in the email body to verify your email address – (if you can not find it, check your spam folder).
Upon verification you will be directed to the 3CX setup wizard.