centos6实现PXE自动化安装centos6

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos6实现PXE自动化安装centos6相关的知识,希望对你有一定的参考价值。

[[email protected] ~]# yum install dhcp tftp-server httpd syslinux-nonlinux
[[email protected] ~]# cd /var/www/html/;mkdir centos/6 ksdir -pv
[[email protected] html]# mount /dev/sr0 centos/6/
[[email protected] ksdir]# rz ks6.cfg //上传事先准备好的应答文件
[[email protected] ~]# cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
[[email protected] ~]# cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/ //# rpm -ql syslinux-nonlinux |grep pxelinux
[[email protected] ~]# mkdir /var/lib/tftpboot/pxelinux.cfg/
[[email protected] ~]# cd /mnt/cd1/isolinux/
[[email protected] isolinux]# cp isolinux.cfg /var/lib/tftpboot/pxelinux.cfg/default
[[email protected] isolinux]# cp boot.msg initrd.img splash.jpg vesamenu.c32 vmlinuz /var/lib/tftpboot/
[[email protected] ~]# cd /var/lib/tftpboot/
[[email protected] 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新开一台虚拟电脑 --> 使用网络启动,即可全程自动完成系统的安装

以上是关于centos6实现PXE自动化安装centos6的主要内容,如果未能解决你的问题,请参考以下文章

PXE自动安装CentOS6与CentOS7的实现

使用Kickstart自动化安装CentOS6.5

通过PXE网络安装Centos6.5

Linux PXE自动化安装centos6系统

搭建Pxe服务器无人听应答全自动安装CentOS6.7系统

在CentOS6上利用PXE+Kickstart+Apache+DHCP实现无人值守安装