installation.rst 1.92 KB
Newer Older
1
2
Installation
============
3
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
7
8
9
10
11
12
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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

13
For Debian GNU/Linux and Ubuntu we provide packages in our APT repository.
14

15
For Debian Wheezy add the following lines to ``/etc/apt/sources.list`` file:
16

17
``deb http://apt.dev.grnet.gr wheezy/``
18

19
``deb-src http://apt.dev.grnet.gr wheezy/``
20

21
22
23
24
25
26
For Ubuntu 12.04 LTS add the following lines:

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

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

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

.. code-block:: console

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

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

.. code-block:: console

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

40
41
The last command will also download and install the *snf-image-helper* image in
the post install phase of the package installation.
42
43
44
45
46
47
48
49
50
51

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

52
Untar, configure and build the source:
53
54
55
56
57

.. code-block:: console

  $ tar -xvf snf-image_<VERSION>.orig.tar.gz
  $ cd snf-image_<VERSION>/snf-image-host
58
  $ ./autogen.sh
59
60
61
62
63
64
65
66
67
  $ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  $ make

Install snf-image:

.. code-block:: console

  $ make install
  $ install -Dm600 defaults /etc/default/snf-image
68
  $ mkdir -p /var/lib/snf-image/helper
69

70
Finally, install the helper image by executing:
71
72
73
74
75

.. code-block:: console

  $ snf-image-update-helper