安装环境:
操作系统:CentOS 7.9.2009
一、安装软件包
yum install epel-release
yum install cobbler cobbler-web dhcp(如使用外部DHCP可不安装) httpd tftp-server xinetd
二、cobbler配置修改
vim /etc/cobbler/settings
修改,使能动态修改配置文件:
allow_dynamic_settings: 1
重启cobbler服务&配置开机启动:
systemctl restart cobblerd
systemctl enable cobblerd
systemctl enable --now cobblerd httpd tftp dhcpd
动态修改:
cobbler setting edit --name=server --value=192.168.2.128
cobbler setting edit --name=next_server --value=192.168.2.128
三、tftp配置修改
vim /etc/xinetd.d/tftp
修改,使能守护tftp-server
disable = no
重启xinetd服务&设置开机启动:
systemctl start xinetd
systemctl enable xinetd
配置检查
cobbler check
导入镜像前升级签名库
cobbler signature update
导入镜像
cobbler import --name=CentOS-7 --path=/mnt --arch=x86_64
为profile指定Kickstart文件:
cobbler profile edit --autoinstall=centos7.ks --name=CentOS-7-Minimal-Autoinstall-x86_64
配置修改:
修改profile配置文件,使能网卡使用传统命名方式:
cobbler profile edit --name=CentOS-7-Minimal-Autoinstall-x86_64 --kopts='net.ifnames=0 biosdevname=0'
openssl passwd -1 -salt 'random-phrase-here' '666666'
标签:服务,name,--,xinetd,配置,systemctl,cobbler,Cobbler,tftp From: https://www.cnblogs.com/diaoz/p/16877574.html