Monday, February 2, 2015

How to install vagrant on ubuntu 12.04

Leave a Comment

What does vagrant mean?

Vagrant is computer software for creating and configuring virtual development environments.

How to install vagrant on ubuntu 12.04

The first, you need install virtual box, after install vagrant.

How to install Virtual Box 4.3 on ubuntu 12.04

# vim /etc/apt/sources.list
Add lines in sources.list below:
deb saucy contrib
deb raring contrib
deb quantal contrib
deb precise contrib
deb lucid contrib non-free
deb wheezy contrib
deb squeeze contrib non-free
# wget
# apt-key add oracle_vbox.asc
# apt-get update
# apt-get install virtualbox-4.3

How to install Vagrant

# apt-get install vagrant

Download a box vagrant

# vagrant box add precise32
Files will be saved to ~/.vagrant.d/boxes/

Vagrant Up and Running

# vagrant init precise32
# vagrant up

Vagrant Login ssh

# vagrant ssh
Default user and password: vagrant/vagrant

Config Vagrantfile:

# vim Vagrantfile
Add line in Vagrantfile file as below: = "precise32" "forwarded_port", guest: 80, host: 8888 :public_network, ip: "", :bridge => 'eth0'
config.vm.synced_folder "../data", "/vagrant_data"
After modify Vagrantfile file, you need reload to apply as below:
# vagrant reload
I hope will this help you! How to install vagrant on ubuntu 12.04

Link youtube how to install vagrant on ubuntu 12.04 

Copyright by:


Post a Comment