資源描述:
《kickstart 同時push多個linux操作系統(tǒng)1》由會員上傳分享,免費在線閱讀,更多相關內(nèi)容在行業(yè)資料-天天文庫。
1、在生產(chǎn)環(huán)境中,經(jīng)常要安裝不同版本的linux操作系統(tǒng),以及各種安裝需求;每次安裝操作系統(tǒng)的時候如果用傳統(tǒng)的光盤方式安裝,費時又費力!下面介紹下如何在同一個時刻,使用kickstartpush不同的版本的linux,主要有三個版本centos4.8,rhel5.4,rhel6.0和一個linuxrescue環(huán)境!一:配置dhcp服務,ks服務器地址為192.168.50.7/241.[root@rhel5?~]#?rpm?-qa?
2、grep?dhcp?2.dhcpv6-client-1.0.10-17.el5?3.dhcp-3.0.5-23.el5_5.2?4.?5.[root
3、@rhel5?~]#?cat?/etc/dhcpd.conf?6.option?domain-name?"766.com";?7.default-lease-time?6000;?8.max-lease-time?11400;?9.authourtative;?10.next-server?192.168.50.7;?11.ddns-update-style?ad-hoc;?12.log-facility?local7;?13.subnet?192.168.50.0?netmask?255.255.255.0{?14.range?192.168.50.150?192.168.
4、50.195;?15.option?domain-name-servers?192.168.50.254;?16.option?domain-name?"766.com";?17.option?netbios-name-servers?192.168.50.254;?18.option?routers?192.168.50.254;?19.option?broadcast-address?192.168.50.255;?20.default-lease-time?6000;?21.max-lease-time?11400;?22.filename?"/kickstart/ks
5、.cfg";?23.}?24.?25.option?space?PXE;?26.?27.class?"PXE"?{?28.????match?if?substring(option?vendor-class-identifier,?0,?9)?=?"PXEClient";?29.????option?vendor-encapsulated-options?01:04:00:00:00:00:ff;?30.????option?boot-size?0x1;?31.????filename?"pxelinux.0";?32.????option?tftp-server-name?
6、"192.168.50.7";?33.????option?vendor-class-identifier?"PXEClient";?34.????vendor-option-space?PXE;?35.}?二:配置tftp-server,準備vmlinz和initrd.img文件1.[root@rhel5?~]#?rpm?-qa?
7、egrep?'tftp
8、xinetd'?2.tftp-0.49-2.el5.centos?3.tftp-server-0.49-2.el5.centos?4.xinetd-2.3.14-10.el5?5.?6.[root@rhel5?~]#?ca
9、t?/etc/xinetd.d/tftp??7.#?default:?off?8.#?description:?The?tftp?server?serves?files?using?the?trivial?file?transfer??9.#???????protocol.??The?tftp?protocol?is?often?used?to?boot?diskless??10.#???????workstations,?download?configuration?files?to?network-aware?printers,??11.#???????and?to
10、?start?the?installation?process?for?some?operating?systems.?12.service?tftp?13.{?14.????????socket_type?????????????=?dgram?15.????????protocol????????????????=?udp?16.????????wait????????????????????=?yes?17.????????user????????????????????=?root?18.???