Updating Cobbler on RHEL5 to Import ESXi5 for PXE Install
Here's what you do:
- install an RPMbuild of cobbler 2.2.3 . Normally this is laughable-stupid, but we know the official one's coming eventually and we'll get the update from the official channels automatically.
- From the cobbler release_22 branch, go get the TGZ file for the latest 2.2 release:
https://github.com/cobbler/cobbler/tarball/release22 - unpack that
tar -C /tmp -xf cobbler-cobbler-cobbler-2.2.3-2-0-g80d646a.tar.gz(or just do it all in one go:
wget -qO- https://github.com/cobbler/cobbler/tarball/release22 | tar -C /tmp -xzf - ) - change and build it
make -C /tmp/cobbler-cobbler-80d646a rpms - if you're me, you'll then remake it just to get the right apt repo, but hey. People like to make things inside-out, and forget that the packaging is on the outside of the build. Be nice to them, though, as they may be amateurs, and it's easy like rolling a stop-sign.
- install cobbler over what you have:
rpm -Uvh /tmp/cobbler-cobbler-80d646a/rpm-build/cobbler-2.2.3-2.noarch.rpm - watch it fail when you do a cobbler check due to a missing and unreported dependency:
cobbler check - install said dependency, re-run cobbler check, think disapproving thoughts of the packagers:
yum -y install python-ctypes
cobbler check
- From the cobbler release_22 branch, go get the TGZ file for the latest 2.2 release:
- grab your ESXi5 ISO
- import that
mount -o loop VMware-VMvisor-Installer-5.0.0.update01-623860.x86_64.iso /mnt/cdrom
cobbler import -name esxi5 --path /mnt/cdrom/ - rejoice
more beer








