Skip to content

installing cobbler

by on February 4, 2013

well – i worked a little bit to install cobbler.

I have not finished yet – BUT

as I’m working now on VM – actually i don’t quiet need this…

I can just duplicate a VM and that’s it :-)

Anyways – installation went smoothly and the documentations are great.

Following http://cobbler.github.com/manuals/2.4.0/3/

#prerequisite
yum -y install git
yum -y install python
yum -y install createrepo
yum -y install httpd
yum -y install mkisofs
yum -y install mod_wsgi
yum -y install python-cheetah
yum -y install python-netaddr
yum -y install python-simplejson
yum -y install python-urlgrabber
yum -y install PyYAML
yum -y install rsync
yum -y install tftp-server
yum -y install yum-utils
# adding epel yum repo
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
#installing and starting cobbler
yum -y install cobbler
service cobblerd start
chkconfig cobblerd on
service httpd start
chkconfig httpd on
#adding disk
#via citrix manager - added a 100GB disk - /dev/xvdb1
fdisk /dev/xvdb (create partition)
# create LVM (from http://tldp.org/HOWTO/LVM-HOWTO/initdisks.html)
pvcreate /dev/xvdb1
vgcreate vg_cobbler /dev/xvdb1
vgchange -a y vg_cobbler (if need to reactivate) # check  size using vgdisplay vg_cobbler | grep "Total PE" ==> 25599 lvcreate -l 25599 vg_cobbler -n lv_cobbler
mkfs -t ext4 /dev/mapper/vg_cobbler-lv_cobbler
#run:
cobbler check
#changes to /etc/cobbler/settings
# change next_server, server: from 127.0.0.1 to the real IP
yum -y install syslinux
#output of cobbler check
1 : 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.

2 : change 'disable' to 'no' in /etc/xinetd.d/rsync

3 : since iptables may be running, ensure 69, 80/443, and 25151 are unblocked

4 : debmirror package is not installed, it will be required to manage debian deployments and repositories

5 : ksvalidator was not found, install pykickstart

6 : 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

7 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them

#edit /etc/xinetd.d/rsync
service iptables stop
chkconfig iptables off
yum -y install debmirror pykickstart
yum -y install cman fence-agent
# cobbler check
2 : comment 'dists' on /etc/debmirror.conf for proper debian support

3 : comment 'arches' on /etc/debmirror.conf for proper debian support #edit the file /etc/debmirror.conf

yum -y install syslinux-extlinux.x86_64 syslinux-perl.x86_64 syslinux-tftpboot.x86_64 service cobblerd restart cobbler sync
#now importing an ISO
mount -t iso9660 -o loop,ro /netapp_ISOs/rhel-server-6.3-x86_64-dvd.iso /mnt cobbler import --name=rhel63 --arch=x86_64 --path=/mnt
cobbler distro list
==>   rhel63-x86_64
cobbler profile list
==>   rhel63-x86_64
cobbler distro report rhel63-x86_64

Name                           : rhel63-x86_64
Architecture                   : x86_64
TFTP Boot Files                : {}
Breed                          : redhat
Comment                        : rhel6.3
Fetchable Files                : {}
Initrd                         : /var/www/cobbler/ks_mirror/rhel63-x86_64/images/pxeboot/initrd.img
Kernel                         : /var/www/cobbler/ks_mirror/rhel63-x86_64/images/pxeboot/vmlinuz
Kernel Options                 : {}
Kernel Options (Post Install)  : {}
Kickstart Metadata             : {'tree': 'http://@@http_server@@/cblr/links/rhel63-x86_64'}
Management Classes             : []
OS Version                     : rhel6
Owners                         : ['admin']
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Template Files                 : {}
# add a system

cobbler system add --name=test --profile=rhel63-x86_64 cobbler system edit --name=test --interface=eth0 --mac=00:50:56:ad:25:7d --ip-address=10.232.83.179 --netmask=255.255.255.0 --static=1 --dns-name=10.232.83.21 cobbler system edit --name=test --gateway=10.232.83.21 --hostname=tst_cblr cobbler sync

#cobbler web - http://cobbler.github.com/manuals/2.4.0/6_-_Web_Interface.html
yum -y install cobbler-web
edit /etc/cobbler/modules.conf
change password: htdigest /etc/cobbler/users.digest "Cobbler" cobbler
service cobblerd restart
service httpd restart
Advertisements

From → Uncategorized

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: