I am building a lot of temporary hosts at the moment and being able to install them as quickly as possible is always good. So I have decided to install a PXE server that will allow my installations to install without human intervention.
To setup this you need an existing host that contains a mirror of Centos (you can get away without a mirror but syncing a mirror is so much faster than going out onto the internet to download all the necessary patches that may be required). If you do setup a mirror allocate about 150Gb of Diskspace to the mirror and sync it every evening using rsync.
On the host execute the following command:
Once the server is installed execute the following command:
To copy the files to enable the clients to boot execute the following commands:
NOTE: TFTP does not seem to work with symlinks so the files need to be copied.
When the server boots it will attempt to use it’s MAC address to determine what boot configuration it would use and will fall back onto a configration called “default”:
The above example will automatically install Centos using a kickstart file that configures it as per our build standards.
To ensure that the above is picked up, add the following line to your dnsmasq configuration file:
Where the PXE server is nas.justnudge.com with an IP address of 192.168.1.50.
When started the VM will look like the following:
comments powered by Disqus