Statistics
| Branch: | Tag: | Revision:

root / docs / installation.rst @ 83d0c566

History | View | Annotate | Download (2 kB)

1 0416bac5 Nikos Skalkotos
Installation
2 0416bac5 Nikos Skalkotos
============
3 48b98a80 Nikos Skalkotos
4 48b98a80 Nikos Skalkotos
Before installing snf-image be sure to have a working Ganeti installation in
5 48b98a80 Nikos Skalkotos
your cluster. The installation process should take place in **all** ganeti
6 48b98a80 Nikos Skalkotos
nodes. Here we will describe the installation in a single node. The process is
7 48b98a80 Nikos Skalkotos
identical for all nodes and should be repeated manually or automatically, e.g.,
8 48b98a80 Nikos Skalkotos
with puppet.
9 48b98a80 Nikos Skalkotos
10 48b98a80 Nikos Skalkotos
Installing snf-image using packages
11 48b98a80 Nikos Skalkotos
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 48b98a80 Nikos Skalkotos
13 4174629f Nikos Skalkotos
For Debian GNU/Linux and Ubuntu we provide packages in our apt repository.
14 4174629f Nikos Skalkotos
15 4174629f Nikos Skalkotos
For Debian Squeeze add the following lines to ``/etc/apt/sources.list`` file:
16 48b98a80 Nikos Skalkotos
17 48b98a80 Nikos Skalkotos
``deb http://apt.dev.grnet.gr squeeze/``
18 48b98a80 Nikos Skalkotos
19 48b98a80 Nikos Skalkotos
``deb-src http://apt.dev.grnet.gr squeeze/``
20 48b98a80 Nikos Skalkotos
21 48b98a80 Nikos Skalkotos
For Debian Wheezy add the following lines:
22 48b98a80 Nikos Skalkotos
23 10c47d13 Nikos Skalkotos
``deb http://apt.dev.grnet.gr wheezy/``
24 48b98a80 Nikos Skalkotos
25 10c47d13 Nikos Skalkotos
``deb-src http://apt.dev.grnet.gr wheezy/``
26 48b98a80 Nikos Skalkotos
27 4174629f Nikos Skalkotos
For Ubuntu 12.04 LTS add the following lines:
28 4174629f Nikos Skalkotos
29 4174629f Nikos Skalkotos
``deb http://apt.dev.grnet.gr precise/``
30 4174629f Nikos Skalkotos
31 4174629f Nikos Skalkotos
``deb-src http://apt.dev.grnet.gr precise/``
32 4174629f Nikos Skalkotos
33 ad9ea077 Nikos Skalkotos
After you update ``/etc/apt/sources.list`` import the repo's GPG key:
34 48b98a80 Nikos Skalkotos
35 48b98a80 Nikos Skalkotos
.. code-block:: console
36 48b98a80 Nikos Skalkotos
37 48b98a80 Nikos Skalkotos
  $ curl https://dev.grnet.gr/files/apt-grnetdev.pub | apt-key add -
38 48b98a80 Nikos Skalkotos
39 ad9ea077 Nikos Skalkotos
To install the package use the following commands:
40 48b98a80 Nikos Skalkotos
41 48b98a80 Nikos Skalkotos
.. code-block:: console
42 48b98a80 Nikos Skalkotos
43 48b98a80 Nikos Skalkotos
  $ apt-get update
44 48b98a80 Nikos Skalkotos
  $ apt-get install snf-image
45 48b98a80 Nikos Skalkotos
46 ad9ea077 Nikos Skalkotos
The last command will also download and install the *snf-image-helper* image in
47 ad9ea077 Nikos Skalkotos
the post install phase of the package installation.
48 48b98a80 Nikos Skalkotos
49 48b98a80 Nikos Skalkotos
Installing snf-image from source
50 48b98a80 Nikos Skalkotos
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51 48b98a80 Nikos Skalkotos
52 48b98a80 Nikos Skalkotos
To install snf-image from source, download the provided source package:
53 48b98a80 Nikos Skalkotos
54 48b98a80 Nikos Skalkotos
.. code-block:: console
55 48b98a80 Nikos Skalkotos
56 48b98a80 Nikos Skalkotos
  $ wget http://apt.dev.grnet.gr/wheezy/snf-image_<VERSION>.orig.tar.gz
57 48b98a80 Nikos Skalkotos
58 48b98a80 Nikos Skalkotos
Untar, configure and compile the source:
59 48b98a80 Nikos Skalkotos
60 48b98a80 Nikos Skalkotos
.. code-block:: console
61 48b98a80 Nikos Skalkotos
62 48b98a80 Nikos Skalkotos
  $ tar -xvf snf-image_<VERSION>.orig.tar.gz
63 48b98a80 Nikos Skalkotos
  $ cd snf-image_<VERSION>/snf-image-host
64 48b98a80 Nikos Skalkotos
  $ ./autoget.sh
65 48b98a80 Nikos Skalkotos
  $ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
66 48b98a80 Nikos Skalkotos
  $ make
67 48b98a80 Nikos Skalkotos
68 48b98a80 Nikos Skalkotos
Install snf-image:
69 48b98a80 Nikos Skalkotos
70 48b98a80 Nikos Skalkotos
.. code-block:: console
71 48b98a80 Nikos Skalkotos
72 48b98a80 Nikos Skalkotos
  $ make install
73 48b98a80 Nikos Skalkotos
  $ install -Dm600 defaults /etc/default/snf-image
74 48b98a80 Nikos Skalkotos
75 ad9ea077 Nikos Skalkotos
Finally, install the helper image by executing:
76 48b98a80 Nikos Skalkotos
77 48b98a80 Nikos Skalkotos
.. code-block:: console
78 48b98a80 Nikos Skalkotos
79 48b98a80 Nikos Skalkotos
  $ snf-image-update-helper