Coding Tidbits

Cube Root is an exclusive Ruby on Rails Consultancy. Find our programming ramblings here.

Creating Vagrant Box From Existing Instance

Note to self

To create a new box from existing vagrant VirtualBox machine

$ vagrant package --base <virtualmachine name> --output ~/PATH/TO/

look for <virtualmachine name> in ~/VirtualBox VMs/ or use following command

$ VBoxManage list vms

To add a box to vagrant

$ vagrant box add precise32_ruby_187 ~/PATH/TO/

To use the newly created box...

$ vagrant init precise32_ruby_187