Experimental environment
System environment: centos6.5: Process Installation Server
WIN7: Client
One, the PXE Remote installation server construction
- Install and open the required service, TFTP,FTP,DHCP.
1) yum-y Install Tftp-server, installing the TFTP environment package (if the Yum repository is not installed, please refer to http://blog.51cto.com/13842738/2135806)
2) Edit the TFTP profile vim/etc/xinetd.d/tftp change "Disable = yes" to "Disable = no" and start the XINETD service as shown in.
3) Install the DHCP package (details reference http://blog.51cto.com/13842738/2140821), edit the DHCP configuration file vim/etc/dhcp/dhcpd.conf as shown in, edit complete
4) Install the FTP package yum install VSFTPD, mount the Linux image installation file to the FTP shared folder under Pub mount/dev/cdrom/var/ftp/pub
View FTP shared folder pub, mount image file successfully
- Copy network boot required files to the root directory of the TFTP server
1) yum-y Install syslinux installation boot loader
2) Copy the installed boot program to the TFTP boot folder cp/usr/share/syslinux/pxelinux.0/var/lib/tftpboot/
3) mkdir/var/lib/tftpboot/pxelinux.cfg Create a folder under the TFTP Startup folder to hold the files needed for startup
Cp/mnt/isolinux/isolinux.cfg/var/lib/tftpboot/pxelinux.cfg/default//Installation Menu
Cp/mnt/images/pxeboot/initrd.img/var/lib/tftpboot//linux Boot Load module//
cp/mnt/images/pxeboot/vmlinuz/var/lib/tftpboot///Compression core//
Cp/mnt/isolinux/vesamenu.c32/var/lib/tftpboot//Graphical installation menu
3. Start all servers, turn off the firewall and prepare for automatic installation
Service DHCPD Restart
Service VSFTPD Restart
Service xinetd Start
Chkconfig--level xinetd on xinetd service in 3,5 mode boot from
Chkconfig--level tftp on TFTP service in 3,5 mode boot from boot
Service iptables stop//Shut down the firewall, do not close the boot program in TFTP cannot be downloaded//
Setenforce 0
4. Start the client (WIN7) Select by the options shown
To this remote installation is complete.
Two unattended installations
- Installing the System-config-kickstart tool in the system, yum-y install System-config-kickstart
- Use the Graphical Wizard tool to configure the installation answer file as shown in
- Graphical interface configuration is completed, back to the character interface, the answer parameter file is saved by default in/root/ks.cfg, mkdir/var/ftp/rhel6 new folder under the FTP folder rhel6,cp/root/ks.cfg/var/ftp/rhel6/ Copy the configured answer parameter file to Rhel6.
- Edit the boot menu file Vim/var/lib/tftpboot/pxelinux.cfg/default as shown in
5. Reload the service after completion TFTP,FTP,DHCP
6. To the client authentication unattended installation as shown, the experiment was successful
Hundred Xiao Sheng take you to play the Linux system Service Building series----PXE Remote Installation server and unattended installation