create new tag
view all tags
-- ColinLeavettBrown - 2013-03-06

Installing Ubuntu 12.04 via Cobbler

Using the cobbler server on elephant.heprc.uvic.ca, Ubuntu 12.04.2 was installed via the private network ( on e1, e13, and e14 using the following procedure:

  • Retrieve the Ubuntu installation image:
cd ~/Downloads
wget http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/releases/12.04.2/ubuntu-12.04.2-alternate-amd64.iso

  • Create the Cobbler distro and profile:
sudo su
mount -o loop ubuntu-12.04.2-alternate-amd64.iso /mnt
cobbler import --name ubuntu-12.04.2 --path=/mnt --breed=ubuntu

* Add necessary kernel options to the profile:

cobbler profile edit --name ubuntu-12.04.2-x86_64 --kopts "language=en_US priority=critical"

  • Setup the Ubuntu distribution for network boot install:
cd /var/www/cobbler/ks_mirror/ubuntu-12.04.2/install
mv initrd.gz original_initrd.gz
gunzip -c netboot/ubuntu-installer/amd64/initrd.gz >netboot/ubuntu-installer/amd64/initrd
mkdir tmp
cd tmp
cpio -i < ../netboot/ubuntu-installer/amd64/initrd
mv preseed.cfg original_preseed.cfg

wget https://wiki.heprc.uvic.ca/twiki/pub/HEPrc/CobblerInstallUbuntu/preseed.cfg

wget https://wiki.heprc.uvic.ca/twiki/pub/HEPrc/CobblerInstallUbuntu/mouse-firstboot

  • Make sure it is executable.
chmod 700 mouse-firstboot

  • Pack and create the replacement initrd:
find | cpio -o -H newc >../initrd
cd ..
gzip initrd

  • Create the Cobbler system definition for the system to be installed:
cobbler system add --name e1 --hostname mouse01.heprc.uvic.ca --profile ubuntu-12.04.2-x86_64 --kopts="cobbler_name=e1" --netboot true --gateway
cobbler system edit --name e1 --interface eth0 --ip-address --mac 78:2b:cb:5f:bd:a3 --static false --subnet
cobbler system edit --name e1 --interface eth6 --ip-address --mac 00:1b:21:c6:fd:18 --static false --subnet

  • And for e13:
cobbler system add --name e13 --hostname mouse02.heprc.uvic.ca --profile ubuntu-12.04.2-x86_64 --kopts="cobbler_name=e13" --netboot true --gateway
cobbler system edit --name e13 --interface eth0 --mac d4:ae:52:6c:d3:b5 --ip-address --subnet
cobbler system edit --name e13 --interface eth2 --mac 90:e2:ba:12:f4:c8 --ip-address --subnet

  • And for e14:
cobbler system add --name e14 --hostname mouse03.heprc.uvic.ca --profile ubuntu-12.04.2-x86_64 --kopts="cobbler_name=e14" --netboot true --gateway
cobbler system edit --name e14 --interface eth0 --mac d4:ae:52:6c:e2:ea --ip-address --subnet
cobbler system edit --name e14 --interface eth2 --mac 00:1b:21:cf:16:4c --ip-address --subnet   

  • Perform a Cobbler sync to create appropriate DHCP and tftpboot entries:
cobbler sync

  • Perform Ubuntu installation by power cycling the target system(s):
    • Either, ipmitool -U -H power cycle
    • or open the iDRAC6 web console to the target node and cycle the power.
Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatEXT mouse-firstboot r1 manage 1.6 K 2013-03-06 - 22:49 UnknownUser  
Unknown file formatcfg preseed.cfg r1 manage 15.5 K 2013-03-06 - 22:49 UnknownUser  
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | More topic actions
Topic revision: r2 - 2013-03-06 - crlb
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback