久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

如何安裝Cobbler

共計(jì) 2195 個(gè)字符,預(yù)計(jì)需要花費(fèi) 6 分鐘才能閱讀完成。

丸趣 TV 小編給大家分享一下如何安裝 Cobbler,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!

簡介

Cobbler 是一個(gè)免費(fèi)開源系統(tǒng)安裝部署軟件,用于自動(dòng)化網(wǎng)絡(luò)安裝操作系統(tǒng); 基于 Python 開發(fā),是對(duì) PXE 的二次封裝,提供了 CLI 和 Web   的管理形式,也提供了 API 接口,方便二次開發(fā)使用。

它不僅可以安裝物理機(jī),同時(shí)也支持虛擬化、GuestOS 的安裝。另外,Cobbler 還能結(jié)合 Puppet 等集中化管理軟件,實(shí)現(xiàn)自動(dòng)化管理。

Cobbler 各組件關(guān)系:

安裝過程:

安裝 Cobbler:

cobbler 由 epel 源提供,故此需要事先配置指向 epel 的 yum 源;cobbler 會(huì)把依賴的服務(wù)一并安裝,如  tftp-server、httpd; 還需要安裝 dncp、rsync 等。

[root@node0 ~]# yum install cobbler pykickstart debmirror dhcp rsync cman fence-agents [root@node0 ~]# service httpd start [root@node0 ~]# chkconfig tftp on [root@node0 ~]# chkconfig rsync on

配置 Cobbler:

[root@node0 ~]# vim /etc/cobbler/settings 

server: 192.168.1.4 

next_server: 192.168.1.4  

 

[root@node0 ~]# cobbler get-loaders  

 

[root@node0 ~]# vim /etc/debmirror.conf 

#@dists= sid  

#@arches= i386  

 

[root@node0 ~]# openssl passwd -1 -salt `openssl rand -hex 4` 

$1$ca6a7d72$KDte4ZK00OCLiK4PLE4tp0 

[root@node0 ~]# vim /etc/cobbler/settings 

default_password_crypted:  $1$ca6a7d72$KDte4ZK00OCLiK4PLE4tp0  

 

[root@node0 ~]# service cobblerd start 

[root@node0 ~]# chkconfig cobblerd on 

[root@node0 ~]# cobbler sync 

配置 DHCP:

[root@node0 ~]# cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf [root@node0 ~]# vim /etc/dhcp/dhcpd.conf subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.1 192.168.1.100; option routers 192.168.1.1; next-server 192.168.1.4; filename  pxelinux.0  } [root@node0 ~]# service dhcpd start [root@node0 ~]# chkconfig dhcpd on

添加 distro:掛載鏡像,添加到 cobbler;

[root@node0 ~]# mount /mnt/hgfs/lin/CentOS-6.7-x86_64-bin-DVD1.iso /mnt/cdrom/ [root@node0 ~]# cobbler import --name=CentOS-6.7-x86_64 --path=/mnt/cdrom/ --kickstart=/root/anaconda-ks.cfg task started: 2016-03-08_203724_import task started (id=Media import, time=Tue Mar 8 20:37:24 2016) Found a candidate signature: breed=redhat, version=rhel6 Found a matching signature: breed=redhat, version=rhel6 Adding distros from path /var/www/cobbler/ks_mirror/CentOS-6.7-x86_64: skipping import, as distro name already exists: CentOS-6.7-x86_64 No distros imported, bailing out !!! TASK FAILED !!!

查看當(dāng)前 distro:

root@node0 ~]# cobbler distro list CentOS-6.7-x86_64

測試安裝:

以上是“如何安裝 Cobbler”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注丸趣 TV 行業(yè)資訊頻道!

正文完
 
丸趣
版權(quán)聲明:本站原創(chuàng)文章,由 丸趣 2023-08-25發(fā)表,共計(jì)2195字。
轉(zhuǎn)載說明:除特殊說明外本站除技術(shù)相關(guān)以外文章皆由網(wǎng)絡(luò)搜集發(fā)布,轉(zhuǎn)載請(qǐng)注明出處。
評(píng)論(沒有評(píng)論)
主站蜘蛛池模板: 泽库县| 互助| 怀宁县| 广西| 大丰市| 五原县| 台南市| 铜川市| 天台县| 康马县| 南康市| 普格县| 固阳县| 凭祥市| 怀宁县| 平原县| 甘孜县| 正镶白旗| 东源县| 延长县| 宁河县| 双鸭山市| 阿合奇县| 准格尔旗| 福鼎市| 三门县| 忻州市| 锡林郭勒盟| 镇雄县| 墨竹工卡县| 仲巴县| 昌邑市| 山东省| 阿拉善盟| 乳源| 长沙县| 临沂市| 阜阳市| 莆田市| 天祝| 万盛区|