30.2. Network Boot Configuration
The next step is to copy the files necessary to start the installation to the
tftp
server so they can be found when the client requests them. The tftp
server is usually the same server as the network server exporting the installation tree.
The PXE boot configuration procedure differs for BIOS and EFI. A separate yaboot configuration procedure is provided for Power Systems servers.
Note
Red Hat Satellite has the ability to automate the setup of a PXE server. See the Red Hat Satellite User Guide for more information.
30.2.1. Configuring PXE Boot for BIOS Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
- If tftp-server is not yet installed, run
yum install tftp-server
. - In the tftp-server config file at
/etc/xinetd.d/tftp
, change thedisabled
parameter fromyes
tono
. - Configure your DHCP server to use the boot images packaged with SYSLINUX. (If you do not have a DHCP server installed, refer to the DHCP Servers chapter in the Red Hat Enterprise Linux Deployment Guide.)A sample configuration in
/etc/dhcp/dhcpd.conf
might look like:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - You now need the
pxelinux.0
file from the syslinux-nolinux package in the ISO image file. To access it, run the following commands as root:mount -t iso9660 /path_to_image/name_of_image.iso /mount_point -o loop,ro cp -pr /mount_point/Packages/syslinux-nolinux-version-architecture.rpm /publicly_available_directory umount /mount_point
mount -t iso9660 /path_to_image/name_of_image.iso /mount_point -o loop,romount -t iso9660 /path_to_image/name_of_image.iso /mount_point -o loop,romount -t iso9660 /path_to_image/name_of_image.iso /mount_point -o loop,romount -t iso9660 /path_to_image/name_of_image.iso /mount_point -o loop,romount -t iso9660 /path_to_image/name_of_image.iso /mount_point -o loop,ro cp -pr /mount_point/Packages/syslinux-nolinux-version-architecture.rpm /publicly_available_directorycp -pr /mount_point/Packages/syslinux-nolinux-version-architecture.rpm /publicly_available_directorycp -pr /mount_point/Packages/syslinux-nolinux-version-architecture.rpm /publicly_available_directorycp -pr /mount_point/Packages/syslinux-nolinux-version-architecture.rpm /publicly_available_directorycp -pr /mount_point/Packages/syslinux-nolinux-version-architecture.rpm /publicly_available_directorycp -pr /mount_point/Packages/syslinux-nolinux-version-architecture.rpm /publicly_available_directory umount /mount_pointumount /mount_point
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Extract the package:rpm2cpio syslinux-nolinux-version-architecture.rpm | cpio -dimv
rpm2cpio syslinux-nolinux-version-architecture.rpm | cpio -dimvrpm2cpio syslinux-nolinux-version-architecture.rpm | cpio -dimvrpm2cpio syslinux-nolinux-version-architecture.rpm | cpio -dimv
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Create a
pxelinux
directory withintftpboot
and copypxelinux.0
into it:mkdir /var/lib/tftpboot/pxelinux cp publicly_available_directory/usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/pxelinux
mkdir /var/lib/tftpboot/pxelinux cp publicly_available_directory/usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/pxelinuxcp publicly_available_directory/usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/pxelinuxcp publicly_available_directory/usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/pxelinux
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Create a
pxelinux.cfg
directory withinpxelinux
:mkdir /var/lib/tftpboot/pxelinux/pxelinux.cfg
mkdir /var/lib/tftpboot/pxelinux/pxelinux.cfg
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Add a config file to this directory. The file should either be named
default
or named after the IP address, converted into hexadecimal format without delimiters. For example, if your machine's IP address is 10.0.0.1, the filename would be0A000001
.A sample config file at/var/lib/tftpboot/pxelinux/pxelinux.cfg/default
might look like:Copy to Clipboard Copied! Toggle word wrap Toggle overflow For instructions on how to specify the installation source, refer to Section 7.1.3, “Additional Boot Options” - Copy the splash image into your
tftp
root directory:cp /boot/grub/splash.xpm.gz /var/lib/tftpboot/pxelinux/splash.xpm.gz
cp /boot/grub/splash.xpm.gz /var/lib/tftpboot/pxelinux/splash.xpm.gz
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Copy the boot images into your
tftp
root directory:cp /path/to/x86_64/os/images/pxeboot/{vmlinuz,initrd.img} /var/lib/tftpboot/pxelinux/rhel6/
cp /path/to/x86_64/os/images/pxeboot/{vmlinuz,initrd.img} /var/lib/tftpboot/pxelinux/rhel6/cp /path/to/x86_64/os/images/pxeboot/{vmlinuz,initrd.img} /var/lib/tftpboot/pxelinux/rhel6/cp /path/to/x86_64/os/images/pxeboot/{vmlinuz,initrd.img} /var/lib/tftpboot/pxelinux/rhel6/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Boot the client system, and select the network device as your boot device when prompted.