[root@c6 ~]# yum install dhcp tftp-server httpd syslinux-nonlinux [root@c6 ~]# cd /var/www/html/;mkdir centos/6 ksdir -pv [root@c6 html]# mount /dev/sr0 centos/6/ [root@c6 ksdir]# rz ks6.cfg //上传事先准备好的应答文件 [root@c6 ~]# cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf [root@c6 ~]# cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/ //# rpm -ql syslinux-nonlinux |grep pxelinux [root@c6 ~]# mkdir /var/lib/tftpboot/pxelinux.cfg/ [root@c6 ~]# cd /mnt/cd1/isolinux/ [root@c6 isolinux]# cp isolinux.cfg /var/lib/tftpboot/pxelinux.cfg/default [root@c6 isolinux]# cp boot.msg initrd.img splash.jpg vesamenu.c32 vmlinuz /var/lib/tftpboot/ [root@c6 ~]# cd /var/lib/tftpboot/ [root@c6 tftpboot]# vi pxelinux.cfg/default default vesamenu.c32 timeout 600 display boot.msg menu background splash.jpg menu title Auto install centos menu color border 0 #ffffffff #00000000 menu color sel 7 #ffffffff #ff000000 menu color title 0 #ffffffff #00000000 menu color tabmsg 0 #ffffffff #00000000 menu color unsel 0 #ffffffff #00000000 menu color hotsel 0 #ff000000 #ffffffff menu color hotkey 7 #ffffffff #ff000000 menu color scrollbar 0 #ffffffff #00000000 label linux menu label ^Auto install an mini system menu default kernel vmlinuz append initrd=initrd.img ks=http://192.168.93.6/ksdir/ks6.cfg label vesa menu label ^Manual install an system kernel vmlinuz append initrd=initrd.img repo=http://192.168.93.6/centos/6 label rescue menu label ^Rescue installed system kernel vmlinuz append initrd=initrd.img rescue repo=http://192.168.93.6/centos/6 label local menu label Boot from ^local drive localboot 0xffff vmware新开一台虚拟电脑 --> 使用网络启动,即可全程自动完成系统的安装