Chapter 4.57Diskless EnvironmentsSome networks require multiple systems with the same configuration. They also require that thesesystems be easy to reboot, upgrade, and manage. One solution is to use a diskless environment inwhich most of the operating system, which can be read-only, is shared from a central server betweenthe clients. The individual clients have their own directories on the central server for the rest of theoperating system, which must be read/write. Each time the client boots, it mounts most of the OS fromthe NFS server as read-only and another directory as read-write. Each client has its own read-writedirectory so that one client can not affect the others.The following steps are necessary to configure Red Hat Enterprise Linux to run on a diskless client:1. Install Red Hat Enterprise Linux on a system so that the files can be copied to the NFS server.(Refer to the Installation Guide for details.) Any software to be used on the clients must beinstalled on this system and the busybox-anaconda package must be installed.2. Create a directory on the NFS server to contain the diskless environment such as /diskless/i386/RHEL4-AS/. For example:mkdir -p /diskless/i386/RHEL4-AS/This directory is referred to as the diskless directory.3. Create a subdirectory of this directory named root/:mkdir -p /diskless/i386/RHEL4-AS/root/4. Copy Red Hat Enterprise Linux from the client system to the server using rsync. For example:rsync -a -e ssh installed-system.example.com:/ /diskless/i386/RHEL4-AS/root/The length of this operation depends on the network connection speed as well as the size of thefile system on the installed system. Depending on these factors, this operation may take a while.5. Start the tftp server6. Configure the DHCP server7. Finish creating the diskless environment as discussed in Section 4.2, “Finish Configuring theDiskless Environment”.8. Configure the diskless clients as discussed in Section 4.3, “Adding Hosts”.9. Configure each diskless client to boot via PXE and boot them.4.1. Configuring the NFS ServerThe shared read-only part of the operating system is shared via NFS.Configure NFS to export the root/ and snapshot/ directories by adding them to /etc/exports.For example: