Skip to content

Instantly share code, notes, and snippets.

@edwardsmit
Created February 8, 2012 10:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardsmit/1768015 to your computer and use it in GitHub Desktop.
Save edwardsmit/1768015 to your computer and use it in GitHub Desktop.
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