2081
Comment: Underscore are deadly for hostnames
|
2161
|
Deletions are marked like this. | Additions are marked like this. |
Line 42: | Line 42: |
Create you own VM definition based on the veewee provided template {{{ veewee vbox define my-own-box 'Debian-7.1.0-amd64-netboot' }}} |
|
Line 44: | Line 49: |
veewee vbox define my-own-box 'Debian-7.1.0-amd64-netboot' |
Translation(s): none
Veewee is a tool for easily (and repeatedly) building custom Vagrant base boxes (VirtualBox format), KVMs, and virtual machine images.
Creating a Vanilla Debian7 Vagrant base box
This will not create an Official Debian Image
The box created here miss the following steps to be called Official Debian Image:
- puppet and chef are installed via ruby gems, not using debian packages
- The Veewee template is not maintained inside the Debian Infrastructure
- Ideally Veewee should be available as a Debian Package
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
Get newer virtualbox definitions for Debian
git clone https://github.com/jedi4ever/veewee
cd veewee veewee vbox templates | grep Debian
Create you own VM definition based on the veewee provided template
veewee vbox define my-own-box 'Debian-7.1.0-amd64-netboot'
Start building the VM
veewee vbox build 'my-own-box' # this command is from the offical veewee doku but not yet released # veewee vbox export debian-710-x64-vbox4118
At this point you will see the VM in VirtualBox and you can use it normally.
Export from VirtualBox to Vagrant Box format:
/usr/bin/vagrant package --base my-own-box --output my-own-box.box
Using the freshly created box in Vagrant
A gpg signed basebox created with the method documented above is available at http://basebox.libera.cc/ (Signed with a debian maintainer keyring)
Add your new Vagrant Base box to your base box list
/usr/bin/vagrant box add my_debian7 debian-710-x64-vbox4118.box
Start a new Vagrant env using it:
cd /tmp /usr/bin/vagrant init my_debian7