root / INSTALL @ c4b2b2e2
History | View | Annotate | Download (2.8 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 |
- `OpenSSL <http://www.openssl.org/>`_ |
24 |
- `OpenSSH <http://www.openssh.com/portable.html>`_ |
25 |
- `bridge utilities <http://www.linuxfoundation.org/en/Net:Bridge>`_ |
26 |
- `iproute2 <http://www.linuxfoundation.org/en/Net:Iproute2>`_ |
27 |
- `arping <http://www.skbuff.net/iputils/>`_ (part of iputils) |
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 |
- `socat <http://www.dest-unreach.org/socat/>`_ |
34 |
|
35 |
These programs are supplied as part of most Linux distributions, so |
36 |
usually they can be installed via the standard package manager. Also |
37 |
many of them will already be installed on a standard machine. On |
38 |
Debian/Ubuntu, you can use this command line to install all required |
39 |
packages, except for DRBD and Xen:: |
40 |
|
41 |
$ apt-get install lvm2 ssh bridge-utils iproute iputils-arping \ |
42 |
python python-pyopenssl openssl python-pyparsing \ |
43 |
python-simplejson python-pyinotify socat |
44 |
|
45 |
If you want to build from source, please see doc/devnotes.rst for more |
46 |
dependencies. |
47 |
|
48 |
|
49 |
Installation of the software |
50 |
---------------------------- |
51 |
|
52 |
To install, simply run the following command:: |
53 |
|
54 |
./configure --localstatedir=/var --sysconfdir=/etc && \ |
55 |
make && \ |
56 |
make install |
57 |
|
58 |
This will install the software under ``/usr/local``. You then need to |
59 |
copy ``doc/examples/ganeti.initd`` to ``/etc/init.d/ganeti`` and |
60 |
integrate it into your boot sequence (``chkconfig``, ``update-rc.d``, |
61 |
etc.). |
62 |
|
63 |
|
64 |
Cluster initialisation |
65 |
---------------------- |
66 |
|
67 |
Before initialising the cluster, on each node you need to create the |
68 |
following directories: |
69 |
|
70 |
- ``/etc/ganeti`` |
71 |
- ``/var/lib/ganeti`` |
72 |
- ``/var/log/ganeti`` |
73 |
- ``/srv/ganeti`` |
74 |
- ``/srv/ganeti/os`` |
75 |
- ``/srv/ganeti/export`` |
76 |
|
77 |
After this, use ``gnt-cluster init``. |
78 |
|
79 |
.. vim: set textwidth=72 syntax=rst : |
80 |
.. Local Variables: |
81 |
.. mode: rst |
82 |
.. fill-column: 72 |
83 |
.. End: |