cobbler是将pxe进行了高级的封装,然后实现了可以同时提供多种操作系统的安装环境。

一、安装cobbler

[[email protected] ~]# yum install cobbler dhcp dhcp-common tftp tftp-server syslinux pykickstart debmirror -y

二、修改cobbler的基本配置

[[email protected] ~]# vim /etc/cobbler/settings
需要修改的内容:
manage_dhcp: 0   #指定是否让cobbler管理dhcp,0表示否
manage_tftpd: 0     #指定是否让cobbler管理tftp,0表示否
server: 192.168.100.86   #指定cobbler监听的主机ip

三、启动服务
1.启动httpd

[[email protected] ~]# service httpd restart
[[email protected] ~]# chkconfig httpd on

2.启动cobbler

[[email protected] ~]# service cobblerd restart
[[email protected] ~]# chkconfig cobblerd on

四、让cobbler做自检

[[email protected] ~]# cobbler check

check显示的需要做修改的内容,会因为主机的不同会各有差异,根据自己的提示进行修改即可。
修改完成之后重启cobbler并执行cobbler sync

[[email protected] ~]# service cobblerd restart
[[email protected] ~]# cobbler sync

cobbler安装和基本配置
可以看到已经成功配置。
此时,已经在/var/lib/tftpboot下生成了基于pxe启动相关的文件,我们可以去看一下:
cobbler安装和基本配置

相关文章: