Created
February 8, 2012 10:33
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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