Linux – CentOS Install – Starting a Kickstart

centoscentos6kickstartlinux

I have a kickstart file hosted. Let's say it is hosted at http://example.com/ks/ks.cfg

I booted the CentOS 6.2 media and hit tab. Before editing anything this shows:

vmlinuz initrd=initrd.img 

I have been reading online and I found that I should replace that with this:

linux ks=http://example.com/ks/ks.cfg

I have two questions about this:

1) Once I hit enter, it is suppose to save, right? If I hit tab again it appears to be back to the original "vmlinuz initrd=initrd.img". Why isn't it saving?

2) I am considering using a disk or floppy instead to hold the kickstart. If I am to continue with the hosted kickstart file, how can I configure the network before the install to ensure that the server can access the kickstart file to install?

Sorry if any of these questions are amateurish!

Best Answer

With EL6, all you need to type is ks=http://example.com/ks/ks.cfg. You don't need linux anymore.

As for network configuration, you can enter some basic network parameters at the same prompt... Most people prefer DHCP, the default... but something like this also works... Append this to the boot line:

ks=http://example.com/ks/ks.cfg ip=192.168.10.17 netmask=255.255.255.0 dns=192.168.10.22 gateway=192.168.10.1 ksdev=eth0

Note - Be sure to make sure that there's no problem reaching the kickstart URL from the server's network (web filters/firewalls/etc.)

Hit TAB to enter the boot menu. enter image description here

Append the kickstart configuration information after initrd.img. enter image description here

Hit Enter to start booting.
enter image description here

If you don't specify ksdevice=, you'll be prompted for an interface to load kickstart data from. enter image description here