First, the server configures DHCP to shut down the firewall
Yum Install Dhcp-y
Cd/etc/dhcp
Cp/usr/share/doc/dhcp-4.2.5/dhcpd.conf.example dhcpd.conf
Vim dhcpd.conf
Systemctl Restart DHCPD
Test
Unplug the network cable
Systemctl Restart Netwark
Ifconfig
Yum whatprovides */pxelinux.0 Find this file
Yum Install syslinux.x86_64 installation syslinux
RPM-QL Syslinux
Less/usr/share/doc/syslinux-4.05/syslinux.txt Viewing usage information
Yum Search tftp
Yum install tftp-server.x86_64-y requires TFTP network File transfer
Netstat-antlupe | grep xineted Viewing the daemon's interface
vim/etc/xinetd.d/tftp Disable re-yes change to No
Systemctl Restart Xinetd.service Open xinetd
Rpm-q L Tftp-server
cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot/copying files to a TFTP shared directory
Mkdir/var/lib/tftpboot/pxelinux.cfg set up this directory and then on the real machine
cd/var/www/html/rhel7.2
Ls
grep "Install Red Hat"-R
CD Isolinux
SCP mount directory of files to/var/lib/tftpboot/should be aware that the version used must be consistent
SCP-R * [Email protected];/var/lib/tftpboot find the boot page
Remember to close the firewall on the test machine.
Cd/var/lib/tftpboot into the shared directory.
CP isolinux.cfg Pxelinux.cfg/default Copy the accepted files to Pxe.linux and rename them to default
Systemctl Restart Xinetd.service Restart daemon
vim/etc/dhcp/dhcpd.conf Edit the DHCP configuration file,
Subnet 172.25.254.0 netmask 255.255.255.0 {
Range 172.25.254.10 172.25.254.20;
Option routers 172.25.254.250;
Next-server 172.25.254.104;
FileName "pxelinux.0";
} again
Systemctl Restart DHCPD
Test:
Set the NIC boot priority on a virtual machine
Start
Success.
But this can only go to the startup page, not the actual installation system
Vim/var/lib/tftpboot/pxelinux.cfg/default
can change the time;
Timeout will default to 600 can be changed to 60
Menu Background Splash.png
File to see the size of this image to find the right picture you can convert liuyan.png-resize 640x480! Liu.png such as: Menu background liuyan.png
Menu title Westos change title ####################################################################################### 3 on the basis of the previous step, realize the automatic installation
Yum Install System-config-kickstart-y
System-config-kickstart making fully automated installation scripts
Vim Ks.cfg
Ksvalidator ks.cfg
Yum Install httpd-y Open HTTP Service
Restart Virtual Opportunity Direct Automatic installation indicates success
Linux remote machine