Articles

Install VirtualBox and Vagrant on Linux Mint 17.3

In howto on Jan 16, 2016 by theoryl Tagged: , , , , , ,

Another day working with virtual machines, another install log. My host machine is Linux Mint 17.3, based on Ubuntu Linux 14.04. The guest machine I’m planning to use is CentOS 6.7.

Firstly I have to install VirtualBox 5.0. Oracle provides pre-built VirtualBox package to Debian/Ubuntu distros, see here. My installation notes:

# Add /etc/apt/sources.list.d/virtualbox.list
sudo vim /etc/apt/sources.list.d/virtualbox.list

# Ubuntu Trusty
#deb http://download.virtualbox.org/virtualbox/debian trusty contrib

# Add the Oracle public key
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

sudo apt-get update
sudo apt-get install virtualbox-5.0

Secondly I have to install Vagrant by HashiCorp. The latest version is available for download as .deb packages.

# Download
wget https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_SHA256SUMS
wget https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.deb

# Verify SHA256 checksums
sha256sum -c vagrant_1.8.1_SHA256SUMS

# Install
sudo dpkg -i vagrant_1.8.1_x86_64.deb

Thirdly, install Packer also by HashiCorp. Download the .zip file that contains the binary programs.

# Download
wget https://releases.hashicorp.com/packer/0.8.6/packer_0.8.6_linux_amd64.zip
wget https://releases.hashicorp.com/packer/0.8.6/packer_0.8.6_SHA256SUMS

# Verify SHA256 checksums
sha256sum -c packer_0.8.6_SHA256SUMS 

# Unzip
unzip packer_0.8.6_linux_amd64.zip

# Add the executables to $PATH
export PATH=$PATH:$PWD

You can also download pre-built Vagrant boxes from Hashicorp Atlas. For instance, here is an official Ubuntu Server 14.04 LTS image: https://atlas.hashicorp.com/ubuntu/boxes/trusty64

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: