How to install Vagrant on Ubuntu 14.04

ConfigCategory
2 min read
Christopher Carfi

Vagrant is a tool in the Ubuntu Linux environment for setting up a complete virtual development environment, also commonly referred to as a VDE. Vagrant dramatically reduces the amount of time that you need to spend rebuilding your operating system and acts as a central configuration hub for your activities, allowing you to easily manage and deploy VDEs using the same basic configuration. It's important to note that you also have to install VirtualBox at the same time, as its core functionality is built into the main Vagrant product.

To set this up, you'll need a live Linux server (that you can tweak) with a dedicated IP address and a way to connect to it. We recommend a GoDaddy Virtual Private Server if you're just getting started, or a full dedicated server if you’re ready to take total control. To connect to your server, you'll need some kind of an SSH client. Google it, or try PuTTY (Windows) or Terminal (Mac).

[requirements difficulty="3" time="15"]

1. Install VirtualBox.

sudo apt-get install virtualbox

2. Install Vagrant.

sudo apt-get install vagrant

The Terminal will indicate that the following new packages will be installed on your machine:

bsdtar curl libruby1.9.1 libyaml-0-2 ruby ruby-childprocess ruby-erubis
ruby-ffi ruby-i18n ruby-log4r ruby-net-scp ruby-net-ssh ruby1.9.1 vagrant

3. Deploy your development environment.

vagrant box add precise32 http://files.vagrantup.com/precise32.box

4. Start Vagrant.

vagrant init

NOTE: The "vagrant init" command sets up a Vagrant environment by placing a Vagrant file in the appropriate directory on your machine.

vagrant up

Once you've entered those commands, Vagrant will be installed and fully up and running on your Ubuntu 14.04 machine.

As a courtesy, we provide information about how to use certain third-party products, but we do not endorse or directly support third-party products and we are not responsible for the functions or reliability of such products. Third-party marks and logos are registered trademarks of their respective owners. All rights reserved.