Set up a KVM DHCP server
An example of how to configure a KVM DHCP server.
You must configure a DHCP server to allow the PXE client to locate the ISO image. You can use any DHCP server.
When using KVM, you can use the embedded server that is created by the KVM hypervisor.
The following example shows how to configure the KVM DHCP server on the network where the router and servers are connected.
<Network_Name>
is the name of the network to which the router and the DHCP server are connected (Net_PXE in the example). Add the DHCP section to the file (delimited by <dhcp> </dhcp>
, highlighted in the example).<network connections='5'>
<name>Net_PXE</name>
<uuid>550c0232-3e79-4b82-9de4-f2c540d0a1af</uuid>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/> </nat>
</forward>
<bridge name='virbr11' stp='on' delay='0'/>
<mac address='52:54:00:cc:2b:ac'/>
<ip address='192.168.100.1' netmask='255.255.255.0'>
<tftp root='/var/lib/tftpboot'/>
<dhcp> <range start='192.168.100.100' end='192.168.100.110'/> <bootp file='/gpxelinux.0'/> </dhcp>
</ip>
</network>