- Installing:
- PyYAML i386 3.08-4.el5 /PyYAML-3.08-4.el5.i386 721 k
- PyYAML x86_64 3.08-4.el5 /PyYAML-3.08-4.el5.x86_64 741 k
- cobbler noarch 2.0.11-2.el5 /cobbler-2.0.11-2.el5.noarch 2.2 M
- createrepo noarch 0.4.11-3.el5 /createrepo-0.4.11-3.el5.noarch 216 k
- libyaml i386 0.1.2-3.el5 /libyaml-0.1.2-3.el5.i386 115 k
- libyaml x86_64 0.1.2-3.el5 /libyaml-0.1.2-3.el5.x86_64 123 k
- mod_python x86_64 3.2.8-3.1 /mod_python-3.2.8-3.1.x86_64 1.2 M
- python-cheetah i386 2.0.1-2.el5 /python-cheetah-2.0.1-2.el5.i386 2.0 M
- python-cheetah x86_64 2.0.1-2.el5 /python-cheetah-2.0.1-2.el5.x86_64 2.0 M
- python-netaddr noarch 0.5.2-1.el5 /python-netaddr-0.5.2-1.el5.noarch 1.6 M
- [root@rhel57 cobberrpm]# yum -y install dhcp httpd xinetd tftp-server
- [root@rhel57 cobberrpm]# cobbler check
- cobblerd does not appear to be running/accessible
- [root@rhel57 cobberrpm]# service cobblerd status
- cobblerd is stopped
- [root@rhel57 cobberrpm]# service cobblerd start
- Starting cobbler daemon: [ OK ]
- [root@rhel57 cobberrpm]# cobbler check
- httpd does not appear to be running and proxying cobbler
- [root@rhel57 cobberrpm]# service httpd restart
- Stopping httpd: [FAILED]
- Starting httpd: [ OK ]
- [root@rhel57 cobberrpm]# cobbler check
- httpd does not appear to be running and proxying cobbler
- [root@rhel57 cobberrpm]# getenforce
- Enforcing
- [root@rhel57 cobberrpm]# setenforce 0
- [root@rhel57 cobberrpm]# getenforce
- Permissive
- [root@rhel57 cobberrpm]# 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.
- 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.
- 3 : Must enable a selinux boolean to enable vital web services components, run: setsebool -P httpd_can_network_connect true
- 4 : you need to set some SELinux content rules to ensure cobbler serves content correctly in your SELinux environment, run the following: /usr/sbin/semanage fcontext -a -t public_content_t "/tftpboot/.*" && /usr/sbin/semanage fcontext -a -t public_content_t "/var/www/cobbler/p_w_picpaths/.*"
- 5 : you need to set some SELinux rules if you want to use cobbler-web (an optional package), run the following: /usr/sbin/semanage fcontext -a -t httpd_sys_content_rw_t "/var/lib/cobbler/webui_sessions/.*"
- 6 : 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.
- 7 : change 'disable' to 'no' in /etc/xinetd.d/tftp
- 8 : change 'disable' to 'no' in /etc/xinetd.d/rsync
- 9 : debmirror package is not installed, it will be required to manage debian deployments and repositories
- 10 : 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
- Restart cobblerd and then run 'cobbler sync' to apply changes.
- [root@rhel57 cobberrpm]# setsebool -P httpd_can_network_connect=1
- [root@rhel57 cobberrpm]# setenforce 1
- [root@rhel57 cobberrpm]# 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.
- 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.
- 3 : you need to set some SELinux content rules to ensure cobbler serves content correctly in your SELinux environment, run the following: /usr/sbin/semanage fcontext -a -t public_content_t "/tftpboot/.*" && /usr/sbin/semanage fcontext -a -t public_content_t "/var/www/cobbler/p_w_picpaths/.*"
- 4 : you need to set some SELinux rules if you want to use cobbler-web (an optional package), run the following: /usr/sbin/semanage fcontext -a -t httpd_sys_content_rw_t "/var/lib/cobbler/webui_sessions/.*"
- 5 : 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.
- 6 : change 'disable' to 'no' in /etc/xinetd.d/tftp
- 7 : change 'disable' to 'no' in /etc/xinetd.d/rsync
- 8 : debmirror package is not installed, it will be required to manage debian deployments and repositories
- 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
- Restart cobblerd and then run 'cobbler sync' to apply changes.
- [root@rhel57 cobberrpm]# cat /etc/cobbler/settings |grep -v ^.*# |grep server
- build_reporting_smtp_server: "localhost"
- default_name_servers: []
- ldap_server: "ldap.example.com"
- next_server: 192.168.0.7
- redhat_management_server: "xmlrpc.rhn.redhat.com"
- server: 192.168.0.7
- [root@rhel57 cobberrpm]# service cobblerd restart
- [root@rhel57 cobberrpm]# vim /etc/xinetd.d/tftp
- [root@rhel57 cobberrpm]# vim /etc/xinetd.d/rsync
- [root@rhel57 cobberrpm]# openssl passwd -1 -salt 'random' 'redhat'
- $1$random$ARddkLOcxeu5GR/EqWdQK1
- [root@rhel57 cobberrpm]# cat /etc/cobbler/settings |grep -v ^.*# |grep pass
- default_password_crypted: "$1$mF86/UHC$WvcIcX2t6crBz2onWxyac."
- ldap_search_passwd: ''
- [root@rhel57 cobberrpm]# vim /etc/cobbler/settings
- [root@rhel57 cobberrpm]# vim /etc/cobbler/settings
- [root@rhel57 cobberrpm]# service cobblerd restart
- Stopping cobbler daemon: [ OK ]
- Starting cobbler daemon: [ OK ]
- [root@rhel57 cobberrpm]# vim /etc/selinux/config
- [root@rhel57 cobberrpm]# setenforce 0
- [root@rhel57 cobberrpm]# service cobblerd restart
- Stopping cobbler daemon: [ OK ]
- Starting cobbler daemon: [ OK ]
- [root@rhel57 cobberrpm]# /usr/sbin/semanage fcontext -a -t public_content_t "/tftpboot/.*" && /usr/sbin/semanage fcontext -a -t public_content_t "/var/www/cobbler/p_w_picpaths/.*"
- /usr/sbin/semanage: File context for /tftpboot/.* already defined
- [root@rhel57 cobberrpm]# cobbler sync
- task started: 2011-12-08_002820_sync
- task started (id=Sync, time=Thu Dec 8 00:28:20 2011)
- running pre-sync triggers
- cleaning trees
- mkdir: /tftpboot/pxelinux.cfg
- mkdir: /tftpboot/grub
- mkdir: /tftpboot/p_w_picpaths
- mkdir: /tftpboot/s390x
- mkdir: /tftpboot/ppc
- mkdir: /tftpboot/etc
- removing: /tftpboot/grub/p_w_picpaths
- copying bootloaders
- copying: /usr/lib/syslinux/pxelinux.0 -> /tftpboot/pxelinux.0
- copying: /usr/lib/syslinux/menu.c32 -> /tftpboot/menu.c32
- copying: /usr/lib/syslinux/memdisk -> /tftpboot/memdisk
- copying distros
- copying p_w_picpaths
- generating PXE configuration files
- cleaning link caches
- generating PXE menu structure
- running post-sync triggers
- running python triggers from /var/lib/cobbler/triggers/sync/post/*
- running python trigger cobbler.modules.sync_post_restart_services
- running shell triggers from /var/lib/cobbler/triggers/sync/post/*
- running python triggers from /var/lib/cobbler/triggers/change/*
- running python trigger cobbler.modules.scm_track
- running shell triggers from /
- [root@rhel57 cobberrpm]# mount -oloop -r /mnt/hgfs/ISO/rhel-server-5.7-x86_64-dvd.iso /cdrom
- cobbler import --path=/cdrom/ --name=rhel5764 --arch=x86_64
- [root@rhel57 ks_mirror]# cobbler report
- distros:
- ==========
- Name : rhel5764-x86_64
- Architecture : x86_64
- Breed : redhat
- Comment : rhel5.7
- Initrd : /var/www/cobbler/ks_mirror/rhel5764-x86_64/p_w_picpaths/pxeboot/initrd.img
- Kernel : /var/www/cobbler/ks_mirror/rhel5764-x86_64/p_w_picpaths/pxeboot/vmlinuz
- Kernel Options : {}
- Kernel Options (Post Install) : {}
- Kickstart Metadata : {'tree': 'http://@@http_server@@/cblr/links/rhel5764-x86_64'}
- Management Classes : []
- OS Version : rhel5
- Owners : ['admin']
- Red Hat Management Key : <
> - Red Hat Management Server : <
> - Template Files : {}
- Name : rhel5764-xen-x86_64
- Architecture : x86_64
- Breed : redhat
- Comment : rhel5.7
- Initrd : /var/www/cobbler/ks_mirror/rhel5764-x86_64/p_w_picpaths/xen/initrd.img
- Kernel : /var/www/cobbler/ks_mirror/rhel5764-x86_64/p_w_picpaths/xen/vmlinuz
- Kernel Options : {}
- Kernel Options (Post Install) : {}
- Kickstart Metadata : {'tree': 'http://@@http_server@@/cblr/links/rhel5764-xen-x86_64'}
- Management Classes : []
- OS Version : rhel5
- Owners : ['admin']
- Red Hat Management Key : <
> - Red Hat Management Server : <
> - Template Files : {}
- profiles:
- ==========
- Name : rhel5764-x86_64
- Comment :
- DHCP Tag : default
- Distribution : rhel5764-x86_64
- Enable PXE Menu? : 1
- Kernel Options : {}
- Kernel Options (Post Install) : {}
- Kickstart : /var/lib/cobbler/kickstarts/sample.ks
- Kickstart Metadata : {}
- Management Classes : []
- Name Servers : []
- Name Servers Search Path : []
- Owners : ['admin']
- Parent Profile :
- Red Hat Management Key : <
> - Red Hat Management Server : <
> - Repos : []
- Server Override : <
> - Template Files : {}
- Virt Auto Boot : 1
- Virt Bridge : xenbr0
- Virt CPUs : 1
- Virt File Size(GB) : 5
- Virt Path :
- Virt RAM (MB) : 512
- Virt Type : qemu
- Name : rhel5764-xen-x86_64
- Comment :
- DHCP Tag : default
- Distribution : rhel5764-xen-x86_64
- Enable PXE Menu? : 1
- Kernel Options : {}
- Kernel Options (Post Install) : {}
- Kernel Options (Post Install) : {}
- Kickstart : /var/lib/cobbler/kickstarts/sample.ks
- Kickstart Metadata : {}
- Management Classes : []
- Name Servers : []
- Name Servers Search Path : []
- Owners : ['admin']
- Parent Profile :
- Red Hat Management Key : <
> - Red Hat Management Server : <
> - Repos : []
- Server Override : <
> - Template Files : {}
- Virt Auto Boot : 1
- Virt Bridge : xenbr0
- Virt CPUs : 1
- Virt File Size(GB) : 5
- Virt Path :
- Virt RAM (MB) : 512
- Virt Type : xenpv
- systems:
- ==========
- repos:
- ==========
- p_w_picpaths:
- ==========
- vi /etc/cobbler/dhcp.template
- [root@rhel57 ks_mirror]# cobbler sync
- task started: 2011-12-08_013212_sync
- task started (id=Sync, time=Thu Dec 8 01:32:12 2011)
- running pre-sync triggers
- cleaning trees
- removing: /var/www/cobbler/p_w_picpaths/rhel5764-x86_64
- removing: /var/www/cobbler/p_w_picpaths/rhel5764-xen-x86_64
- removing: /tftpboot/pxelinux.cfg/default
- removing: /tftpboot/grub/p_w_picpaths
- removing: /tftpboot/grub/efidefault
- removing: /tftpboot/s390x/profile_list
- copying bootloaders
- copying: /usr/lib/syslinux/pxelinux.0 -> /tftpboot/pxelinux.0
- copying: /usr/lib/syslinux/menu.c32 -> /tftpboot/menu.c32
- copying: /usr/lib/syslinux/memdisk -> /tftpboot/memdisk
- copying distros
- copying files for distro: rhel5764-x86_64
- trying hardlink /var/www/cobbler/ks_mirror/rhel5764-x86_64/p_w_picpaths/pxeboot/vmlinuz -> /tftpboot/p_w_picpaths/rhel5764-x86_64/vmlinuz
- trying hardlink /var/www/cobbler/ks_mirror/rhel5764-x86_64/p_w_picpaths/pxeboot/initrd.img -> /tftpboot/p_w_picpaths/rhel5764-x86_64/initrd.img
- trying hardlink /var/www/cobbler/ks_mirror/rhel5764-x86_64/p_w_picpaths/pxeboot/vmlinuz -> /var/www/cobbler/p_w_picpaths/rhel5764-x86_64/vmlinuz
- trying hardlink /var/www/cobbler/ks_mirror/rhel5764-x86_64/p_w_picpaths/pxeboot/initrd.img -> /var/www/cobbler/p_w_picpaths/rhel5764-x86_64/initrd.img
- copying files for distro: rhel5764-xen-x86_64
- trying hardlink /var/www/cobbler/ks_mirror/rhel5764-x86_64/p_w_picpaths/xen/vmlinuz -> /tftpboot/p_w_picpaths/rhel5764-xen-x86_64/vmlinuz
- trying hardlink /var/www/cobbler/ks_mirror/rhel5764-x86_64/p_w_picpaths/xen/initrd.img -> /tftpboot/p_w_picpaths/rhel5764-xen-x86_64/initrd.img
- trying hardlink /var/www/cobbler/ks_mirror/rhel5764-x86_64/p_w_picpaths/xen/vmlinuz -> /var/www/cobbler/p_w_picpaths/rhel5764-xen-x86_64/vmlinuz
- trying hardlink /var/www/cobbler/ks_mirror/rhel5764-x86_64/p_w_picpaths/xen/initrd.img -> /var/www/cobbler/p_w_picpaths/rhel5764-xen-x86_64/initrd.img
- copying p_w_picpaths
- generating PXE configuration files
- generating PXE configuration files
- cleaning link caches
- generating PXE menu structure
- running post-sync triggers
- running python triggers from /var/lib/cobbler/triggers/sync/post/*
- running python trigger cobbler.modules.sync_post_restart_services
- running shell triggers from /var/lib/cobbler/triggers/sync/post/*
- running python triggers from /var/lib/cobbler/triggers/change/*
- running python trigger cobbler.modules.scm_track
- running shell triggers from /var/lib/cobbler/triggers/change/*
- *** TASK COMPLETE ***
- service xinetd start
- service dhcpd start
- service cobblerd start