How to serve a Kickstart file over the network without a DHCP server

installkickstartrhel

I want to install CentOS 5.5 on two systems. I have a kickstart file.

I would like to install CentOS on a system using this kickstart file. I'm reading the instructions provided by fedoraproject.org and RedHat.com, but they suggest using a DHCP server. I don't want to set up a DHCP server right now, and I can't have DHCP traffic on this LAN.

How can I make this kickstart available over the network without using DHCP to assign an IP and point to the file I know that it is possible to make the Kickstart file available over HTTP, FTP or NFS. How can I configure the RedHat installer to have an IP address on the network and grab the kickstart file from a remote server?

Best Answer

The dhcp server doesn't actually serve the file. The dhcp server assigns an IP address to a host (pxe client) which lacks an operating system when it boots. In addition to the IP address, the dhcp server can tell the pxe client that it should contact a separate server for a boot loader and then the pxe client downloads the boot loader (usually using tftp) loads it, and the boot loader can be configured to download the actual kickstart file using one several protocols, including http and nfs.

If you don't want to use dhcp, you could always boot the host off of a cdrom, and at the prompt where you usually just type linux to start the attended installation process, you can pass in your kickstart file as a kernel option along with a static networking configuration.

Related Question