Install VirtualBox:
Debian-based Linux distributions:
Add the following line to your /etc/apt/sources.list:
deb http://download.virtualbox.org/virtualbox/debian trusty contrib
To install VirtualBox, do
sudo apt-get update
sudo
apt-get install virtualbox-5.1
sudo apt-get install dkms
Install Vagrant
- sudo apt-get install vagrant
- create a new directory as "vagrant"(any name) and then a more directory inside earlier directory in vagrant as "vagrantkndar".
- From the command line, run the following command
s:
$ vagrant init precise32 http://files.vagrantup.com/precise32.box
$ vagrant up
$ vagrant ssh
- To return to your host machine, run the command:
- $ exit
To destroy the VM and remove the binary disk image:
$ vagrant destroy