Problems Provisioning Ubuntu with Cobbler and Kickstart Profiles

• Updated January 10, 2019

Using cobbler to provision Ubuntu systems is no problem when using Preseed, but it is a problem when using Kickstart Profiles (Ubuntu has had Kickstart compatibility since at least 10.04).

If you have ever created a Ubuntu cobbler distro tied to a cobbler profile pointing to a Kickstart Profile then tried to PXE boot a system from that cobbler profile, you have probably encountered the following error:

Download debconf preconfiguration file The file may be corrupt

This occurs because in the tftp PXE boot entry (found in /var/lib/tftp/pxelinux.cfg/default) the append line pointing to the Kickstart Profile is written using url= and not ks=. Using url= causes the Ubuntu installer to expect a Preseed file, not a Kickstart Profile. If you have any CentOS profiles, you will notice their tftp PXE boot entry’s append line is written using ks= and not url=.

When a cobbler profile is tagged as a Ubuntu distribution, cobbler will always output url=. You could manually change it to ks=, but running cobbler sync at any point would overwrite your changes. There is probably a way to trick cobbler into thinking a Ubuntu profile is a CentOS profile, but that’s more trouble than it’s worth.

For some time, I had difficulty searching Google for a solution to this - if there even was one - or finding any discussion on it. As of September 2014, some discussion had finally appeared and the original poster has created a GitHub Issue to support selection of Preseed or Kickstart Profiles for distributions that support it. Assuming this feature is added in cobbler 3.0.0, an option will be available to specify Ubuntu profiles to use either Preseed or Kickstart Profiles.

If you found this post useful and would like to help support this site - and get something for yourself - sign up for any of the services listed below through the provided affiliate links. I will receive a referral payment from any of the services you sign-up for.

Get faster shipping and more with Amazon Prime: About to order something from Amazon but want to get more value out of the money you would normally pay for shipping? Sign-up for a free 30-day trial of Amazon Prime to get free two-day shipping, access to thousands of movies and TV shows, and more.

Thanks for reading and take care.