Statistics
| Branch: | Tag: | Revision:

root / INSTALL @ c27ba1cc

History | View | Annotate | Download (2.5 kB)

1 c27ba1cc Michael Hanselmann
Ganeti quick installation guide
2 c27ba1cc Michael Hanselmann
===============================
3 4096472d Iustin Pop
4 c27ba1cc Michael Hanselmann
Please note that a more detailed installation procedure is described in
5 c27ba1cc Michael Hanselmann
the :doc:`install`. A glossary of terms can be found in the
6 c27ba1cc Michael Hanselmann
:doc:`glossary`.
7 4096472d Iustin Pop
8 4096472d Iustin Pop
9 bd785ecd Michael Hanselmann
Software Requirements
10 c27ba1cc Michael Hanselmann
---------------------
11 a8083063 Iustin Pop
12 a8083063 Iustin Pop
Before installing, please verify that you have the following programs:
13 c27ba1cc Michael Hanselmann
14 c27ba1cc Michael Hanselmann
- `Xen Hypervisor <http://www.xen.org/>`_, version 3.0.x or 3.1
15 c27ba1cc Michael Hanselmann
- `DRBD <http://www.drbd.org/>`_, kernel module and userspace utils,
16 c27ba1cc Michael Hanselmann
  version 8.0.7 or above
17 c27ba1cc Michael Hanselmann
- `LVM2 <http://sourceware.org/lvm2/>`_
18 c27ba1cc Michael Hanselmann
- `OpenSSL <http://www.openssl.org/>`_
19 c27ba1cc Michael Hanselmann
- `OpenSSH <http://www.openssh.com/portable.html>`_
20 c27ba1cc Michael Hanselmann
- `bridge utilities <http://www.linuxfoundation.org/en/Net:Bridge>`_
21 c27ba1cc Michael Hanselmann
- `iproute2 <http://www.linuxfoundation.org/en/Net:Iproute2>`_
22 c27ba1cc Michael Hanselmann
- `arping <http://www.skbuff.net/iputils/>`_ (part of iputils)
23 c27ba1cc Michael Hanselmann
- `Python <http://www.python.org/>`_, version 2.4 or above, not 3.0
24 c27ba1cc Michael Hanselmann
- `Python OpenSSL bindings <http://pyopenssl.sourceforge.net/>`_
25 c27ba1cc Michael Hanselmann
- `simplejson Python module <http://code.google.com/p/simplejson/>`_
26 c27ba1cc Michael Hanselmann
- `pyparsing Python module <http://pyparsing.wikispaces.com/>`_
27 c27ba1cc Michael Hanselmann
- `pyinotify Python module <http://trac.dbzteam.org/pyinotify/>`_
28 c27ba1cc Michael Hanselmann
- `socat <http://www.dest-unreach.org/socat/>`_
29 c27ba1cc Michael Hanselmann
30 c27ba1cc Michael Hanselmann
These programs are supplied as part of most Linux distributions, so
31 c27ba1cc Michael Hanselmann
usually they can be installed via the standard package manager. Also
32 c27ba1cc Michael Hanselmann
many of them will already be installed on a standard machine. On
33 c27ba1cc Michael Hanselmann
Debian/Ubuntu, you can use this command line to install all required
34 c27ba1cc Michael Hanselmann
packages, except for DRBD and Xen::
35 c27ba1cc Michael Hanselmann
36 c27ba1cc Michael Hanselmann
  $ apt-get install lvm2 ssh bridge-utils iproute iputils-arping \
37 c27ba1cc Michael Hanselmann
                    python python-pyopenssl openssl python-pyparsing \
38 c27ba1cc Michael Hanselmann
                    python-simplejson python-pyinotify socat
39 c27ba1cc Michael Hanselmann
40 c27ba1cc Michael Hanselmann
If you want to build from source, please see doc/devnotes.rst for more
41 c27ba1cc Michael Hanselmann
dependencies.
42 5cd0d9c0 Iustin Pop
43 bd785ecd Michael Hanselmann
44 bd785ecd Michael Hanselmann
Installation of the software
45 c27ba1cc Michael Hanselmann
----------------------------
46 c27ba1cc Michael Hanselmann
47 c27ba1cc Michael Hanselmann
To install, simply run the following command::
48 a8083063 Iustin Pop
49 c27ba1cc Michael Hanselmann
  ./configure --localstatedir=/var --sysconfdir=/etc && \
50 c27ba1cc Michael Hanselmann
  make && \
51 c27ba1cc Michael Hanselmann
  make install
52 a8083063 Iustin Pop
53 c27ba1cc Michael Hanselmann
This will install the software under ``/usr/local``. You then need to
54 c27ba1cc Michael Hanselmann
copy ``doc/examples/ganeti.initd`` to ``/etc/init.d/ganeti`` and
55 c27ba1cc Michael Hanselmann
integrate it into your boot sequence (``chkconfig``, ``update-rc.d``,
56 c27ba1cc Michael Hanselmann
etc.).
57 a8083063 Iustin Pop
58 bd785ecd Michael Hanselmann
59 a8083063 Iustin Pop
Cluster initialisation
60 c27ba1cc Michael Hanselmann
----------------------
61 a8083063 Iustin Pop
62 c27ba1cc Michael Hanselmann
Before initialising the cluster, on each node you need to create the
63 c27ba1cc Michael Hanselmann
following directories:
64 a8083063 Iustin Pop
65 c27ba1cc Michael Hanselmann
- ``/etc/ganeti``
66 c27ba1cc Michael Hanselmann
- ``/var/lib/ganeti``
67 c27ba1cc Michael Hanselmann
- ``/var/log/ganeti``
68 c27ba1cc Michael Hanselmann
- ``/srv/ganeti``
69 c27ba1cc Michael Hanselmann
- ``/srv/ganeti/os``
70 c27ba1cc Michael Hanselmann
- ``/srv/ganeti/export``
71 a8083063 Iustin Pop
72 a8083063 Iustin Pop
After this, use ``gnt-cluster init``.
73 c27ba1cc Michael Hanselmann
74 c27ba1cc Michael Hanselmann
.. vim: set textwidth=72 syntax=rst :
75 c27ba1cc Michael Hanselmann
.. Local Variables:
76 c27ba1cc Michael Hanselmann
.. mode: rst
77 c27ba1cc Michael Hanselmann
.. fill-column: 72
78 c27ba1cc Michael Hanselmann
.. End: