chkconfig httpd on chkconfig xinetd on chkconfig dhcpd on chkconfig cobblerd on service httpd start service xinetd start service dhcpd start service cobblerd start
五、效验cobbler安装条件
1. 修复cobbler check时出现的第一条错误信息
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
[root@pxe ~]# cobbler get-loaders task started: 2013-12-15_191305_get_loaders task started (id=Download Bootloader Content, time=Sun Dec 15 19:13:05 2013) downloading http://www.cobblerd.org/loaders/README to /var/lib/cobbler/loaders/README downloading http://www.cobblerd.org/loaders/COPYING.elilo to /var/lib/cobbler/loaders/COPYING.elilo downloading http://www.cobblerd.org/loaders/COPYING.yaboot to /var/lib/cobbler/loaders/COPYING.yaboot downloading http://www.cobblerd.org/loaders/COPYING.syslinux to /var/lib/cobbler/loaders/COPYING.syslinux downloading http://www.cobblerd.org/loaders/elilo-3.8-ia64.efi to /var/lib/cobbler/loaders/elilo-ia64.efi downloading http://www.cobblerd.org/loaders/yaboot-1.3.14-12 to /var/lib/cobbler/loaders/yaboot downloading http://www.cobblerd.org/loaders/pxelinux.0-3.61 to /var/lib/cobbler/loaders/pxelinux.0 downloading http://www.cobblerd.org/loaders/menu.c32-3.61 to /var/lib/cobbler/loaders/menu.c32 downloading http://www.cobblerd.org/loaders/grub-0.97-x86.efi to /var/lib/cobbler/loaders/grub-x86.efi downloading http://www.cobblerd.org/loaders/grub-0.97-x86_64.efi to /var/lib/cobbler/loaders/grub-x86_64.efi *** TASK COMPLETE *** [root@pxe ~]#
2. 修复debian/ubuntu系统安装选项支持包
1 2 3 4
# vi /etc/debmirror.conf 说明:前提是安装debmirror pykickstart这两个包,注释掉如下两行。 #@dists="sid"; #@arches="i386";
3. cobbler check效验环境
1 2 3 4
[root@pxe ~]# cobbler check The following are potential configuration items that you may want to fix: 1 : service dhcpd is not running Restart cobblerd and then run 'cobbler sync' to apply changes.
# cobbler import --path=/mnt --arch=x86_64 --name=Centos-5.9 task started: 2013-12-15_193916_import task started (id=Media import, time=Sun Dec 15 19:39:16 2013) Found a candidate signature: breed=redhat, version=rhel5 Found a matching signature: breed=redhat, version=rhel5 Adding distros from path /var/www/cobbler/ks_mirror/Centos-5.9-x86_64: creating new distro: Centos-5.9-x86_64 trying symlink: /var/www/cobbler/ks_mirror/Centos-5.9-x86_64 -> /var/www/cobbler/links/Centos-5.9-x86_64 creating new profile: Centos-5.9-x86_64 creating new distro: Centos-5.9-xen-x86_64 trying symlink: /var/www/cobbler/ks_mirror/Centos-5.9-x86_64 -> /var/www/cobbler/links/Centos-5.9-xen-x86_64 creating new profile: Centos-5.9-xen-x86_64 associating repos checking for rsync repo(s) checking for rhn repo(s) checking for yum repo(s) starting descent into /var/www/cobbler/ks_mirror/Centos-5.9-x86_64 for Centos-5.9-x86_64 processing repo at : /var/www/cobbler/ks_mirror/Centos-5.9-x86_64 need to process repo/comps: /var/www/cobbler/ks_mirror/Centos-5.9-x86_64 looking for /var/www/cobbler/ks_mirror/Centos-5.9-x86_64/repodata/*comps*.xml running: createrepo -c cache -s sha --groupfile /var/www/cobbler/ks_mirror/Centos-5.9-x86_64/repodata/comps.xml /var/www/cobbler/ks_mirror/Centos-5.9-x86_64 received on stdout: Spawning worker 0 with 3579 pkgs Worker 0: .......... ... 略.... .......... Worker 0: Workers Finished Gathering worker results Saving Primary metadata Saving file lists metadata Saving other metadata Generating sqlite DBs Sqlite DBs complete received on stderr: starting descent into /var/www/cobbler/ks_mirror/Centos-5.9-x86_64 for Centos-5.9-xen-x86_64 processing repo at : /var/www/cobbler/ks_mirror/Centos-5.9-x86_64 need to process repo/comps: /var/www/cobbler/ks_mirror/Centos-5.9-x86_64 looking for /var/www/cobbler/ks_mirror/Centos-5.9-x86_64/repodata/*comps*.xml *** TASK COMPLETE ***
install text cdrom lang zh_CN.UTF-8 keyboard us reboot url --url=http://192.168.1.10/cobbler/ks_mirror/Centos-5.9-x86_64 network --device eth0 --bootproto dhcp --noipv6 --hostname oa rootpw --iscrypted $1$H0bnNoWM$HE1R/mWv6LqbhUGI8Xw/t. firewall --disabled authconfig --enableshadow --enablemd5 selinux --disabled timezone Asia/Shanghai bootloader --location=mbr --driveorder=sda --append="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 --initlabel part /boot --fstype ext3 --size=200 --asprimary part swap --size=2048 part / --fstype ext3 --size=200 --grow %packages @admin-tools @base @chinese-support @core @development-libs @development-tools @dialup @editors @gnome-desktop @games @graphical-internet @graphics @java @legacy-software-development @legacy-software-support @office @printing @sound-and-video @text-internet @base-x system-config-kickstart kexec-tools iscsi-initiator-utils fipscheck squashfs-tools device-mapper-multipath sgpio imake emacs libsane-hpaio xorg-x11-utils xorg-x11-server-Xnest xorg-x11-server-Xvfb %post service sendmail stop