I. Introduction to the Environment
- topology:
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8B/26/wKiom1hFfj2AoQPgAAAvscI2q_Y942.jpg-wh_500x0-wm_3 -wmp_4-s_3916807618.jpg "title=" topology. jpg "alt=" wkiom1hffj2aoqpgaaavsci2q_y942.jpg-wh_50 "/>
- Server
DHCP: Assigning addresses, locating boot files
TFTP: provides bootloader download
FTP: Provide installation source (Yum repository)
Kickstart: Create an answer file for unattended, fully automated installation, and add scripts to implement post-installation configuration.
- Client
The NIC needs to support the PXE protocol
Motherboard needs to support network boot
II. deployment Process 1. Prepare the installation source
[Email protected] ~]# mkdir-p/var/ftp/centos6.5[[email protected] ~]# cp-rf/media/centos_6.5_final/*/var/ftp/ Centos6.5/[[email protected] ~]# Rpm-ivh/var/ftp/centos6.5/packages/vsftpd-2.2.2-11.el6_4.1.x86_64.rpm[[email Protected] ~]# service vsftpd start for vsftpd boot vsftpd: [OK][[email protected] ~]# Chkcon Fig VSFTPD on
2. Enable the TFTP service and provide the kernel, boot program
- Installing TFTP
[[email protected] ~]# yum-y installtftp-server-Modify configuration file, enable Tftp[[email protected] ~]# vim/etc/xinetd.d/tftpdisable = No
- start tftp
[[Email protected] ~]# Service xinetd start is starting xinetd: [OK]
- Copy the boot file to the TFTP root directory
[[email protected] ~]# Cd/var/ftp/centos6.5/images/pxeboot/[[email protected] pxeboot]# CP vmlinuzinitrd.img/var/lib/ Tftpboot/[[email protected] pxeboot]# yum-y installsyslinux[[email protected] ~]# cp/usr/share/syslinux/pxelinux.0/ var/lib/tftpboot/
3. Enable DHCP service to assign addresses, indicate bootstrapper location
- Install DHCP
[[Email protected]~]# yum-y Install DHCP
- Modifying a configuration file
[Email protected] ~]# vim/etc/dhcp/dhcpd.confsubnet 192.168.10.0 netmask 255.255.255.0 {option Routers 192.168.10. 254; Option Domain-name-servers 202.106.0.20; Range 192.168.10.100192.168.10.200; Next-server 192.168.10.254; #指定TFTP服务器地址 filename "pxelinux.0"; #指定要下载的引导程序文件}
- Start DHCP
[[Email protected] ~]# Service DHCPD start is starting dhcpd: [OK]
4. Create an answer file
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/8B/22/wKioL1hFfseSYIHXAABcbMAAPu0028.jpg-wh_500x0-wm_3 -wmp_4-s_362116007.jpg "style=" Float:none; "title=" Create answer file -1.jpg "alt=" wkiol1hffsesyihxaabcbmaapu0028.jpg-wh_50 "/ >
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8B/22/wKioL1hFfsiSfqEqAAE7MbA9ni4913.jpg-wh_500x0-wm_3 -wmp_4-s_2896227530.jpg "style=" Float:none; "title=" Create answer file -2.jpg "alt=" wkiol1hffsisfqeqaae7mba9ni4913.jpg-wh_50 "/ >
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/8B/26/wKiom1hFfsnhVDBhAADe6O4jzI0854.jpg-wh_500x0-wm_3 -wmp_4-s_3462715038.jpg "style=" Float:none; "title=" Create answer file -3.jpg "alt=" wkiom1hffsnhvdbhaade6o4jzi0854.jpg-wh_50 "/ >
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/8B/26/wKiom1hFfsrSoLPxAAEJSCyDdek222.jpg-wh_500x0-wm_3 -wmp_4-s_4107624198.jpg "style=" Float:none; "title=" Create answer file -4.jpg "alt=" wkiom1hffsrsolpxaaejscyddek222.jpg-wh_50 "/ >
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/8B/22/wKioL1hFfsrz20BWAACULMLwXAk443.jpg-wh_500x0-wm_3 -wmp_4-s_760012221.jpg "style=" Float:none; "title=" Create answer file -5.jpg "alt=" wkiol1hffsrz20bwaaculmlwxak443.jpg-wh_50 "/ >
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8B/26/wKiom1hFfsvArp-HAAEcA6odmHE596.jpg-wh_500x0-wm_3 -wmp_4-s_2982527131.jpg "style=" Float:none; "title=" Create answer file -6.jpg "alt=" wkiom1hffsvarp-haaeca6odmhe596.jpg-wh_50 "/ >
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8B/22/wKioL1hFfsuhPKvKAADSOXZQWJw291.jpg-wh_500x0-wm_3 -wmp_4-s_799885595.jpg "style=" Float:none; "title=" Create answer file -7.jpg "alt=" wkiol1hffsuhpkvkaadsoxzqwjw291.jpg-wh_50 "/ >
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8B/22/wKioL1hFfsvgb2ikAACcRD3UhLQ798.jpg-wh_500x0-wm_3 -wmp_4-s_3818535559.jpg "style=" Float:none; "title=" Create answer file -8.jpg "alt=" wkiol1hffsvgb2ikaaccrd3uhlq798.jpg-wh_50 "/ >
5. Configure the Boot Menu
- Deploy an answer file in a location that the client can access
[Email protected] ~]# cp/root/ks.cfg/var/ftp/centos6.5/ks.cfg
- To Create a boot menu file
[Email protected] ~]# mkdir/var/lib/tftpboot/pxelinux.cfg[[email protected] ~]# vim/var/lib/tftpboot/pxelinux.cfg/ Default
- Edit the boot menu file
Default autoprompt 0label Auto kernel vmlinuz append ks=ftp://192.168.10.254/centos6.5/ks.cfg initrd=initrd.im Gdevfs=nomount ramdisk_size=8192
~
Third, verification
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/8B/26/wKiom1hFfv6TKfp2AAE98MuTOWk318.jpg-wh_500x0-wm_3 -wmp_4-s_2061393072.jpg "style=" Float:none; "title=" Validation -1.jpg "alt=" Wkiom1hffv6tkfp2aae98mutowk318.jpg-wh_50 "/>
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8B/23/wKioL1hFfv-xTIgTAACd155CG0w250.jpg-wh_500x0-wm_3 -wmp_4-s_1765877505.jpg "style=" Float:none; "title=" Validation -2.jpg "alt=" Wkiol1hffv-xtigtaacd155cg0w250.jpg-wh_50 "/>
This article is from the "Jackeyge" blog, make sure to keep this source http://jackeyge.blog.51cto.com/12241288/1879781
Pxe+kickstart Remote Unattended Machine