Ganeti needs to be installed prior to installing ganeti-instance-image.

Installing from source

In order to install this package from source, you need to determine what options ganeti itself has been configured with. If ganeti was built directly from source, then the only place it looks for OS definitions is /srv/ganeti/os,
and you need to install the OS under it.

./configure --prefix=/usr --localstatedir=/var \
  --sysconfdir=/etc \
make && make install

If ganeti was installed from a package, its default OS path should already include /usr/share/ganeti/os, so you can just run:

./configure -prefix=/usr --localstatedir=/var \
make && make install

Note that you need to repeat this procedure on all nodes of the cluster.

The actual path that ganeti has been installed with can be determined by looking for a file named under a ganeti directory in the python modules tree (e.g. /usr/lib/python2.6/site-packages/ganeti/ In this file, a variable named OS_SEARCH_PATH will list all the directories in which ganeti will look for OS definitions.

Installing via package managers


Its included in Portage.

# Install ganeti-instance-image
emerge ganeti-instance-image

Debian / Ubuntu

Download the deb file from the Downloads page.

dpkg -i ganeti-instance-image_0.5-1_all.deb

OR use the ganeti-instance-image apt repository:

# for squeeze
deb  squeeze main contrib non-free
# for maverick
deb  maverick main contrib non-free

CentOS / RedHat / Fedora

Download the rpm file from the Downloads page.

yum localinstall ganeti-instance-image-0.5-1.el5.noarch.rpm

OR use the ganeti-instance-image yum repository located at:

name=Ganeti Instance Image