第 24 章 Setting Up A Remote Diskless System
The Network Booting Service (provided by
system-config-netboot) is no longer available in Red Hat Enterprise Linux 6. Deploying diskless systems is now possible in this release without the use of system-config-netboot.
To set up a basic remote diskless system booted over PXE, you need the following packages:
tftp-serverxinetddhcpsyslinuxdracut-network
Remote diskless system booting requires both a
tftp service (provided by tftp-server) and a DHCP service (provided by dhcp). The tftp service is used to retrieve kernel image and initrd over the network via the PXE loader.
The following sections outline the necessary procedures for deploying remote diskless systems in a network environment.
24.1. Configuring a tftp Service for Diskless Clients 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The
tftp service is disabled by default. To enable it and allow PXE booting via the network, set the Disabled option in /etc/xinetd.d/tftp to no. To configure tftp, perform the following steps:
过程 24.1. To configure tftp
- The
tftproot directory (chroot) is located in/var/lib/tftpboot. Copy/usr/share/syslinux/pxelinux.0to/var/lib/tftpboot/, as in:cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/ - Create a
pxelinux.cfgdirectory inside thetftproot directory:mkdir -p /var/lib/tftpboot/pxelinux.cfg/
You will also need to configure firewall rules properly to allow
tftp traffic; as tftp supports TCP wrappers, you can configure host access to tftp via /etc/hosts.allow. For more information on configuring TCP wrappers and the /etc/hosts.allow configuration file, refer to the Red Hat Enterprise Linux 6 Security Guide; man hosts_access also provides information about /etc/hosts.allow.
After configuring
tftp for diskless clients, configure DHCP, NFS, and the exported file system accordingly. Refer to 第 24.2 节 “Configuring DHCP for Diskless Clients” and 第 24.3 节 “Configuring an Exported File System for Diskless Clients” for instructions on how to do so.