Start from Vagrant – install and up

This is a simple demo how to install the vagrant in the Ubuntu Linux

Install virtualbox

sudo apt-get install virtualbox

Install vagrant

sudo apt-get update
sudo apt-get install vagrant
vagrant version

Create a Vagrantfile from default category list

https://app.vagrantup.com/boxes/search

mkdir ~/vagrant
cd ~/vagrant
vagrant init hashicorp/precise64
less Vagrantfilevagrant up
vagrant ssh

To turn your VM on, navigate to the directory with your Vagrantfile:

vagrant up

To pause your VM, navigate to the directory with your Vagrantfile:

vagrant suspend

To turn your VM off, navigate to the directory with your Vagrantfile:

vagrant halt

To destroy your VM, navigate to the directory with your Vagrantfile:

vagrant destroy
Advertisements