public
Last active

Using Veewee 0.3.0.Alpha9 for creating a vagrant basebox and using it in Vagrant

  • Download Gist
gistfile1.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
# 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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.