First, what is PXE
PXE (Preboot eXecution Environment) Pre-Boot Execution Environment, is a network interface to enable the computer to start the mechanism, this mechanism lets you start your computer can not rely on local data storage devices (like hard disks) or locally installed operating system.
Second, the conditions to complete the network installation of PXE
The host has the resources required to have vsftpd, dhcpd, kickstart and pxe service.
2.1 vdftpd deployment services
The purpose is to deploy a shared service vsftpd installation source files and ks. Occur when the system is pre-installed CD image interface resources isolinux
determined directory, the installation process is controlled by the automatic document ks. It is necessary to have installed a CD image resource and an automatic installation script file sharing ks mounted at / var / ftp
ensuring vsftpd service enabling system, SELinux off the firewall is closed, and the system / var / ftp / have rhel directory and ksfile rhel8 in which to mount the CD image resources, ksfile directory contains the files ks.cfg
2.2 dhcpd deployment services
Pxe network installation because the system is installed through the network, so that the host server has the required resources to build dhcp server. When the client host for the network card starts, the host will ask for a ip, server host sends open dhcpd service host to the client host a packet that contains ip, gateway, and DNS addresses, we can data be transmitted pack one more program that allows the client host ip get in before deciding what resources are reading system. If you can do some set of resources to read, so that the client can take the initiative to ask the host installation resources to the host server and automatically install script, the installation host multiple clients can improve efficiency in parallel at the same time
2.3 kickstart installation script is automatically set
Similar automatic installation script settings and setting method in the blog post, just prior to the installation CD-ROM for the way we have to change the way fpt
2.4 PXE deployment
Step 1: Find the boot loader file pxelinux.0
Step 2: Install pxelinux.0 shared server
file sharing and file sharing pxelinux.0 environment of the installation need to read the
dhcpd service configuration file distribution pxelinux.0
written in the default installation file resource path and ks.cfg