cobbler 實現系統自動化安裝
1.安裝包和配置服務
yum install cobbler dhcp -y
systemctl enable tftp dhcpd httpd cobblerd
systemctl start tftp httpd cobblerd
2.修改cobbler 配置文件
cobbler check配置文件需要完成步驟
其中一下三項不用管
vim /etc/cobbler/settings
server: cobblerIP 384
next_server: cobblerIP 272
default_password_crypted: "$1$VBqc7U0W$F2qhI5oZwR8chJBU.mAly1" 101
manage_dhcp: 1 242
systemctl restart cobblerd
cobbler get-loaders
cobbler sync 同步文件
3.配置dhcp服務
vim /etc/cobbler/dhcp.template
subnet 192.168.36.0 netmask 255.255.255.0 {
option routers 192.168.36.254;
option domain-name-servers 1.1.1.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.36.100 192.168.36.254;
cobbler sync 同步文件
4.導入安裝源文件
cobbler import --path=/misc/cd --name=Centos-6.10 --arch=x86_64
5.生成ks文件
vim /var/lib/cobbler/kickstarts/ks6_mini.cfg
url --url=$tree
6.將ks文件和系統關聯,生成啟動菜單
cobbler profile add --name=Centos-7.6-x86_64_mini --distro=Centos-7.6-x86_64 --kickstart=/var/lib/cobbler/kickstarts/ks7_mini.cfg
實驗:實現cobbler web管理
yum install cobbler-web SOHU EPEL使用搜狐版本老版本的軟件
cat /etc/cobbler/users.digest 存放密碼賬號的文件
systemctl restart httpd 重新啟動http服務
htdigest /etc/cobbler/users.digest Cobbler cobbler2
https://192.168.36.7/cobbler_web 能直接啟動該網站 默認密碼賬號cobbler
修改驗證方式
該驗證方式密碼賬號存放地
cobbler 實現系統自動化安裝