Vagrant – What is it?
What is Vagrant?
Vagrant is a Ruby App to help with Virtual Machines (VMs). With it, you can share pre-configured VMs among users, allowing for a unified development environment to be used between them.
Why is this important?
This avoids that each developer installs extra software, library, extensions on their local machines, since the VM has all the software and extras that the project will need. This way we can avoid conflicts with different versions, software, etc.
So Vagrant is a Virtual Machine?
Vagrant is not a Virtual Machine solution, e.g., Virtualbox, VMware. It is a “helper”, a automated solution to interact easily with VirtualBox from Oracle.
Vagrant will setup a new VM based on the pre-configured Box that is specified on the Vagrantfile. The user does not need to open VirtualBox and configure the system, vagrant will deal with it.
Installing Vagrant
To use Vagrant, you need Ruby and Virtualbox.
1 – Install Ruby. (If you on Mac OS X, there should be no problem);
2 – Get VirtualBox and the VirtualBox Extension Pack from virtualbox.org;
3 – Get the latest vagrant installation package from vagrantup.com;
Your First Box
Following the example from Vagrant:
$ vagrant box add base http://files.vagrantup.com/lucid32.box
$ vagrant init
$ vagrant up
And there you have it, a Ubuntu Lucid 32 Bits VirtualMachine ready to go.
User & password = “vagrant” .
Now you can SSH to it or open Virtualbox and you will see it there.
For more community created boxes ready to use, check out vagrantbox.es
More tips on using vagrant will follow…
