Cobbler安装环境:
Centos7.6-1810-x86_64 (Server with GUI)
1. yum install epel-release #安装yum源
2. systemctl disable firewalld #禁止启用防火墙
3. systemctl stop firewalld #停用防火墙
4. vi /etc/sysconfig/selinux #更改为“SELINUX=disabled”
5. getenforce 0
6. setenforce 0
7. reboot
8. yum install -y ntp #安装ntp并同步时间
9.ntpdate ntp1.aliyun.com
10.hwclock -w
11. hwclock
12. yum install fence-agents -y
13. yum install cobbler cobbler-web -y
14. yum install dhcp tftp-server pykickstart httpd xinetd debmirror -y
15. vi /etc/httpd/conf/httpd.conf #修改ServerName为你自己的IP地址
16. systemctl start httpd
17. systemctl enable httpd
18. vi /etc/xinetd.d/tftp # 修改tfpt文件中的disable为no
19. systemctl start xinetd
20. systemctl enable xinetd
21. yum install openssl openssl-devel -y
22. openssl passwd -1 -salt '' 'Huayan12#$'
23. yum install python-devel -y
24. yum install wireshark wireshark-gnome -y
25. yum install syslinux syslinux-devel -y
26. openssl passwd -1 -salt '' 'rootroot'
27. cobbler profile edit --name=xxxx --kickstart=/var/lib/cobbler/kickstarts/r3dvs.ks
经过2周的努力,终于实现了通过cobbler2.8.5自动安装部署centos7、centos8、openEuler、Kylinx系统。
关键在于distro_signatures.json文件的构造和修改,其中也涉及到一点点cobbler源码的修改