Installing vagrant itself can be a bit of a pain as it is a Ruby package and has most of the usual versioning problems therein. I recommend setting up your environment with the 'rbenv' package and then creating an rbenv environment with the latest vagrant. You probably want to run Vagrant with VirtualBox. At least for Ubuntu, I've had an easy enough time with Virtualbox from the Ubuntu repos.
https://github.com/sstephenson/rbenv/
$ sudo apt-get install virtualbox
(assuming rbenv is already setup)
$ gem install vagrant
Boxes are just OS images that are pre-built and can be imported into vagrant via the command line. The most popular site for pre-built boxes is:
$ vagrant box install <your label> <URL to box>
$ vagrant box list
$ mkdir -p ~/workspace/vm && cd ~/workspace/vm && vagrant init
$ vi Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "ubuntu-12.04-amd64-server"
config.vm.host_name = "myvm.example.org"
config.vm.provision :puppet_server do |puppet|
puppet.puppet_server = "puppet.example.org"
end
end
$ vagrant up && vagrant ssh