環境
- rhel 6
安裝與配置
- 配置epel源
- yum install httpd dhcp tftp-server cobbler pykickstart syslinux rsync cman force-agent -y
- 修改xinetd的配置檔案, 将tftpd和rsync開啟
- 修改/etc/cobbler/settings檔案, 将server改為目前主機的ip位址, next_server改為目前主機ip位址, 找到password, 使用openssl passwd -1 -salt 'cobbler' '123456'生成密碼粘貼到此處, 将tftp的管理的值改為0
- cp /usr/share/syslinux/{pxelinux.0,menu.c32} /var/lib/cobbler/loaders
- 修改dhcp的配置檔案, 配置和PXE的dhcp是一樣的
- service httpd start; service cobblerd start
- cobbler check檢視哪些需要修改的, 比如關閉iptables和selinux等
- 重新開機httpd, xinetd, dhcpd, cobblerd
- cobbler sync
- 挂載iso驚醒, mount -r /dev/cdrom /mnt
- 導入鏡像, cobbler import --path=/mnt/ --name=yourname --arch=x86_64
- cobbler list
- cobbler profile list
- cobbler profile report --name=yourname
- cobbler profile edit --name=yourname
- over
使用Cobbler安裝OS
- 隻要讓新的host從nic啟動即可