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
修改验证方式
该验证方式密码账号存放地