Network boot installation Detailed steps: (Two ways vsftp and NFS)
Installing the Software
Yum install TFTP tftp-server vsftpd DHCP xinetd syslinux-y
Modify xinetd to open tftp
Vim/etc/xinetd.d/tftp
Disable = no----find this line and modify Yes to No
Mount the mounting media.
Because my installation media is placed on the physical machine windows, I set the media to a shared folder and then use the command below to mount the Windows shared folder to the Linux directory.
Mount.cifs-o username= "Administrator", password= "111111"//192.168.80.135/ax4sp2/mnt/winf/
Create a new DVD directory in the FTP pub directory, and then loop the installation media to the FTP Pub/dvd directory
Mkdir/var/ftp/pub/dvd
cd/mnt/winf/
Mount-o Loop centos.iso/var/ftp/pub/dvd/
cd/var/ftp/pub/dvd/
LS-----View the files that are mounted.
Documents highavailability isolinux Packages resilientstorage Server
EFI images loadbalancer repodata scalablefilesystem TRANS. TBL
Copy isolinux The following file to Tftpboot
CD isolinux/
CP./*/var/lib/tftpboot/-arf
Copy pxelinux.0 to Tftpboot
cd/var/lib/tftpboot/
cp/usr/share/syslinux/pxelinux.0./-arf
Create a new pxelinux.cfg directory, copy the Pxelinux.cfg file to the directory and rename it to default
mkdir pxelinux.cfg
CD pxelinux.cfg/
Cp/var/ftp/pub/dvd/isolinux/isolinux.cfg Default
Configure DHCP
Vim/etc/dhcp/dhcpd.conf
Write the following: write the IP address according to the actual situation
Subnet 192.168.1.0 netmask 255.255.255.0----network segment, mask
{
Range 192.168.1.2 192.168.1.254;----Range
FileName "pxelinux.0";
Next-server 192.168.1.104;-----The native server address
}
Start the service:
/ETC/INIT.D/DHCPD restart
/etc/init.d/xinetd restart
/ETC/INIT.D/VSFTPD restart
Chkconfig TFTP on
Boot Select network installation, you can install the system.
Note the point:
If you use NFS installation, you need to edit the exports file and put the media in.
Mkdir/iso
Mount-o Loop Centos.iso/iso
Vim/etc/exports---Edit enter the following content
/iso * (RO)
Then, start the NFS service
/etc/init.d/rpcbind restart
/etc/init.d/nfs restart
Then power on select Network installation, prompted to choose the installation method when the NFS access to know.
The 22nd line of the default file in the/var/lib/tftpboot/pxelinux.cfg/directory can also be added to the Ks.cfg file address to automatically install the system.
The following format: Append ks=nfs:192.168.1.11:/opt/ks.cfg initrd=initrd.img Adding this content on line 22 allows for automatic installation of the system.
This article is from "Operation and Maintenance"!!! "Blog, be sure to keep this provenance http://oldyunwei.blog.51cto.com/6338968/1661433
PXE Network installation Linux system