I installed a VirtualBox and then installed a Ubuntu 12.10 Server Base OS in it. I have installed all kinds of php packages and other packages in it. My friends recommended me t
vagrant package --output box_name.box --base "vm machine name" --vagrantfile Vagrantfile
Make sure that port forwarding and SSH keys are setup properly.
This may be a good example: https://github.com/okfn/ckan/wiki/How-to-Create-a-CentOS-Vagrant-Base-Box