Translation(s): none


Veewee is a tool for easily (and repeatedly) building custom Vagrant base boxes (VirtualBox format), KVMs, and virtual machine images.

Install VirtualBox

apt-get install virtualbox linux-headers-amd64

Install Veewee requirements

apt-get install ruby ruby-dev build-essential libxslt1-dev libxml2-dev

Install Veewee as a Ruby gem

gem install fog --version 1.8
gem install veewee

List available templates and notive how those for debian are outdated

veewee vbox templates | grep Debian

Get updated veewee definitions (ie local templates)

git clone https://github.com/russkel/puppet-vagrant-boxes
cd puppet-vagrant-boxes

Veewee chokes on downloading the guest additions, we have to do it ourselves: you'll get this error

Downloading vbox guest additions iso v  - http://download.virtualbox.org /virtualbox//VBoxGuestAdditions_.iso
Checking if isofile VBoxGuestAdditions_.iso already exists.
Full path: /root/puppet-vagrant-boxes/iso/VBoxGuestAdditions_.iso
/usr/lib/ruby/1.9.1/open-uri.rb:346:in `open_http': 404 Not found (OpenURI::HTTPError)

Download the virtualbox Guest Additions

wget http://download.virtualbox.org/virtualbox/4.1.18/VBoxGuestAdditions_4.1.18.iso -O iso/VBoxGuestAdditions_.iso

Start building the VM

veewee vbox build debian-710-x64-vbox4212
veewee vbox export debian-710-x64-vbox4212

At this point you will see the VM in VirtualBox and use it normally.

Export with to Vagrant Box format:

/usr/bin/vagrant package --base debian-710-x64-vbox4212

Looks what's inside the box

tar tf package.box 
./box-disk1.vmdk
./Vagrantfile
./box.ovf