$ apt-get install drbd8-source drbd8-utils
$ m-a update
$ m-a a-i drbd8
+
+ Or on newer versions, if the kernel already has modules:
+
+ $ apt-get install drbd8-utils
+
+ Then to configure it for Ganeti::
+
$ echo drbd minor_count=128 usermode_helper=/bin/true >> /etc/modules
$ depmod -a
$ modprobe drbd minor_count=128 usermode_helper=/bin/true
**Mandatory** on all nodes.
-You can run Ganeti either in "bridged mode" or in "routed mode". In
-bridged mode, the default, the instances network interfaces will be
-attached to a software bridge running in dom0. Xen by default creates
-such a bridge at startup, but your distribution might have a different
-way to do things, and you'll definitely need to manually set it up under
-KVM.
+You can run Ganeti either in "bridged mode", "routed mode" or
+"openvswitch mode". In bridged mode, the default, the instances network
+interfaces will be attached to a software bridge running in dom0. Xen by
+default creates such a bridge at startup, but your distribution might
+have a different way to do things, and you'll definitely need to
+manually set it up under KVM.
Beware that the default name Ganeti uses is ``xen-br0`` (which was used
in Xen 2.0) while Xen 3.0 uses ``xenbr0`` by default. See the
instances, through their interface, in the table you specified (under
KVM, and in the main table under Xen).
+Also for "openvswitch mode" under Xen a custom network script is needed.
+Under KVM everything should work, but you'll need to configure your
+switches outside of Ganeti (as for bridges).
+
.. admonition:: Bridging issues with certain kernels
Some kernel versions (e.g. 2.6.32) have an issue where the bridge
can be added, of course, if needed.
Alternatively, you can create your own OS definitions. See the manpage
-:manpage:`ganeti-os-interface`.
+:manpage:`ganeti-os-interface(7)`.
Initializing the cluster
++++++++++++++++++++++++
Your instance types, networking environment, hypervisor type and version
may all affect what kind of parameters should be used on your cluster.
-For example kvm instances are by default configured to use a host
-kernel, and to be reached via serial console, which works nice for Linux
-paravirtualized instances. If you want fully virtualized instances you
-may want to handle their kernel inside the instance, and to use VNC.
+.. admonition:: KVM
+
+ Instances are by default configured to use a host kernel, and to be
+ reached via serial console, which works nice for Linux paravirtualized
+ instances. If you want fully virtualized instances you may want to
+ handle their kernel inside the instance, and to use VNC.
+
+ Some versions of KVM have a bug that will make an instance hang when
+ configured to use the serial console (which is the default) unless a
+ connection is made to it within about 2 seconds of the instance's
+ startup. For such case it's recommended to disable the
+ ``serial_console`` option.
+
Joining the nodes to the cluster
++++++++++++++++++++++++++++++++