[iyunv@localhost yum.repos.d]# cobbler check
The following are potential configuration items that you may want to fix:
1 : 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.
注:这里对应着修改setting的server
2 : For PXE to be functional, the 'next_server' field in /etc/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.
注:这里对应着修改setting的next_server(tftp服务器的位置)
3 : change 'disable' to 'no' in /etc/xinetd.d/tftp
注:让tftp可以启动,并被xinetd管理
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.
注:增加一些基本的引导内核的文件用于pxe引导,这一步很关键
5 : change 'disable' to 'no' in /etc/xinetd.d/rsync
注:让rsync可以启动,并被xinetd管理
6 : reposync is not installed, need for cobbler reposync, install/upgrade yum-utils?
注:暂时忽略该错误
7 : debmirror package is not installed, it will be required to manage debian deployments and repositories
注:配置debmirror
8 : ksvalidator was not found, install pykickstart
注:需要安装改组件
9 : 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
注:修改密码
10 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them
注:增加电源管理组件
Restart cobblerd and then run 'cobbler sync' to apply changes.
2.1 2.2 2.9
1
2
3
4
5
6
7
cd /etc/cobbler
[iyunv@localhost cobbler]# sed -i 's#^server:.*#server: 108.108.108.75#' settings
[iyunv@localhost cobbler]# sed -i 's#^next_server:.*#next_server: 108.108.108.75#' settings
[iyunv@localhost cobbler]# sed -i 's#pxe_just_once: 0#pxe_just_once: 1#' settings
[iyunv@localhost cobbler]# openssl passwd -1 -salt 'random' 'liuliancao'
$1$random$6Q6tvl/J2PV1qhkZfN3cK/
[iyunv@localhost cobbler]# sed -i 's#default_password_crypted:.*#default_password_crypted: "$1$random$6Q6tvl/J2PV1qhkZfN3cK/"#' settings
2.3 2.5
1
2
[iyunv@localhost cobbler]# sed -i 's#disable.*#disable = no#' /etc/xinetd.d/tftp
[iyunv@localhost cobbler]# sed -i 's#disable.*#disable = no#' /etc/xinetd.d/rsync
#version=DEVEL
install
url --url="http://108.108.108.75/cobbler/ks_mirror/Centos-6.4-X86_64"
lang en_US.UTF-8
keyboard us
network --onboot yes --device eth0 --bootproto static --ip 60.60.60.13 --netmask 255.255.255.0 --gateway 60.60.60.1 --noipv6 --nameserver 202.98.192.67 --hostname cobbler
rootpw --iscrypted $default_password_crypted
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --enforcing
timezone --utc Asia/Chongqing
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --all --drives=sda --initlabel
zerombr
clearpart --all --initlabel
ignoredisk --only-use=sda
part /boot --fstype=ext4 --size=200
part /swap --fstype=ext4 --size=10240
part / --fstype=ext4 --size=38912
#part pv.008002 --grow --size=200