Skip to content
Vagrant files for a Ganeti tutorial and/or Ganeti testing environment
Shell Ruby
Find file
Pull request Compare This branch is 10 commits ahead, 65 commits behind master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Vagrant files for a Ganeti tutorial and/or Ganeti testing environment.

Set of Vagrant files used for deploying a single or multi-node Ganeti cluster. The original goal of this was to provide a testing environment for the Ganeti Web Manager team at the OSUOSL. It can also be used as a Ganeti training platform using a tutorial I have written up. (TODO).

Vagrant will setup up to three Ganeti nodes with the basics to install Ganeti, Ganeti Instance Image, and Ganeti Web Manager. You can deploy any number of nodes for the uses you want. Ganeti will already be initialized on node1.

This was originally used for Hands on Virtualization with Ganeti at OSCON 2011 and has been adapted for use with Vagrant. The intention of this is for instructional and testing purposes only.


  • VirtualBox >=4.1.x
  • vagrant >=1.0.x


  1. Install VirtualBox by going to their download page.

  2. Install Vagrant

    gem install vagrant

  3. Initialize submodule(s)

    git submodule update --init

Using Vagrant

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.

Starting a single node

vagrant up node1
vagrant ssh node1

Starting node2

NOTE: Root password is 'vagrant'.

vagrant up node2
vagrant ssh node1
gnt-node add -s node2

Starting node3

NOTE: Root password is 'vagrant'.

vagrant up node3
vagrant ssh node1
gnt-node add -s node3

Accessing the nodes

Add the following to your /etc/hosts files for easier access locally.

All the nodes are using hostonly networking with the following IP's:

  • (cluster IP) =
  • =
  • =
  • =

Additionally, I have setup several VM DNS names in the /etc/hosts of each node that you can use:


RAPI Access

The RAPI user setup for use on the cluster uses the following credentials.

  • user: vagrant
  • pass: vagrant

Ganeti Version Branches

This repo has been setup to deal with a variety of Ganeti versions for testing. Currently it only supports 2.4.5 and 2.5.0. To switch between the versions do the following:

git checkout -b ganeti-2.5 origin/ganeti-2.5
git submodule update --init

This should switch the module to using the new branch.


This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.

vi: set tw=80 ft=markdown :

Something went wrong with that request. Please try again.