This document explains how you can easily test and try out Ganeti without needing a lot of extra hardware. This also provides a way for you to try out Ganeti on various platforms more easily.
See GitHub for the most up to date documentation.
Install VirtualBox by going to their download page.
Install Vagrant
gem install vagrant
Clone repository
git clone git://github.com/ramereth/vagrant-ganeti.git
Initialize submodule(s)
git submodule update --init
The Vagrantfile is setup to where you can deploy one, two, or three nodes depending on your use case. Node1
will have Ganeti already initialized while the other two will only have Ganeti installed and primed.
For more information on how to use Vagrant, please check out their site.
vagrant up node1 vagrant ssh node1
NOTE: Root password is ‘vagrant’.
vagrant up node2 vagrant ssh node1 gnt-node add -s 33.33.34.12 node2
NOTE: Root password is ‘vagrant’.
vagrant up node3 vagrant ssh node1 gnt-node add -s 33.33.34.13 node3
Add the following to your /etc/hosts
files for easier access locally.
33.33.33.10 ganeti.example.org 33.33.33.11 node1.example.org 33.33.33.12 node2.example.org 33.33.33.13 node3.example.org
All the nodes are using hostonly
networking with the following IP addresses:
Additionally, I have setup several VM DNS names in the /etc/hosts
of each node that you can use:
The RAPI user setup for use on the cluster uses the following credentials.
This repo has been setup to deal with a variety of Ganeti versions for testing. Currently it only supports 2.4.X, 2.5.X, 2.6.x and any git tagged releases. To switch between the versions do the following:
modules/ganeti_tutorial/node{1-3}.pp
git
to true
ganeti_version
to desired versionBy default we use Ubuntu 11.10 for our node OS but we do have support for the following operating systems. Just run the vagrant commands from inside the appropriate folder.