2. 检查 cobbler 配置:
cobbler check
#0: The 'server' field in /var/lib/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.
#1: For PXE to be functional, the 'next_server' field in /var/lib/cobbler/settings must be set to something other than 127.0.0.1, and should match the IP of the boot server on the PXE network.
#2: change 'disable' to 'no' in /etc/xinetd.d/tftp
# 按提示解决相关问题,把 /var/lib/cobbler/settings 中的 server 和 next_server 设为本服务器的 IP 地址,/etc/xinetd.d/tftp中disable = yes,manage_dhcp 设为 1,以便管理 DHCP 3. 导入 CentOS 5 安装 DVD ISO 中的文件:
mount -o loop home/sapling/CentOS-5.4-x86_64-bin-DVD.iso /mnt/redhatISO
cobbler import --mirror=/mnt/redhatISO --name=CentOS-5-4-x86-64
# 从 /mnt/redhatISO 目录导入所有安装文件,命名为 CentOS-5-4-x86-64
cobbler list
# 查看导入结果,应包含一个xen的
4. 修改 DHCP 和 Kickstart 配置模板:
vi /etc/cobbler/dhcp.template
# DHCP 配置模板,注意你本服务器的 IP 地址要和dhcp配置的subnet一个网段,否则会启动失败。
vi /etc/cobbler/default.ks
# Kickstart 配置模板,可以用system-config-kickstart(建议)生成,也可以安装系统后在/root/anaconda-ks.cfg得到你所安装系统的配置。
5. 生成并同步所有配置:
cobbler sync
6. 启动相关服务:
service xinetd start
service dhcpd start
service cobblerd start
#设置相关服务开机启动
ntsysv