Deploying Ubuntu with Cobbler
Introduction
In my previous article, I described the basics of Cobbler and how to get a simple installation up and running and distributing Linux.
While I was able to get simple RedHat-based distributions installed easily, I had some problems with Ubuntu. Although it was easy enough to configure Cobbler to distribute Ubuntu via PXE, I wanted it to utilize a kickstart file to automate responses. I had been doing this for quite some time without Cobbler, so I knew it had to be an issue internal to Cobbler.
After a few hours of troubleshooting and testing, I was able to get it working.
Table of Contents
The Solution
note: This solution has only been tested with Ubuntu Server 10.04 LTS.
The first thing I noticed was that the kernel options that are passed to the target system are significantly different when marking a distribution as a breed of “ubuntu” rather than “redhat”:
Breed: ubuntu
append initrd=/images/10.04-LTS-x86_64/initrd.gz locale= text auto url=http://192.168.255.3/cblr/svc/op/ks/profile/Ubuntu-10.04-LTS-x64 hostname=Ubuntu-10.04-LTS-x64 domain=local.lan suite=jaunty
Breed: redhat
append initrd=/images/10.04-LTS-x86_64/initrd.gz ksdevice=bootif lang= kssendmac text ks=http://192.168.255.3/cblr/svc/op/ks/profile/Ubuntu-10.04-LTS-x64
It is my guess that the url option is supposed to tell the Debian/Ubuntu installer to download a preseed file at the given location and utilize that file for the installation. However, the installation simply ignored that file and never used any settings from it. An odd note is that when configured to download a kickstart file rather than a preseed file, the install gave an error. So it was obviously reading the file but choosing to ignore it.
With the Breed set to RedHat, a proper ks option is given and the Debian/Ubuntu installer correctly downloads the file and utilizes it.
Configuration Files
The next problem was to account for changes between a standard RedHat install and a Debian/Ubuntu install. Rather than detail those changes, I will simply attach the three files I came up with:
- /var/lib/cobbler/kickstarts/ubuntu.ks
- /var/lib/cobbler/snippets/pre_install_ubuntu_network_config
- /var/lib/cobbler/snippets/ubuntu_network_config
Conclusion
Although lacking in some details, the point of this article was to quickly detail how to configure Cobbler to be able to distribute an Ubuntu Server install that is able to utilize a kickstart / answer file. The network configuration snippets I created are not as thorough as the standard network snippets that are packaged with Cobbler, but they will successfully configure a system for a given static IP.

Prof Falken said,
Hi Joe,
I’ve amended the source code for Cobbler so that the server itself can run on Ubuntu.
The code is available on github and the howto is at http://www.threedrunkensysadsonthe.net/2010/07/installing-cobbler-on-ubuntu/
Kind regards,
Matt
jtopjian said,
Hi Matt,
Nice work! Thank you for the link.
Deploying Ubuntu with Cobbler | Ubuntu-News - Your one stop for news about Ubuntu said,
[...] distribute Ubuntu via PXE, I wanted it to utilize a kickstart file to automate responses Read more here I had been doing this for quite some time without Cobbler, so I knew it had to be an issue internal [...]
Ubuntu Linux provisioning automation with Cobbler | Ubuntu Geek said,
[...] If you want to configure cobbler in ubuntu check here [...]
Community Cooking « btm.geek said,
[...] building it yourself provides. There is indication that some have gotten Cobbler running on and deploying Ubuntu, but it doesn’t appear to have taken hold. There’s a launchpad spec claiming there is a [...]
HugoKuo said,
error: can’t copy ‘docs/cobbler.1.gz’: doesn’t exist or not a regular file
While I install cobbler by http://www.ubuntugeek.com/ubuntu-linux-provisioning-automation-with-cobbler.html
roastinghosting said,
@HugoKuo,
We also had that problem. The simple solution is to open setup.py and find the lines which read:
Simply comment them out so they look like this:
Then re-run your install with ‘python setup.py install’
Regards, RoastingHosting
Cobbler 下安装 Ubuntu | Jasey Wang said,
[...] 根据他的步骤,我并没有成功的安装过。这里是一份别人安装过程中的总结,根据提示,依然没有成功。 [...]
Add A Comment