还有9个问题要处理,容我处理下
设置服务器IP
The 'server' field in /etc/cobbler/settings must be set to something other than localhost, or kickstarting features will not work. This should be a resolvable hostname or IP for the boot server as reachable by all machines that will use it.
vi /etc/cobbler/settings
cat /etc/cobbler/settings | grep -v ^# | grep -v ^$
改3个地方
bind_master: 192.168.10.10
next_server: 192.168.10.10
server: 192.168.10.10
禁用SELinux
SELinux is enabled. Please review the following wiki page for details on ensuring cobbler works correctly in your SELinux environment:
https://github.com/cobbler/cobbler/wiki/Selinux
systemctl stop firewalld
systemctl disable firewalld
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
grep SELINUX=disabled /etc/selinux/config
setenforce 0
开启TFTP
change 'disable' to 'no' in /etc/xinetd.d/tftp
vi /etc/xinetd.d/tftp
开启rsync
enable and start rsyncd.service with systemctl
systemctl start rsyncd
systemctl enable rsyncd
安装fencing
fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install -y fence-agents
systemctl restart cobblerd
cobbler check
剩下4个问题
下载启动程序
Some network boot-loaders are missing from /var/lib/cobbler/loaders, you may run 'cobbler get-loaders' to download them, or, if you only want to handle x86/x86_64 netbooting, you may ensure that you have installed a *recent* version of the syslinux package installed and can ignore this message entirely. Files in this directory, should you want to support all architectures, should include pxelinux.0, menu.c32, elilo.efi, and yaboot. The 'cobbler get-loaders' command is the easiest way to resolve these requirements.
cobbler get-loaders
安装大便镜像package
debmirror package is not installed, it will be required to manage debian deployments and repositories
yum install -y debmirror.noarch
The default password used by the sample templates for newly installed machines (default_password_crypted in /etc/cobbler/settings) is still set to 'cobbler' and should be changed, try: "openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'" to generate new one
openssl passwd -1 -salt 'random-phrase-here' '12345.com'
$1$random-p$N2Gta7Jon4dskSI6zKe5C1
vi /etc/cobbler/settings
把default_password_crypted 替换成新密码