Service side
3 Types of services required
DHCP + TFTP + vsftp
TFTP provides guidance on why no other protocol is used for PXE booting because the NIC will only integrate TFTP to the way the service is written to the mirror
DHCP sends TFTP boot to other machines to know tftp boot
VSFTP provides a system image that can be HTTP or NFS
Build local Yum Source slightly
Modify your own IP address 192.168.100.1 I'm using this address.
Installing DHCP tftp vsftp
Yum-y Install VSFTPD
Yum-y Install Tftp-server
Yum-y Install DHCP
Shutting down firewalls and SELinux
[Email protected] ftp]# Systemctl stop Firewalld
[Email protected] ftp]# Setenforce 0
1. Need a boot pxelinux.0
This file comes from Syslinux this package
Install him directly.
Yum-y Install Syslinux
[Email protected] ~]# RPM-QL syslinux | grep linux.0
/usr/share/syslinux/gpxelinux.0
/usr/share/syslinux/pxelinux.0
Filter installation successfully copied it to TFTP
cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot/
This time with pxelinux.0 but need to configure the file
mkdir pxelinux.cfg Creating a configuration file
Copy disc isolinux/isolinux.cfg named default
Cp/media/cdrom/isolinux/isolinux.cfg/var/lib/tftpboot/pxelinux.cfg/default
Modify Default
Line 2nd time Out time list existing 100
Line 61st add a menu default to remove 67 rows
Modified to FTP append initrd=initrd.img inst.stage2=ftp://192.169.100.1/pub quiet
You'll need some additional files to copy the files under Isolinux to the directory.
[Email protected] tftpboot]# cp/media/cdrom/isolinux/*.
Start configuring DHCP
The way it was issued to TFTP
[Email protected] tftpboot]# vi/etc/dhcp/dhcpd.conf
Subnet 192.168.100.0 netmask 255.255.255.0 {network segment
Option routers 192.168.100.1; Gateway
Next-server 192.168.100.1; Server
FileName "pxelinux.0"; File
Max-lease-time 20000; Rental Period
Option Domain-name-servers 114.114.114.114; Dns
}
Restart Service
Linux PXE installation Centos7