installation.rst 1.83 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
68
69
70
71
72
73

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:

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

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

and import the repo's GPG key:

.. code-block:: console

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

Install the package using the following commands:

.. code-block:: console

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

The last command will also download and install the fixed *snf-image-helper*
appliance in the post install phase of the package installation.

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

Install the helper image by executing:

.. code-block:: console

  $ snf-image-update-helper