cobbler重裝
根據此文已自動化安裝centos 7的版本http://www.cnblogs.com/shhnwangjian/p/5858900.html
在cobbler-test主機上重裝centos 6.8版本,步驟如下:
安裝EPEL 倉庫 rpm -ivh http://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm
yum install -y koan
列出能重裝的系統
koan --server=192.168.137.10 --list=profiles
# --server cobbler地址

指定要重裝的系統
koan --replace-self --server=192.168.137.10 --profile=CentOS-6.8-x86_64

執行reboot,開始重裝centos 6.8系統
自動重裝中的幾張截圖



安裝完成,查看系統

cobbler web
訪問地址:https://192.168.137.10/cobbler_web

用戶名、密碼默認為cobbler

如何更改登錄用戶名和密碼?
cd /etc/cobbler/
cat users.conf
下圖標紅處修改用戶名

用戶密碼
cat users.digest

htdigest /etc/cobbler/users.digest "Cobbler" cobbler
兩次輸入123456

web頁面退出,重新登錄,賬號密碼為cobbler\123456
Profiles


Kickstart Templates


Import DVD

cobbler定制化
裝機頁面自定義
vim /etc/cobbler/pxe/pxedefault.template

上面標紅的部分是下圖自動裝機時顯示的內容

修改完配置文件后一定要執行cobbler sync
