PXE引导再生龙安装步骤使用PXE引导再生龙可以方便机房使用再生龙软件,并且可以实现批量无人值守安装我们的Tistone系统。先决条件:运作中的DHCP、TFTP、及NFS服务器ClonezillaLiveCD本实验把NFS/DHCP/TFTP全部做在一台机器上,操作系统是centos6.4,IP是192.168.2.151一定要关闭firewall,否则tftp端口不能正常工作.一、配置DHCP服务器1、安装DHCP服务器包。Yuminstalldhcp2、编辑DHCP服务器配置文件/etc/dhcp.conf。以下是一个示例:=============+==========+===========+============+============+=======#/etc/dhcp/dhcpd.confddns-update-stylenone;optiondomain-namelocalhost;optionsubnet-mask255.255.255.0;allowbootp;allowbooting;subnet192.168.2.0netmask255.255.255.0{rangedynamic-bootp192.168.2.100192.168.2.200;optionrouters192.168.2.151;optionsubnet-mask255.255.255.0;default-lease-time21600;max-lease-time43200;filenamepxelinux.0;next-server192.168.2.151;}3、启动DHCP服务servicedhcpdrestart二、配置TFTP服务器1、安装TFTP服务器包。Yuminstalltftp-server2、编辑TFTP服务器的配置文件/etc/xinetd.d/tftp。配置文件示例如下:=============+==========+===========+============+==========servicetftp{socket_type=dgramprotocol=udpwait=yesuser=rootserver=/usr/sbin/in.tftpdserver_args=-s/var/lib/tftpbootdisable=noper_source=11cps=1002flags=IPv4}3、重启xinetd服务servicexinetdrestart4、创建/tftpboot目录。mkdir/tftpboot5、将启动镜像文件pxelinux.0复制到TFTP服务器根目录,把/isolinux中的文件都copy到/tftpboot目录中去cp/usr/lib/syslinux/pxelinux.0/tftpboot6、把Clonezilla光盘上/image/pxeboot/initr.img和vmlinux考到/tftpboot/live目录下。7、编辑pxelinux.0的配置文件default,把/isolinux下的文件copy到/tftpboot目录下。cd/tftpbootmkdirpxelinux.cfgcdpxelinux.cfgvimdefault=============+==========+===========+============+==========DEFAULTvesamenu.c32TIMEOUT300LABELClonezillaLiveMENULABELClonezillaLivekernellive/vmlinuzappendinitrd=live/initrd.imgboot=liveconfignoswapnolocalesedd=onnomodesetocs_live_run=ocs-live-generalocs_live_extra_param=ocs_live_keymap=NONEocs_live_batch=noocs_lang=zh_CN.UTF-8vga=788nosplashnetboot=nfsnfsroot=192.168.2.151:/home/iso/clonezillaTEXTHELPThismodewillallowyourunClonezillatoBackup/RestoreOS!ENDTEXTLABELClonezillaLive(auto)MENULABELClonezillaLive(auto)kernellive/vmlinuzappendinitrd=live/initrd.imgboot=liveconfignoswapnolocalesedd=onnomodesetocs_prerun=mount-tnfs192.168.2.151:/home/img/home/partimag-onoatime,nodiratime,nfsvers=3ocs_live_run=bash/usr/sbin/ocs-sr-gauto-e1auto-e2-r-j2-k1-ptruerestorediskdefaultsdaocs_live_extra_param=ocs_live_keymap=NONEocs_live_batch=noocs_lang=zh_CN.UTF-8vga=788nosplashnetboot=nfsnfsroot=192.168.2.151:/home/iso/clonezillaTEXTHELPThismodewillallowyourunClonezillatoBackup/RestoreOS!ENDTEXT三、配置NFS服务器1.安装nfs相应文件Yuminstallnfs2.建立两个目录:mkdir-p/home/iso/clonezillamkdir-p/home/img/default3.修改文件:vi/etc/exports/home/iso/clonezilla*(ro,sync)/home/img*(rw,sync,no_root_squash)4.重启nfs的服务Servicenfsrestart6.下载clonezilla-live-$最新版本.iso到/tmp7.挂载iso映像并复制内容到输出目录。mount-oloop/tmp/clonezilla-live-$LATESTVERSION.iso/mntcp-a/mnt/./home/iso/clonezilla8.取消iso映像挂载。umount/mnt9.将制作好的再生龙镜像文件放到default目录下。cp/home/img/*mkdir-p/home/img/default