Recent Changes - Search:

Disclaimer

edit SideBar

Install Cobbler

On this page... (hide)

  1. 1. Install
  2. 2. Configure web interface
  3. 3. Setup
  4. 4. test on vmware

Work in progress - These tools were not used for the first install, we are testing them on a reinstall

Cobbler is an install server that helps to deploy OS installs on multiple machines, with consistent configurations. We'll use it to deploy Linux both on virtual nodes and hardware nodes. Together we also use Func -Fedora Unified Network Controller

1.  Install

epel-sl4.repo:

[epel]
name = Extras Packages For Enterprise Linux
#baseurl=http://download.fedora.redhat.com/pub/epel/4/i386
baseurl=http://download.fedora.redhat.com/pub/epel/4/x86_64
enabled=0
gpgcheck=0

[epel-test]
name = Extras Packages For Enterprise Linux - test
#baseurl=http://download.fedora.redhat.com/pub/epel/testing/i386
baseurl=http://download.fedora.redhat.com/pub/epel/testing/4/x86_64
enabled=0
gpgcheck=0
yum install --enablerepo epel cobbler koan func yum-utils  tftp-server dhcp httpd bind syslinux
service cobblerd start

Unfortunately this does not work on SL4, the cobbler package has a dependency on python-urlgrabber that conflicts with urlgrabber. So we have to download the src.rpm, install it with --nomd5, change the dep, and rebuild

2.  Configure web interface

https://fedorahosted.org/cobbler/wiki/CobblerWebInterface

First of all you must change the default password

htdigest /etc/cobbler/users.digest "Cobbler" cobbler

3.  Setup

https://fedorahosted.org/cobbler/wiki/HowToCobblerServer

Set pxe_just_once: 1 in /etc/cobbler/settings

We import from CD ISO images, because we don't have an rsync mirror nearby:

mount -o loop,ro /VMs/SL47x86_iso/SL.47.091608.i386.disc1.iso /mnt/iso1
mount -o loop,ro /VMs/SL47x86_iso/SL.47.091608.i386.disc2.iso /mnt/iso2
mount -o loop,ro /VMs/SL47x86_iso/SL.47.091608.i386.disc3.iso /mnt/iso3
mount -o loop,ro /VMs/SL47x86_iso/SL.47.091608.i386.disc4.iso /mnt/iso4
mount -o loop,ro /VMs/SL47x86_iso/SL.47.091608.i386.disc5.iso /mnt/iso5
mount -o loop,ro /VMs/SL47x86_iso/SL.47.091608.i386.disc6.iso /mnt/iso6
cobbler import --name=sl47 --arch=i386 --path=/mnt/iso1
cobbler import --name=sl47 --arch=i386 --path=/mnt/iso2
cobbler import --name=sl47 --arch=i386 --path=/mnt/iso3
cobbler import --name=sl47 --arch=i386 --path=/mnt/iso4
cobbler import --name=sl47 --arch=i386 --path=/mnt/iso5
cobbler import --name=sl47 --arch=i386 --path=/mnt/iso6
---------------- (adding distros)
No distro signature for kernel at /var/www/cobbler/ks_mirror

Import copies the install, but fails to recognise the distro (https://fedorahosted.org/cobbler/ticket/374). So we add it by hand:

# cobbler distro add --name sl47-i386 --kernel=/var/www/cobbler/ks_mirror/sl47-i386/isolinux/vmlinuz --initrd=/var/www/cobbler/ks_mirror/sl47-i386/isolinux/initrd.img 
# cobbler distro edit --name=sl47-i386 --os-version=rhel4 --comment "Scientific Linux 4.7 091608"
# cobbler distro report
distro               : sl47-i386
architecture         : i386
breed                : redhat
created              : Thu May 14 10:02:32 2009
comment              : Scientific Linux 4.7 091608
initrd               : /var/www/cobbler/ks_mirror/sl47-i386/isolinux/initrd.img
kernel               : /var/www/cobbler/ks_mirror/sl47-i386/isolinux/vmlinuz
kernel options       : {}
ks metadata          : {}
tree build time      : Thu Jan  1 02:00:00 1970
modified             : Thu May 14 10:11:59 2009
mgmt classes         : []
os version           : rhel4
owners               : [u'admin']
post kernel options  : {}
redhat mgmt key      : <<inherit>>
redhat mgmt server   : <<inherit>>
template files       : {}

Additional repositories are a cobbler feature, but they are not supported by RHEL4/SL4, so what you see below is useless:

cobbler repo add --name=sl47-errata-i386 --mirror='http://scientificlinux.mirror.ac.za/47/i386/SL/RPMS/' --mirror-locally=N
cobbler repo add --name=sl47-errata-x86_64 --mirror='http://scientificlinux.mirror.ac.za/47/x86_64/SL/RPMS/' --mirror-locally=N
cobbler repo add --name=sl4-dag-i386     --mirror='http://apt.sw.be/redhat/el4/en/i386/dag' --mirror-locally=N
cobbler repo add --name=jpackage         --mirror='http://ftp.heanet.ie/pub/jpackage/5.0/generic/free' --mirror-locally=N --arch=noarch
cobbler profile add --name=wn-sl47.i386 --distro=sl47-i386 --kickstart=/etc/cobbler/wn-sl47.ks
#cobbler profile add --name=wn-sl47.x8664 --distro=sl47-x86_64 --kickstart=/etc/cobbler/wn-sl47.ks

cobbler system add --name=vwn001 --hostname=vwn001 --dns-name=vwn001 --mac=00:50:56:01:00:01 --ip=10.0.2.1 --virt-cpus=2 --profile=wn-sl47.i386
cobbler system add --name=vwn002 --hostname=vwn002 --dns-name=vwn002 --mac=00:50:56:01:00:02 --ip=10.0.2.2 --virt-cpus=2 --profile=wn-sl47.x86_64
cobbler system add --name=wn001 --hostname=wn001 --dns-name=wn001 --mac=00:22:19:06:F1:6C --ip=10.0.0.1 --profile=wn-sl47.x86_64 --netboot-enabled=0
cobbler system add --name=wn002 --hostname=wn002 --dns-name=wn002 --mac=00:22:19:06:EB:F9 --ip=10.0.0.2 --profile=wn-sl47.x86_64 --netboot-enabled=0
cobbler system add --name=wn003 --hostname=wn003 --dns-name=wn003 --mac=00:22:19:06:E6:7E --ip=10.0.0.3 --profile=wn-sl47.x86_64 --netboot-enabled=0
cobbler system add --name=wn004 --hostname=wn004 --dns-name=wn004 --mac=00:22:19:06:F1:82 --ip=10.0.0.4 --profile=wn-sl47.x86_64 --netboot-enabled=0
cobbler system add --name=wn005 --hostname=wn005 --dns-name=wn005 --mac=00:22:19:06:F1:72 --ip=10.0.0.5 --profile=wn-sl47.x86_64 --netboot-enabled=0
cobbler system add --name=wn006 --hostname=wn006 --dns-name=wn006 --mac=00:22:19:06:EC:25 --ip=10.0.0.6 --profile=wn-sl47.x86_64 --netboot-enabled=0
cobbler system add --name=wn007 --hostname=wn007 --dns-name=wn007 --mac=00:22:19:06:F1:5C --ip=10.0.0.7 --profile=wn-sl47.x86_64 --netboot-enabled=0

cobbler sync

4.  test on vmware

https://fedorahosted.org/cobbler/wiki/VmwareIntegration

wget http://virt-manager.et.redhat.com/download/sources/virtinst/virtinst-0.400.3.tar.gz
tar zxvf virtinst-0.400.3.tar.gz 
cd virtinst-0.400.3
sudo python setup.py  install

but this further needs libvirt, which is not available on RHEL4. Let's go without koan first.

Edit - History - Print - Recent Changes - Search
Page last modified on June 04, 2012, at 04:30 PM