19.3. Configuring an Exported File System for Diskless Clients
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
. For instructions on how to do so, refer to Section 10.6.1, “ The
/etc/exports 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/*'
with the hostname of the running system with which to synchronize via
is the path to the exported file system.
Alternatively, you can also use
yum with the
--installroot option to install Red Hat Enterprise Linux to a specific location. For example:
yum groupinstall Base --installroot=
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:
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
Select the kernel that diskless clients should use (
vmlinuz-) and copy it to the
tftp boot directory:
initramfs-) with network support:
Copy the resulting
initramfs- into the
tftp boot directory as well.
Edit the default boot configuration to use the
initrd and kernel inside
/var/lib/tftpboot. This configuration should instruct the diskless client's root to mount the exported file system (
) as read-write. To do this, configure
/var/lib/tftpboot/pxelinux.cfg/default with the following:
with the IP address of the host machine on which the
tftp and DHCP services reside.
The NFS share is now ready for exporting to diskless clients. These clients can boot over the network via PXE.