Kickstart means automated OS installation. Most Linux OS installation can be done via Kickstart and it can be performed using local boot media or over network(FTP, HTTP, NFS and etc).
Here, we’re going to talk about using HTTP method to perform Kickstart.
- Boot media (for creating a USB bootdisk, you can refer to my earlier article)
- You should have the Centos installation CD/image to crate the installation tree
- Running Webserver for Kick Start OS installation
- Running DHCP server (Optional)
Setting Up Kickstart server:
- Create a directory name “Centos5.5″ in your webserver DocumentRoot.
- eg: mount -o ro /dev/sdc /media/cdrom
- Insert the Centos CD-ROMs and copy all the binaries into that directory (copy the binaries from all the installation CD-ROMs)
- eg: cp iVaf /media/cdrom/Centos /var/www/html/Centos5.5
- Create an answer file for automate the installation process.
- You can use any kick start configurator tool or refer to the file /root/anaconda-ks.cfg in any of your Linux machine.
- Or you may download my sample ks.cfg (18) as reference
- Copy the ks.cfg file to your Centos5.5 directory.
- You will have 1 new directory and 1 ks.cfg created like below:
- For example /var/www/html is your DocumentRoot
- You will have /var/www/html/Centos5.5 and /var/www/html/Centos5.5/ks.cfg
- Attached boot media and then boot up the machine that you want to perform Kickstart OS installation.
- Configure the BIOS setting to make your boot media as “First Boot Device”
- You will see OS installation menu screen, fro there type in below BOLDcommand
- boot: linux ks=http://192.168.1.1/~chenhow/Centos5.5/ks.cfg
- Then, the installation process will start and everything should be automated.