Installing Vagrant, Virtualbox

Vagrant is used to manage your Virtualbox images

Virtualbox is used to create customized development environments. You can create a Linux or Mac environment on a Windows machine with Virtualbox.

Here’s how to get started with Vagrant on Windows.

I installed Vagrant onto my Windows 10 OS first.

Then I installed Virtualbox

Setting up your Virtualbox

I ran the Virtualbox and selected the blue ‘New’ button to create a new virtual machine (which I named Ellen’s Linux). I kept all the values to their defaults and created a 5gb hard disk that is dynamic.

Unnamed QQ Screenshot20151221214033

Go here to download Ubuntu OS. I downloaded the 14.04.3 version.

Then go to your Settings>Display
Click on the CD icon (which should say Empty)
Then click on the CD icon on the right under Attributes>Optical Drive to select the Choose Virtual Optical Disk File
Find your Ubuntu OS .iso file and select it.

Unnamed QQ Screenshot20151221220339

Click the OK button and Run your new virtual machine.

If you get this error in your Virtualbox:

This kernel requires an x86-64 CPU, but only detects an i686 CPU, unable to boot

Go to General> Basic Settings and change the Ubuntu(32-bit) to Ubuntu(64-bit)

Unnamed QQ Screenshot20151221220256.jpg

If you notice your Ubuntu environment running super slow, go to Settings> Display

Check the ‘Enable 3D acceleration’ box in your virtual machine

Unnamed QQ Screenshot20151221220316

Setting up your Vagrant

After installing Vagrant, open your terminal and run this:

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

If you get this error in your terminal:

Vagrant failed to initialize at a very early stage:

The plugins failed to load properly. The error message given is
shown below.

The RubyEncoder loader is not installed. Please visit the http://www.rubyencoder.com/loaders/ RubyEncoder site to download the required loader for 'mingw' and unpack it into 'C:/HashiCorp/Vagrant/embedded/rgloader' directory to run this protected script.

Then go here to download the RubyEncoder (MinGW). Unzip the folder ‘rgloader’ into HashiCorp/Vagrant/embedded/

If you’re prompted, replace any files with the same name.

Create a directory anywhere on your computer and test your Vagrant.
$ mkdir vagrant-test
$ cd vagrant-test
$ vagrant up

Done!

Get into an instance:
$ vagrant ssh

Helpful links:
Ubuntu Vagrant Install and Getting Started/

Getting Started Vagrant Windows

Ubuntu