Vagrant provides easy to configure, reproducible, and portable work environments. Its main objective is to make the “works on my machine” excuse a relic of the past ;-) vagrant

Setup

You should first Download Vagrant and any supported provider, for example docker or virtualBox.

Then verify your installation:

$ vagrant -v

Up and Running

$ vagrant init hashicorp/precise64
$ vagrant up

After running the above two commands, you will have a fully running virtual machine in VirtualBox running Ubuntu 12.04 LTS 64-bit. You can SSH into this machine with vagrant ssh, and when you are done playing around, you can terminate the virtual machine with vagrant destroy.

List downloaded boxes.

$ vagrant box list

Control virtual machine state

Status

$ vagrant status

Start

$ vagrant up

Stop

$ vagrant halt

Restart

$ vagrant reload

Teardown

With Vagrant, you suspend, halt, or destroy the guest machine. Each of these options have pros and cons. Choose the method that works best for you.

For more details see on official doc Getting started / teardown

Furthermore


Victor Dias

Sharing mobile Experiences

Follow me