installation.rst 1.87 KB
Newer Older
1
2
Installation
============
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

Before installing snf-image be sure to have a working Ganeti installation in
your cluster. The installation process should take place in **all** ganeti
nodes. Here we will describe the installation in a single node. The process is
identical for all nodes and should be repeated manually or automatically, e.g.,
with puppet.

Installing snf-image using packages
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For Debian Linux we provide packages in our apt repository. For Debian Squeeze
add the following lines to ``/etc/apt/sources.list`` file:

``deb http://apt.dev.grnet.gr squeeze/``

``deb-src http://apt.dev.grnet.gr squeeze/``

For Debian Wheezy add the following lines:

22
``deb http://apt.dev.grnet.gr wheezy/``
23

24
``deb-src http://apt.dev.grnet.gr wheezy/``
25

26
After you update ``/etc/apt/sources.list`` import the repo's GPG key:
27
28
29
30
31

.. code-block:: console

  $ curl https://dev.grnet.gr/files/apt-grnetdev.pub | apt-key add -

32
To install the package use the following commands:
33
34
35
36
37
38

.. code-block:: console

  $ apt-get update
  $ apt-get install snf-image

39
40
The last command will also download and install the *snf-image-helper* image in
the post install phase of the package installation.
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

Installing snf-image from source
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

To install snf-image from source, download the provided source package:

.. code-block:: console

  $ wget http://apt.dev.grnet.gr/wheezy/snf-image_<VERSION>.orig.tar.gz

Untar, configure and compile the source:

.. code-block:: console

  $ tar -xvf snf-image_<VERSION>.orig.tar.gz
  $ cd snf-image_<VERSION>/snf-image-host
  $ ./autoget.sh
  $ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  $ make

Install snf-image:

.. code-block:: console

  $ make install
  $ install -Dm600 defaults /etc/default/snf-image

68
Finally, install the helper image by executing:
69
70
71
72
73

.. code-block:: console

  $ snf-image-update-helper