PXE remote installation service (unattended)

Prepare two virtual machines, one is used as a PXE server, and the other does not need to install the system for subsequent PXE client installation

PXE server configuration

Two network cards are required, one for bridge mode and one for VMnet1

Insert picture description here

Services required for installation

Insert picture description hereInsert picture description hereInsert picture description here
Insert picture description hereInsert picture description here

Let the CD-ROM be mounted to the shared directory so that the ftp client can access the CD-ROM installation

Insert picture description here

Install the bootloader

Insert picture description here

Copy the files needed for network startup to the root directory of the server

Insert picture description hereInsert picture description here

Edit the installed configuration file

Insert picture description hereInsert picture description here

Start all services and turn off the firewall and core protection

Insert picture description hereInsert picture description hereInsert picture description here
Install the answer file kickstart, you can configure the installation answer file
yum -y install system-config-kickstart
graphical interface to configure the
Insert picture description here
configuration content:
Insert picture description here
Insert picture description here
Insert picture description here

The added partition/allocated capacity should be large enough otherwise it cannot be installed

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Click to save the file to var/ftp
Insert picture description hereto copy the following content in the anaconda-ks.cfg file in the /root directory to the last line of ks.cfg
Insert picture description here

Client The
network card type is VMnet1 to
boot, select the network to start, and start PXE remote installation without any operation. The following interface appears, you can see that the DHCP service is dynamically assigned to the address of 192.168.10.150, and some boot programs are being loaded. The final loading is completed to the installation interface.

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_41786285/article/details/108535349