Differences between revisions 1 and 37 (spanning 36 versions)
Revision 1 as of 2013-07-04 10:04:15
Size: 1361
Comment:
Revision 37 as of 2014-08-07 17:18:43
Size: 1959
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#language en
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: none-~
----
[[https://github.com/jedi4ever/veewee|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 box =

{{{#!wiki caution
'''Historical (but working...)'''

Work to create Vanilla boxes has moved to http://www.subsole.org/vanilladebianbox

See http://lists.alioth.debian.org/pipermail/neurodebian-devel/2013-August/000380.html

}}}

Install VirtualBox
Line 2: Line 19:

#debian
apt-get install ruby ruby-dev build-essential

apt-get install ruby ruby-dev build-essential libxslt1-dev libxml2-dev
apt-get install virtualbox linux-headers-amd64
}}}
Install Veewee requirements
{{{
apt-get install ruby ruby-dev build-essential libxslt1-dev libxml2-dev zlib1g-dev
}}}
Install Veewee as a Ruby gem
{{{
Line 9: Line 29:
}}}
Line 10: Line 31:
# install virtualbox
apt-get install virtualbox linux-headers-amd64
Line 13: Line 32:
# list available templates and notive how those for debian are outdated Get newer veewee templates for Debian
{{{
git clone https://github.com/jedi4ever/veewee
}}}

{{{
cd veewee
Line 15: Line 40:
}}}
Line 16: Line 42:
# get updated veewee definitions ( ie local templates)
git clone https://github.com/russkel/puppet-vagrant-boxes
cd puppet-vagrant-boxes
Create you own VM definition based on a veewee template
{{{
veewee vbox define my-own-box 'Debian-7.1.0-amd64-netboot'
}}}
Line 20: Line 47:
# 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)
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
}}}
Line 27: Line 54:
# Download the virtualbox Guest Additions
wget http://download.virtualbox.org/virtualbox/4.1.18/VBoxGuestAdditions_4.1.18.iso -O iso/VBoxGuestAdditions_.iso
At this point you will see the VM in VirtualBox and you can use it normally.
Line 30: Line 56:
veewee vbox build debian-710-x64-vbox4212
veewee vbox export debian-710-x64-vbox4212
Export from VirtualBox to [[http://docs.vagrantup.com/v2/boxes/format.html|Vagrant Box]] format:
{{{
vagrant package --base my-own-box --output my-own-box.box
}}}
Line 33: Line 61:
/usr/bin/vagrant package --base debian-710-x64-vbox4212 = 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)
Line 35: Line 64:
tar tf package.box Add your new Vagrant Base box to your base box list
{{{
vagrant box add my-own-box my-own-box.box
}}}
Line 37: Line 69:
tar tf package.box
./box-disk1.vmdk
./Vagrantfile
./box.ovf
Start a new Vagrant env using it:
{{{
cd /tmp
vagrant init my-own-box
vagrant up

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 box

Install VirtualBox

apt-get install virtualbox linux-headers-amd64

Install Veewee requirements

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

Install Veewee as a Ruby gem

gem install fog --version 1.8
gem install veewee

Get newer veewee templates for Debian

git clone https://github.com/jedi4ever/veewee

cd veewee
veewee vbox templates | grep Debian

Create you own VM definition based on a veewee 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:

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

vagrant box add my-own-box my-own-box.box

Start a new Vagrant env using it:

cd /tmp
vagrant init my-own-box
vagrant up