Cobbler Ubuntu 12.04 Installation

Tweet about this on Twitter0Share on Facebook0Share on Google+0Share on LinkedIn0

Cobbler is really powerful provisioning tool. I have been using it to provision salt-minion on bare metal servers. From official website:

Cobbler can help with provisioning, managing DNS and DHCP, package updates, power management, configuration management orchestration, and much more.

Latest Cobbler version is 2.4 and if you try to install it on Ubuntu 12.04 from packages you will get 2.2. I didn’t find PPA, so here is simple Cobbler Ubuntu 12.04 installation guide from source. First install all prerequisites:

apt-get update
apt-get -y install apache2 atftpd isc-dhcp-server bind9 createrepo fence-agents git-core \
                   libapache2-mod-wsgi mkisofs python-cheetah python-dev python-django \
                   python-netaddr python-setuptools python-simplejson python-urlgrabber \
                   python-yaml rsync syslinux

Enable additional Apache modules:

a2enmod ssl
a2enmod proxy_http
a2enmod rewrite

Simple fix in atftpd service (/etc/default/atftpd):

OPTIONS="--tftpd-timeout 300 --retry-timeout 5 --bind-address= --maxthread 100 --verbose=5 /srv/tftp"

After you are done restart atftpd service:

service atftpd restart

Get latest cobbler from git repository and install it:

git clone git://
cd cobbler && git checkout release24
make install

Copy web files to Apache root directory:

cp -r /srv/www/cobbler /var/www/cobbler
cp -r /srv/www/cobbler_webui_content /var/www/cobbler_webui_content

Set cobbler web password ‘cobbler:cobbler’:

htdigest /etc/cobbler/users.digest "cobbler" cobbler

Modify Cobbler modules to enable config file authentication (/etc/cobbler/modules.conf):

module = authn_configfile

Restart Apache and Cobbler and you are ready to go:

service cobblerd restart
service apache2 restart

Now you can access Cobbler from your web browser: http://ip_address/cobbler_web

Tweet about this on Twitter0Share on Facebook0Share on Google+0Share on LinkedIn0
Follow me

Alen Komljen

I'm a DevOps/Cloud engineer with experience that spans a broad portfolio of skills, including cloud computing, software deployment, process automation, shell scripting and configuration management, as well as Agile development and Scrum. This allowed me to excel in solving challenges in cloud computing, and the entire IT infrastructure along with my deep interest in OpenStack, Ceph, Docker and the open-source community.
Follow me

Latest posts by Alen Komljen (see all)

Posted in How to and tagged , , .
  • Mark Howells

    Great article. On my system I also had run enable wsgi for apache2

    # a2enmod wsgi

  • Chris Magnuson

    I had to also run

    #a2enmod version
    #apt-get install make

    to resolve the error

    Syntax error on line 17 of /etc/apache2/conf.d/cobbler_web.conf:

    Invalid command ‘<IfVersion', perhaps misspelled or defined by a module not included in the server configuration

  • Alen Komljen

    You can find more details here: