This repository provides a template Vagrantfile to create a Ubuntu 14.04 cluster using the VirtualBox software hypervisor. After setup is complete you will have three Ubuntu virtual machines running on your local machine.
Please be aware that the standard memory per instance is set to 3072 MB, and the number of cpus to 2. That means by default you'll need a machine capable to free up to 6 cpu cores and 9216 MB memory.
- VirtualBox 4.3.10 or greater.
- Vagrant 1.6 or greater.
git clone https://github.com/mesoshq/vagrant-cluster-ubuntu-xenial/
cd vagrant-cluster-ubuntu-xenial
The VirtualBox provider is the default Vagrant provider. Use this if you are unsure.
vagrant up
vagrant ssh ubuntu-01
vagrant up
triggers Vagrant to download the ubuntu/trusty64
box (if necessary) and (re)launch the instances
vagrant ssh <hostname>
connects you to the virtual machine. The hostnames are ubuntu-01 to ubuntu-03, the IPs are from 172.17.17.101 to 172.17.17.103.
Configuration is stored in the directory so you can always return to this machine by executing vagrant ssh from the directory where the Vagrantfile was located.
You can use the provided mesosctl.yml
file to load the cluster configuration like this:
mesosctl $ config load /path/to/mesosctl.yml