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 Linux we provide packages in our apt repository. For Debian Squeeze
14 add the following lines to ``/etc/apt/sources.list`` file:
16 ``deb http://apt.dev.grnet.gr squeeze/``
18 ``deb-src http://apt.dev.grnet.gr squeeze/``
20 For Debian Wheezy add the following lines:
22 ``deb http://apt.dev.grnet.gr wheezy/``
24 ``deb-src http://apt.dev.grnet.gr wheezy/``
26 After you update ``/etc/apt/sources.list`` import the repo's GPG key:
28 .. code-block:: console
30 $ curl https://dev.grnet.gr/files/apt-grnetdev.pub | apt-key add -
32 To install the package use the following commands:
34 .. code-block:: console
37 $ apt-get install snf-image
39 The last command will also download and install the *snf-image-helper* image in
40 the post install phase of the package installation.
42 Installing snf-image from source
43 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45 To install snf-image from source, download the provided source package:
47 .. code-block:: console
49 $ wget http://apt.dev.grnet.gr/wheezy/snf-image_<VERSION>.orig.tar.gz
51 Untar, configure and compile the source:
53 .. code-block:: console
55 $ tar -xvf snf-image_<VERSION>.orig.tar.gz
56 $ cd snf-image_<VERSION>/snf-image-host
58 $ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
63 .. code-block:: console
66 $ install -Dm600 defaults /etc/default/snf-image
68 Finally, install the helper image by executing:
70 .. code-block:: console
72 $ snf-image-update-helper