install virtualbox and vagrant first, then create a working directory
# mkdir /opt/vagrant # cd /opt/vagrant/
Initialize the environment in the directory, in this case we’ll download a ubuntu precise vm
# vagrant box add precise32 http://files.vagrantup.com/precise32.box # vagrant box list
Edit Vagrantfile and make sure the vm points to “precise32” instead of “base”:
config.vm.box = "precise32"
Start the vm
# vagrant init # vagrant up
Connect to the vm
# vagrant ssh
Additional…
for a centos6.5 you can find a vm here:
# vagrant box add centos65 http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.5-i386_chef-provisionerless.box