Show Table of Contents
24.2. Configuring DHCP for Diskless Clients
Prerequisites
- Install the necessary packages. See Chapter 24, Setting up a Remote Diskless System
- Configure the
tftpservice. See Section 24.1, “Configuring a tftp Service for Diskless Clients”.
Procedure
- After configuring a
tftpserver, you need to set up a DHCP service on the same host machine. For instructions on setting up a DHCP server, see the Configuring a DHCP Server. - Enable PXE booting on the DHCP server by adding the following configuration to
/etc/dhcp/dhcp.conf:allow booting; allow bootp; class "pxeclients" { match if substring(option vendor-class-identifier, 0, 9) = "PXEClient"; next-server server-ip; filename "pxelinux.0"; }- Replace
server-ipwith the IP address of the host machine on which thetftpand DHCP services reside.
Note
Whenlibvirtvirtual machines are used as the diskless client,libvirtprovides the DHCP service and the stand alone DHCP server is not used. In this situation, network booting must be enabled with thebootp file='filename'option in thelibvirtnetwork configuration,virsh net-edit.
Next Steps
Now that
tftp and DHCP are configured, configure NFS and the exported file system. For instructions, see the Section 24.3, “Configuring an Exported File System for Diskless Clients”.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.