The big question, which I was thinking, when I first heard of it. So today finally got a chance to do some hands on.
Basically it is a tools which gives you running VM, whenever you need it with all your environment set in place.
So what was that huh? Consider that you are creating a VM or clonning a VM and starting it up and running some script to get
the environment set in place. So why not automate this whole thing by vagrant.
Vagrant allows you to launch VMs with provisioning on top of it.
ajaiswal@c-0242:~$ vagrant up
[default] Importing base box 'precise32'...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.
Guest Additions Version: 4.2.0
VirtualBox Version: 4.1.12
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- 22=> 2222(adapter 1)[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Mounting shared folders...
[default] -- v-root: /vagrant
Then we will login into the box.
Terminal
123456
ajaiswal@c-0242:~$ vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686) * Documentation: https://help.ubuntu.com/
Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:22:31 2012 from 10.0.2.2