Vagrant is open-source software for creating and configuring virtual development environments. It can be considered a wrapper around VirtualBox and configuration management software such as Chef, Salt and Puppet. Although written in Ruby, it is usable in other programming projects such as PHP, Python, Java, and C#.
Quick workflow is such:
poldek -u vagrant
vagrant box add
vagrant init BASEBOXNAME
The commands are run in dir where is
Base box you need to import only once, you can make new VM's without need to import base box again.
box addcommand is needed only once or if you want to refresh your base box.
With Vagrant 1.5+ you can also use vagrant cloud urls:
After box is up, you probably want to provision it or install packages with
Also quite common is to grow a disk
poldek -u chef, if you want to run chef server inside that box, have look at chef-server.
If you are using
chef-client, it's recommended to install vagrant-butcher plugin to automatically delete node when destroying VM:
$ vagrant plugin install vagrant-butcher
If using older Vagrant (< 1.5), you need older butcher plugin:
$ vagrant plugin install vagrant-butcher --plugin-version=2.0.0