installation.rst 3.02 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
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
11
-----------------------------------
12

13
14
Debian GNU/Linux
^^^^^^^^^^^^^^^^
15

16
17
For Debian 7.x (Wheezy) we provide packages in our APT repository. To use
our repository add the following lines to file ``/etc/apt/sources.list``:
18

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

21
``deb-src http://apt.dev.grnet.gr wheezy/``
22

23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
After you update ``/etc/apt/sources.list`` import the repo's GPG key:

.. code-block:: console

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

To install the package use the following commands:

.. code-block:: console

  # apt-get update
  # apt-get install snf-image

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

Ubuntu
^^^^^^

For Ubuntu 12.04 LTS we provide packages in our APT repository. To use our
repository add the following lines to file ``/etc/apt/sources.list``:
44
45
46
47
48

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

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

49
After you update ``/etc/apt/sources.list`` import the repo's GPG key:
50
51
52
53
54

.. code-block:: console

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

55
To install the package use the following commands:
56
57
58
59
60
61

.. code-block:: console

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

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

65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
CentOS
^^^^^^

For CentOS 6.5 we provide packages in our Yum repository.

To add the GRNET repository in your system, run:

.. code-block:: console

  # yum localinstall https://dev.grnet.gr/files/grnet-repo.rpm

You can verify the authenticity of the package using our public key found
`here <https://dev.grnet.gr/files/apt-grnetdev.pub>`_.

To install snf-image run:

.. code-block:: console

  # yum install snf-image

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

88
Installing snf-image from source
89
--------------------------------
90
91
92
93
94
95
96

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

97
Untar, configure and build the source:
98
99
100
101
102

.. code-block:: console

  $ tar -xvf snf-image_<VERSION>.orig.tar.gz
  $ cd snf-image_<VERSION>/snf-image-host
103
  $ ./autogen.sh
104
105
106
107
108
109
110
111
112
  $ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
  $ make

Install snf-image:

.. code-block:: console

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

115
Finally, install the helper image by executing:
116
117
118
119
120

.. code-block:: console

  $ snf-image-update-helper