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, you can help support this site and get something for yourself by signing up for any of the services listed below through the provided links.

The following links are part of affiliate programs, and I will receive a referral payment from any of the services you sign-up for.

  • Get Faster Shipping: Perhaps you're about to order some stuff on 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.
  • Start Investing Now: Are you looking to start investing some of your disposable saved income? Get started by opening an account with Webull, where upon sign-up and opening a brokerage account with an initial deposit of at least $100 you will receive 1 stock valued (subject to change based on normal market movement) between $8 and $1600.

Thanks for reading and take care.