Running multiple VMs in vagrant by Fabian Bull on September 19, 2016

This post is the first in a series where I want to setup a Hadoop cluster which can than be used for development and in testing.

So with out further ado let’s start.

Installing Vagrant and Virtualbox

The tools we are going to use are Vagrant (to manage the boxes) and Virtualbox (as a hypervisor).

If you are on a mac installing both is as easy as:

Other operating system should be comparably easy.

Setting up the boxes

I’d like to use Ubuntu 16.04 (LTS) for my boxes. Searching the vagrantcloud I found: bento/ubuntu-16.04. To use it create a file called Vagrantfile with the following content:

Spinning up the boxes

Starting both machines is as easy as:

Both servers are now up and running. You can ssh into server1 with:

To see if server2 to is also up and running, we can ping it: