Create a gist now

Instantly share code, notes, and snippets.

Using Veewee 0.3.0.Alpha9 for creating a vagrant basebox and using it in Vagrant
# Vagrant is installed
# VirtualBox is installed
git clone https://github.com/jedi4ever/veewee.git
cd veewee/
bundle install
git pull
bundle update
bundle exec veewee vbox templates
bundle exec veewee vbox define 'u64ruby192' 'ubuntu-11.10-server-amd64-ruby192'
bundle exec veewee vbox build 'u64ruby192'
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 7222 -l vagrant 127.0.0.1
bundle exec veewee vbox halt 'u64ruby192'
bundle exec veewee vbox up 'u64ruby192'
bundle exec veewee vbox halt 'u64ruby192'
cd ..
vagrant package --base 'u64ruby192'
mv package.box boxes/u64ruby192.box
cd machines/
mkdir test
cd test
vagrant box add ruby ../../boxes/u64ruby192.box
vagrant init ruby
vagrant up
vagrant ssh
vagrant halt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment