Difference between revisions of "Ganeti"

From ArchWiki
Jump to: navigation, search
(useless warning)
(KVM: deprecated instructions (rc.conf/netcfg))
Line 3: Line 3:
 
From [http://code.google.com/p/ganeti/ Ganeti] project page:
 
From [http://code.google.com/p/ganeti/ Ganeti] project page:
 
:''Ganeti is a cluster virtual server management software tool built on top of existing virtualization technologies such as Xen or KVM and other Open Source software.''
 
:''Ganeti is a cluster virtual server management software tool built on top of existing virtualization technologies such as Xen or KVM and other Open Source software.''
 
==KVM==
 
Lets fire up some networking.
 
 
# modprobe bridge
 
 
/etc/network/br1
 
 
DESCRIPTION='A static ethernet connection for interface eth1'
 
INTERFACE='br1'
 
CONNECTION='bridge'
 
BRIDGE_INTERFACES="eth1"
 
IP='static'
 
ADDR='192.168.0.1'
 
NETMASK='255.255.255.0'
 
BROADCAST='192.168.0.255'
 
 
/etc/rc.conf
 
 
NETWORKS=(br1 br0)
 
NETWORK_PERSIST="no"
 
 
netcfg br1
 
 
This creates a br1 interface and assigns it a static IP address. For more sophisticated setups, see the [[netcfg]] article.
 
 
Lets get some disk backing:
 
Make sure you created a ganeti_backing_store.img
 
 
# modprobe loop
 
# losetup /dev/loop0 ganeti_backing_store.img
 
# pvcreate /dev/loop0
 
 
You can ignore any 'file descriptor leak' errors here. That's a problem with bash, not you, though it should get fixed.
 
 
# vgcreate ganeti /dev/loop0
 
 
Load the necessary kernel modules, either for Intel processors
 
 
# modprobe kvm
 
# modprobe kvm-intel
 
 
or AMD processors
 
 
# modprobe kvm
 
# modprobe kvm-amd
 
 
At this point begins the period where you will attempt various incantations beginning with {{ic|gnt-cluster init}}, they will fail, and you will have to start over.
 
 
The following I found useful.
 
 
# rm -fr /var/{log,lib}/ganeti/*
 
# rm -fr /srv/ganeti
 
# pkill ganeti
 
# pkill gnt
 
# mkdir -p /srv/ganeti/{os,export}
 
 
Create your ganeti cluster:
 
 
gnt-cluster init --nic-parameters=link=br1 --master-netdev=br1 --enabled-hypervisor=kvm --vg-name ganeti mycluster
 

Revision as of 20:33, 23 May 2015

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: Described package ganetiAUR is outdated, the #Installing From Source part should be merged into the PKGBUILD. Further, rc.conf is mentioned. (Discuss in Talk:Ganeti#)

From Ganeti project page:

Ganeti is a cluster virtual server management software tool built on top of existing virtualization technologies such as Xen or KVM and other Open Source software.