4 Before installing snf-image be sure to have a working Ganeti installation in
5 your cluster. The installation process should take place in **all** ganeti
6 nodes. Here we will describe the installation in a single node. The process is
7 identical for all nodes and should be repeated manually or automatically, e.g.,
10 Installing snf-image using packages
11 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 For Debian GNU/Linux and Ubuntu we provide packages in our apt repository.
15 For Debian Squeeze add the following lines to ``/etc/apt/sources.list`` file:
17 ``deb http://apt.dev.grnet.gr squeeze/``
19 ``deb-src http://apt.dev.grnet.gr squeeze/``
21 For Debian Wheezy add the following lines:
23 ``deb http://apt.dev.grnet.gr wheezy/``
25 ``deb-src http://apt.dev.grnet.gr wheezy/``
27 For Ubuntu 12.04 LTS add the following lines:
29 ``deb http://apt.dev.grnet.gr precise/``
31 ``deb-src http://apt.dev.grnet.gr precise/``
33 After you update ``/etc/apt/sources.list`` import the repo's GPG key:
35 .. code-block:: console
37 $ curl https://dev.grnet.gr/files/apt-grnetdev.pub | apt-key add -
39 To install the package use the following commands:
41 .. code-block:: console
44 $ apt-get install snf-image
46 The last command will also download and install the *snf-image-helper* image in
47 the post install phase of the package installation.
49 Installing snf-image from source
50 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52 To install snf-image from source, download the provided source package:
54 .. code-block:: console
56 $ wget http://apt.dev.grnet.gr/wheezy/snf-image_<VERSION>.orig.tar.gz
58 Untar, configure and compile the source:
60 .. code-block:: console
62 $ tar -xvf snf-image_<VERSION>.orig.tar.gz
63 $ cd snf-image_<VERSION>/snf-image-host
65 $ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
70 .. code-block:: console
73 $ install -Dm600 defaults /etc/default/snf-image
75 Finally, install the helper image by executing:
77 .. code-block:: console
79 $ snf-image-update-helper