資源描述:
《rhel6.0_kickstart_無(wú)人值守安裝.doc》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫(kù)。
1、Unattended_deloyprinciple使用企kickstart來(lái)完成批量部署linux系統(tǒng),可以在部署的時(shí)候?qū)崿F(xiàn)軟件的定制,以及環(huán)境的定制.useat(dhcp+vsftp+tftp+kickstart)Let'sbegin1.TheshowoftheIPandsystemversion[root@instructor~]#ifconfigeth0
2、awk/Mask/inetaddr:192.168.200.254Bcast:192.168.200.255Mask:255.255.255.0[root@in
3、structor~]#cat/etc/redhat-releaseRedHatEnterpriseLinuxServerrelease6.0(Santiago)2.Modifyyum[root@instructor~]#cat/etc/yum.repos.d/meyum.repo[yum]baseurl=file:///mediagpgcheck=03.Installthepackagesinneed[root@instructor~]#yum-yinstalldhcptftptftp-serversyslinuxsy
4、stem-config-kickstart4.Configurationdhcpserviceandstartit[root@instructor~]#cp/usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample/etc/dhcp/dhcpd.confcp:overwrite`/etc/dhcp/dhcpd.conf'?yes[root@instructor~]#vim/etc/dhcp/dhcpd.confsubnet192.168.200.0netmask255.255.255.0{o
5、ptionrouters192.168.200.254;rangedynamic-bootp192.168.200.10192.168.200.20;filename"pxelinux.0";next-server192.168.200.254;}[root@instructor~]#servicedhcpdrestartStartingdhcpd:[OK][root@instructor~]#chkconfig--level35dhcpdon5.ConfigurationPXE[root@instructor~]#m
6、kdir/tftpboot[root@instructor~]#vim/etc/xinetd.d/tftpservicetftp{socket_type=dgramprotocol=udpwait=yesuser=rootserver=/usr/sbin/in.tftpdserver_args=-s/tftpbootdisable=noper_source=11cps=1002flags=IPv4}[root@instructor~]#cp/media/isolinux/*/tftpboot/[root@instruc
7、tor~]#cd/tftpboot/[root@instructortftpboot]#mkdirpxelinux.cfg[root@instructortftpboot]#cpisolinux.cfgpxelinux.cfg/default[root@instructorpxelinux.cfg]#chmod664default[root@instructorpxelinux.cfg]#chkconfigtftpon[root@instructorpxelinux.cfg]#servicexinetdrestartS
8、toppingxinetd:[FAILED]Startingxinetd:[OK][root@instructorpxelinux.cfg]#vimdefaulttimeout5#這里的時(shí)間如果為0那么安裝需要手動(dòng)選擇labellinuxmenulabel^Installorupgradeanexistingsystemmenudefaultkernelvmlinuzappendinitrd=initrd.imgks=nfs:192.168.200.254:/ks/ks.cfg#這個(gè)ks.cfg文件是用kickstar
9、t生成6.Configurationnfsservice[root@instructor~]#vim/etc/exports/media*(rw)/ks*(rw)[root@instructor~]#servicenfsrestart[root@instructor~]#mkdir/ks7.Configurationkicksta