Cobbler and the Dell OpenManage Deployment Toolkit

This is an example of how to get Dell’s Deployment Toolkit to work with Cobbler. This will allow you to configure the BIOS, BMC, and RAID via commandline tools.

Assumptions:

  • Cobbler is already set up.
  • NFS exports are already configured. This example assumes that the Cobbler server is also the NFS server, but they can be different with a little work on your part. There are two exports: Read-Only (/srv/nfs/ro) and Read-Write (/srv/nfs/rw).

Instructions:
Download the toolkit: dtk_3.5.1_27_Linux.iso

Extract the DTK ISO to the local filesystem:

cd /srv/nfs/ro
mount -o ro,loop dtk_3.5.1_27_Linux.iso /mnt
mkdir -p /srv/nfs/ro/dtk-3.5.1/
rsync -av /mnt/ /srv/nfs/ro/dtk-3.5.1/
umount /mnt
chmod -R u+w /srv/nfs/ro/dtk-3.5.1/

Create the script that the DTK will run:

cat <<EOF >/srv/nfs/ro/dtk-3.5.1/shell.sh
#!/bin/bash

exec /bin/bash
EOF
chmod 0755 /srv/nfs/ro/dtk-3.5.1/shell.sh

Add the DTK as a distro in Cobbler (substitute the IP of your NFS server):

NFSIP=127.0.0.1
cobbler distro add --name=dtk-3.5.1 \
--arch=i386 --breed=debian \
--kernel=/srv/nfs/ro/dtk-3.5.1/isolinux/SA.1 \
--initrd=/srv/nfs/ro/dtk-3.5.1/isolinux/SA.2 \
--kopts "ramdisk_size=156482 Stage3_type=cdrom DEBUG=0 quiet share_type=nfs share_location=${NFSIP}:/srv/nfs/ro/dtk-3.5.1/ share_script=shell.sh share_opts=ro,nolock selinux=0"

Create a Cobbler profile:

cobbler profile add --name=dtk-3.5.1-shell --distro=dtk-3.5.1

You should now be able to boot your Dell server via the network to the Cobbler menu and choose “dtk-3.5.1-shell”. You should end up with a shell with the DTK environment on the server’s console.

Advertisements

Cobbler and the HP SmartStart Scripting Toolkit

This is an example of how to get HP’s SmartStart Scripting Toolkit to work with Cobbler. This will allow you to configure the BIOS, BMC, and RAID via commandline tools.

Assumptions:

  • Cobbler is already set up.
  • NFS exports are already configured. This example assumes that the Cobbler server is also the NFS server, but they can be different with a little work on your part. There are two exports: Read-Only (/srv/nfs/ro) and Read-Write (/srv/nfs/rw).

Instructions:
Download the toolkit: ss-scripting-toolkit-linux-8.50.tar.gz

Untar the SSSTK archive and rename the directory to a shorter version:

cd /srv/nfs/ro
tar zxvf ss-scripting-toolkit-linux-8.50.tar.gz
mv ss-scripting-toolkit-linux-8.50 sstk-8.50

Add the SSSTK as a distro in Cobbler (substitute the IP of your NFS server):

NFSIP=127.0.0.1
cobbler distro add --name=sstk-8.50 \
--arch=i386 --breed=debian \
--kernel=/srv/nfs/ro/sstk-8.50/boot_files/vmlinuz \
--initrd=/srv/nfs/ro/sstk-8.50/boot_files/initrd.img \
--kopts "root=/dev/ram0 rw ramdisk_size=184248 ide=nodma ide=noraid pnpbios=off network=1 sstk_mount=${NFSIP}:/srv/nfs/ro/sstk-8.50 sstk_mount_type=nfs sstk_mount_options=ro,nolock sstk_script=shell.sh"

Create a Cobbler profile:

cobbler profile add --name=sstk-8.50-shell --distro=sstk-8.50

You should now be able to boot your HP server via the network to the Cobbler menu and choose “sstk-8.50-shell”. You should end up with a shell with the SSSTK environment on the server’s console.