Blog tvlooy

Build a Debian 8.1 Vagrant box

vagrant, veewee, debian | July 11, 2015

Veewee is a tool for easily building custom Vagrant base boxes. This post explains how to build a Debian 8.1 image.

I'm using Ubuntu 14.04 (LTS) with VirtualBox 4.3.26 and Vagrant 1.6.5. If you have those, install Veewee and it's dependencies (as root):

apt-get install ruby ruby1.9.1-dev ri apt-get install libxslt1-dev libxml2-dev zlib1g-dev build-essential gem install veewee gem install veewee-templates-updater veewee-templates-update

Veewee templates will reside in /var/lib/gems/1.9.1/gems/veewee-0.4.5.1/, so you can easily copy one and edit it for your needs. List existing templates with veewee vbox templates. If you want to build a Vagrant box from one of these templates (eg: Debian-8.1.0) do the following:

veewee vbox define Debian81 Debian-8.1.0 veewee vbox build Debian81 veewee vbox export Debian81

You will now have a Debian81.box file in the current directory. You can undefine a template with veewee vbox undefine Debian81. To use this box in Vagrant first import it with vagrant box add Debian81 Debian81.box.