环境
安装与配置
- 配置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
- cobbler sync
- over
使用Cobbler安装OS
posted @
2018-09-14 10:18
gogogo11
阅读(
140)
评论()
编辑
收藏
举报