PXE (Preboot execute environment, pre-boot execution Environment)
Is the latest technology developed by Intel Corporation, working in Client/server network mode, supporting workstations to download images from remote servers over the network, and thus support booting the operating system through the network, during the boot process, the terminal requires the server to assign IP addresses, and then TFTP (trivial File Transfer Protocol) or MTFTP (multicast trivial File Transfer Protocol) protocol to download a boot package to native memory execution, completed by this boot package terminal (client) basic software setup, This directs the terminal operating system to be pre-installed in the server. PXE can boot multiple operating systems
The main realization of automatic system installation from the network card start
In the 60 host
Copy Isolinux to/westos
Add/westos to the default publishing directory for VSFTPD
(Service side)
Download the Isolinux from the 60 host to this machine via the LFTP service
Installing the Software
View the configuration file for the Tftp-server service
[Email protected] ~]# vim/etc/xinetd.d/tftp
disable = no # #将14行yes改为no
[[email protected] ~]# systemctl restart Xinetd.service Restart Service
See if Port 60 is turned on
[Email protected] tftpboot]# mkdir pxelinux.cfg
[Email protected] tftpboot]# CP isolinux.cfg Pxelinux.cfg/default
[Email protected] tftpboot]# cp/usr/share/syslinux/pxelinux.0.
[Email protected] ~]# systemctl start httpd
[Email protected] ~]# systemctl stop Firewalld.service
[Email protected] ~]# cp/usr/share/doc/dhcp-4.2.5/dhcpd.conf.example/etc/dhcp/dhcpd.conf
[[Email protected] ~] # vim/etc/dhcp/dhcpd.conf
[Email protected] ~]# systemctl restart DHCPD
[Email protected] tftpboot]# vim Pxelinux.cfg/default
Modify the 65 rows
Change the wait Time
Menu title to change the title
Menu Default startup location
Default boot as check, change to Linux
Menu background here to change the background map
[Email protected] tftpboot]# systemctl start xinetd
Test: You need to disconnect the network segment you set, so as not to affect the experimental effect
Start-up mode for NIC
Fully automatic installation
[Email protected] ~]# yum system-config-kickstart-y
[[email protected] ~]# system-config-kickstart Open Graphics
The following actions are specifically described in starting the installation virtual machine
(file saved to/var/www/html)
[Email protected] ~]# vim/var/www/html/ks.cfg
(This file can also be written in the pre-installation script, and the boot will run automatically)
[[email protected] ~]# ksvalidator ks.cfg detection program is correct
[Email protected] ~]# systemctl restart httpd
[[email protected] ~]# systemctl Restart DHCP
Results
LINUX--PXE Installation System