Cobbler can help you with all those complicated things for network installation, i.e. PXE, DHCP, etc.
Here is a brief instruction for trying it out in VirtualBox with Ubuntu as guest OS.
To set up the machine running Cobbler:
- Create a virtual machine with two NICs, one of which must be
Internal Network(keeping default name), and the IP address could be192.168.1.2; the other one can be eitherNATorBridge. - Installation under Ubuntu is fairly simple as always by following this article.
- If you want Cobbler to handle everything, modify
/etc/cobbler/settingsby changingmanage_dhcpto1, and bothserverandnext_serverto192.168.1.2. apt-get install isc-dhcp-server debmirrorcobbler syncor evenservice cobbler restart.
To set up a bare metal machine:
- Create a virtual machine with at least one NICs, one of which must be
Internal Network(keeping default name); Settings->System->Boot Order, enableNetworkand put it as the first. - Boot the machine and you should be able to see PXE menu.
- Then follow standard Cobber document here to play with it.