Statistics
| Branch: | Tag: | Revision:

root / INSTALL @ e90739d6

History | View | Annotate | Download (4.4 kB)

1
Ganeti quick installation guide
2
===============================
3

    
4
Please note that a more detailed installation procedure is described in
5
the :doc:`install`. A glossary of terms can be found in the
6
:doc:`glossary`.
7

    
8

    
9
Software Requirements
10
---------------------
11

    
12
Before installing, please verify that you have the following programs:
13

    
14
- `Xen Hypervisor <http://www.xen.org/>`_, version 3.0 or above, if
15
  running on Xen
16
- `KVM Hypervisor <http://www.linux-kvm.org>`_, version 72 or above, if
17
  running on KVM. In order to use advanced features, such as live
18
  migration, virtio, etc, an even newer version is recommended (qemu-kvm
19
  versions 0.11.X or above have shown good behavior).
20
- `DRBD <http://www.drbd.org/>`_, kernel module and userspace utils,
21
  version 8.0.7 or above
22
- `LVM2 <http://sourceware.org/lvm2/>`_
23
- `OpenSSH <http://www.openssh.com/portable.html>`_
24
- `bridge utilities <http://www.linuxfoundation.org/en/Net:Bridge>`_
25
- `iproute2 <http://www.linuxfoundation.org/en/Net:Iproute2>`_
26
- `arping <http://www.skbuff.net/iputils/>`_ (part of iputils)
27
- `ndisc6 <http://www.remlab.net/ndisc6/>`_ (if using IPv6)
28
- `Python <http://www.python.org/>`_, version 2.4 or above, not 3.0
29
- `Python OpenSSL bindings <http://pyopenssl.sourceforge.net/>`_
30
- `simplejson Python module <http://code.google.com/p/simplejson/>`_
31
- `pyparsing Python module <http://pyparsing.wikispaces.com/>`_
32
- `pyinotify Python module <http://trac.dbzteam.org/pyinotify/>`_
33
- `PycURL Python module <http://pycurl.sourceforge.net/>`_
34
- `ctypes Python module
35
  <http://starship.python.net/crew/theller/ctypes/>`_, if running on
36
  python 2.4 (optional, used for node daemon memory locking)
37
- `socat <http://www.dest-unreach.org/socat/>`_, see :ref:`note
38
  <socat-note>` below
39
- `Paramiko <http://www.lag.net/paramiko/>`_, if you want automated SSH
40
  setup; optional otherwise but manual setup of the nodes required
41

    
42
These programs are supplied as part of most Linux distributions, so
43
usually they can be installed via the standard package manager. Also
44
many of them will already be installed on a standard machine. On
45
Debian/Ubuntu, you can use this command line to install all required
46
packages, except for DRBD and Xen::
47

    
48
  $ apt-get install lvm2 ssh bridge-utils iproute iputils-arping \
49
                    ndisc6 python python-pyopenssl openssl \
50
                    python-pyparsing python-simplejson \
51
                    python-pyinotify python-pycurl socat
52

    
53
If you want to build from source, please see doc/devnotes.rst for more
54
dependencies.
55

    
56
.. _socat-note:
57
.. note::
58
  Ganeti's import/export functionality uses ``socat`` with OpenSSL for
59
  transferring data between nodes. By default, OpenSSL 0.9.8 and above
60
  employ transparent compression of all data using zlib if supported by
61
  both sides of a connection. In cases where a lot of data is
62
  transferred, this can lead to an increased CPU usage. Additionally,
63
  Ganeti already compresses all data using ``gzip`` where it makes sense
64
  (for inter-cluster instance moves).
65

    
66
  To remedey this situation, patches implementing a new ``socat`` option
67
  for disabling OpenSSL compression have been contributed and will
68
  likely be included in the next feature release. Until then, users or
69
  distributions need to apply the patches on their own.
70

    
71
  Ganeti will use the option if it's detected by the ``configure``
72
  script; auto-detection can be disabled by explicitely passing
73
  ``--enable-socat-compress`` (use the option to disable compression) or
74
  ``--disable-socat-compress`` (don't use the option).
75

    
76
  The patches and more information can be found on
77
  http://www.dest-unreach.org/socat/contrib/socat-opensslcompress.html.
78

    
79

    
80
Installation of the software
81
----------------------------
82

    
83
To install, simply run the following command::
84

    
85
  ./configure --localstatedir=/var --sysconfdir=/etc && \
86
  make && \
87
  make install
88

    
89
This will install the software under ``/usr/local``. You then need to
90
copy ``doc/examples/ganeti.initd`` to ``/etc/init.d/ganeti`` and
91
integrate it into your boot sequence (``chkconfig``, ``update-rc.d``,
92
etc.).
93

    
94

    
95
Cluster initialisation
96
----------------------
97

    
98
Before initialising the cluster, on each node you need to create the
99
following directories:
100

    
101
- ``/etc/ganeti``
102
- ``/var/lib/ganeti``
103
- ``/var/log/ganeti``
104
- ``/srv/ganeti``
105
- ``/srv/ganeti/os``
106
- ``/srv/ganeti/export``
107

    
108
After this, use ``gnt-cluster init``.
109

    
110
.. vim: set textwidth=72 syntax=rst :
111
.. Local Variables:
112
.. mode: rst
113
.. fill-column: 72
114
.. End: