Restart cobblerd and then run 'cobbler sync' to apply changes.
下面是解释:本段参考徐博士博客 http://www.xuliangwei.com/xubusi/446.html
1、修改/etc/cobbler/settings 文件中的 server 参数的值为提供 cobbler 服务的主机
相应的 IP 地址或主机名,如 server: 10.0.0.101;
[root@cobbler-node1 ~]# sed -i 's/server: 127.0.0.1/server: 10.0.0.101/'
/etc/cobbler/settings
2、修改/etc/cobbler/settings 文件中的 next_server 参数的值为提供 PXE 服务的主
机相应的 IP 地址,如 next_server: 10.0.0.101;
[root@cobbler-node1 ~]# sed -i 's/next_server: 127.0.0.1/next_server:
10.0.0.101/' /etc/cobbler/settings
3、修改/etc/xinetd.d/tftp 文件中的 disable 参数修改为 disable = no
4、执行 cobbler get-loaders 命令即可;否则,需要安装 syslinux 程序包,而后复
制/usr/share/syslinux/{pxelinux.0,memu.c32}等文件 至 /var/lib/cobbler/loaders/ 目
录中;
5、执行 systemctl enable rsyncd 命令即可;
6、如果有强迫症可以选择 yum –y install debmirror 然后根据错误进行解决,一
般错误如下。
注释/etc/dedmirror.conf 文件中的 @dists=”sid”; @arches=”i386”;
7 、 [root@cobbler-node1 ~]# openssl passwd -1 -salt '$(openssl rand -hex 4)'
'xuliangwei'
$1$$(openss$.wbDUBV/STL0YaNuAcusK/
[root@cobbler-node1~]# grep "default_password_crypted" /etc/cobbler/settings #
评论0