useful vagrant commands
This installs the plugin that automatically upgrades the virtual machine’s vbox guest additions to match the virtual box version installed on the host machine:
vagrant plugin install vagrant-vbguest
vagrant box add centos http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130731.box
After that :
cd ~/VagrantImage
(or wherever you want the project to be)
vagrant init centos (this creates the Vagrantfile in the current dir)
Note : Within the VM, /vagrant will point to the directory containing the Vagrantfile for this VM ( ~/VagrantImage in our example)
Set ssh timeouts to a very high number by logging into the VM, and:
su -
vim /etc/ssh/sshd_config
ClientAliveInterval 6000
ClientAliveCountMax 3
service sshd restart