In this tutorial you will learn how to Install Vagrant on Linux Mint/Ubuntu Desktop. During the tutorial I will show you how to install the latest Ubuntu repository version and also the latest version from http://www.vagrantup.com/downloads.html. You will learn how to get all the tools that you need in order to use Vagrant such as virtualbox, virtualbox-dkms and virtualbox-qt packages and see what is happening if you don’t use the latest Vagrant version.
Code used during this tutorial:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# Vagrant Install on Linux Mint/Ubuntu Desktop # Increase the RAM size Oracle VM VirtualBox Manager/VM/Settings/System Base Memory: 2048 MB # Resynchronize the package index files from their sources sudo apt-get update # Base binaries # A graphical user interface for VirtualBox is provided by the package virtualbox-qt # No VirtualBox UI found on OS start/Menu button sudo apt-get install virtualbox # This package provides the tools to create and configure lightweight, # reproducible, and portable virtual environments. sudo apt-get install vagrant # Virtualbox kernel module to be build with dkms # Ensure that the VirtualBox host kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are properly updated # if the Linux kernel version changes during the next apt-get upgrade sudo apt-get install virtualbox-dkms # Qt based graphical user interface for VirtualBox sudo apt-get install virtualbox-qt # Print the Vagrant version # Vagrant 1.4.3 vagrant -v # Browser http://www.vagrantup.com/downloads # I recommend using the latest Vagrant version in order to avoid problems # Create Vagrant project mkdir -p ~/vagrant/ubuntu-precise32 cd ~/vagrant/ubuntu-precise32/ # Initializes a new Vagrant environment by creating a Vagrantfile vagrant init ubuntu/precise32 # Starts and provisions the vagrant environment # Vagrant has detected that you have a version of VirtualBox installed # that is not supported. Please install one of the supported versions # listed below to use Vagrant: # #4.0, 4.1, 4.2, 4.3 vagrant up --provider virtualbox # Uninstall current Vagrant version sudo apt-get purge vagrant vagrant -v # Install the latest Vagrant version wget https://releases.hashicorp.com/vagrant/1.8.1/vagrant_1.8.1_x86_64.deb cd ~/Downloads/ sudo dpkg -i vagrant_1.8.1_x86_64.deb vagrant -v rm -rf ~/vagrant/ # Recreate project # Useful links http://www.olindata.com/blog/2014/07/installing-vagrant-and-virtual-box-ubuntu-1404-lts https://www.digitalocean.com/community/tutorials/how-to-install-vagrant-on-a-vps-running-ubuntu-12-04 |
Useful links:
http://www.olindata.com/blog/2014/07/installing-vagrant-and-virtual-box-ubuntu-1404-lts
https://www.digitalocean.com/community/tutorials/how-to-install-vagrant-on-a-vps-running-ubuntu-12-04