System information
After configuring a tftp server, you need to set up a DHCP service on the same host machine. Refer
to the Red Hat Enterprise Linux 6 Deployment Guide for instructions on how to set up a DHCP server.
In addition, you should enable PXE booting on the DHCP server; to do this, add the following
configuration to /etc/d hcp/d hcp. co nf:
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-ip with the IP address of the host machine on which the tftp and DHCP services
reside. Now that tftp and DHCP are configured, all that remains is to configure NFS and the
exported file system; refer to Section 24.3, ā Configuring an Exported File System for Diskless Clientsā
for instructions.
24 .3. Configuring an Export ed File Syst em for Diskless Client s
The root directory of the exported file system (used by diskless clients in the network) is shared via
NFS. Configure the NFS service to export the root directory by adding it to /etc/expo rts. For
instructions on how to do so, refer to Section 9.7.1, ā The /etc/expo rts Configuration Fileā .
To accommodate completely diskless clients, the root directory should contain a complete Red Hat
Enterprise Linux installation. You can synchronize this with a running system via rsync, as in:
# rsync -a -e ssh --exclude='/proc/*' --exclude='/sys/*' hostname.com:/
/exported/root/directory
Replace hostname.com with the hostname of the running system with which to synchronize via
rsync. The /exported/root/directory is the path to the exported file system.
Alternatively, you can also use yum with the --i nstal lro o t option to install Red Hat Enterprise
Linux to a specific location. For example:
yum groupinstall Base --installroot=/exported/root/directory
The file system to be exported still needs to be configured further before it can be used by diskless
clients. To do this, perform the following procedure:
Pro ced u re 24 .2. Co n f ig u re f ile syst em
1. Configure the exported file system's /etc/fstab to contain (at least) the following
configuration:
none /tmp tmpfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
2. Select the kernel that diskless clients should use (vml i nuz-kernel-version) and copy it
to the tftp boot directory:
Red Hat Ent erprise Lin ux 6 St orage Admin ist rat io n G uide
164