Hi @Ghanshyam Dobariya,
Following steps worked for me
Step 1 Add following virtualbox apt to /etc/apt/sources.list
deb http://download.virtualbox.org/virtualbox/debian precise contrib
Step 2 Download and register the key
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
Step 3 Download appropriate VirtualBox setup from https://www.virtualbox.org/wiki/Linux_Downloads (I did for Debian 7 wheezy x64) and install using following command.
dpkg -i virtualbox-4.3_4.3.10-93012~Debian~wheezy_amd64.deb
#Fix dependence issues (if exists)
apt-get -f install
Step 4 Install required packages
sudo apt-get install dkms
sudo apt-get install dpkg-dev virtualbox-dkms
#install linux headers for your distro
sudo apt-get install linux-headers-$(uname -r)
#reconfigure virtualbox-dkms
sudo dpkg-reconfigure virtualbox-dkms
Step 5 download precise32.box image from following url
http://hashicorp-files.vagrantup.com/precise32.box
Step 6 add vagrant box
$vagrant box add precise32 ~/Downloads/precise32.box
ON success you should get similar output as below
==> box: Adding box 'precise32' (v0) for provider:
box: Downloading: file:///home/ravi/Downloads/precise32.box
==> box: Successfully added box 'precise32' (v0) for 'virtualbox'!
Step 7 Create root directory for your project and navigate to it
mkdir test_project
cd test_project
Next, run the initialization command:
vagrant init
This will create a Vagrantfile in this folder which will be the central file for your project configuration. But before we can deploy the guest machine using the box we just added, edit the Vagrantfile:
Find the following line:
config.vm.box = "base"
And replace it with:
config.vm.box = "precise32"
This will tell it to use this new box. Save the file and exit. Now you can deploy the guest machine with the following command:
vagrant up
This will bring up a VPS running Ubuntu 12.04 LTS. To make use of it, you can easily SSH into it:
$vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)
* Documentation: https://help.ubuntu.com/
Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:22:31 2012 from 10.0.2.2
vagrant@precise32:~$ _
for more info, read