A primer to Vagrant
Today I used vagrant for the very first time and I must say, I was impressed by the simplicity and power of vagrant.
So what is vagrant? Yes, Yet Another Wrapper!! According to wikipedia, Vagrant is free and open-source software for creating and configuring virtual development environments.It can be considered a wrapper around virtualization software such as VirtualBox and configuration management software such as Chef, Salt and Puppet.
Keeping it simple, you can run headless VM inside virtualbox using this vagrant wrapper without even the need for running virtualbox GUI. so, simply just download the wrapper, put some configuration and fire your own cloud like environment to create disposable VM’s.
Up and Running
$ vagrant init hashicorp/precise32 $ vagrant up
You can also check and alter the configuration file by just vim Vagrantfile.
By default, the very first instance is named default.
SSH into the vm : vagrant ssh
Destroy the vm: vagrant destroy
Halt the vm: vagrant halt