~~~~~~~~~ Article is still in Progress ~~~~~~~~

Setup Guide

Provision Ubuntu Desktop with Java Development Environment done using Vagrant on Windows 10


Vagrant is a provisioning tool for virtual machines and provides an easy way to build and manage virtual machine environment best suited for setting up development environments. It can provision a virtual machine on VirtualBox, VMware, AWS etc. Vagrant works with the configuration defined in a file called Vagrantfile, which can be committed in the source control.

VirtualBox is basically inception for your computer. You can use VirtualBox to run entire sandboxed operating systems within your own computer. It is the default provider for vagrant.

Ubuntu is a free and open-source Linux distribution based on Debian. Ubuntu is officially released in three editions: Desktop, Server, and Core for the internet of things devices and robots. All the editions can run on the computer alone, or in a virtual machine.

This article provides step by step details on provisioning Ubuntu Desktop using Vagrant on Windows 10 with all applications needed for Java Development Environment.


Vagrant and Virtual Box are the only prerequisites that are needed on Windows 10 to provision Java Development Environment on desired VM. Download, Install and restart your machine if prompted for.

Executing the below command should Verify if Vagrant is installed successfully

~:\> vagrant -v

Vagrant 2.2.7


Create a sample directory or go inside your project folder and enter

~:\> vagrant init

This will generate a minimal Vagrantfile, which we will modify to suit our need. We can choose different boxes packaged for Vagrant from official repository at https://app.vagrantup.com/boxes/search. We will be provisioning Ubuntu Desktop in this article.

Use Ubuntu Desktop Vagrant box

peru/ubuntu-18.04-desktop-amd64 is the vagrant box that we will be using to provision our development environment in this article.

Ubuntu Desktop Vagrant Box
Ubuntu Desktop Vagrant Box

Delete Vagrantfile that is created and run the below command to initialize one with Ubuntu Desktop.

~:\> vagrant init peru/ubuntu-18.04-desktop-amd64 

This will create file Vagrantfile which have reference to the used public box.

config.vm.box = "peru/ubuntu-18.04-desktop-amd64"

Run Vagrant command to provision the VM with the available Vagrantfile

~:\> vagrant up

This will use the default provider virtualbox and will download the virtualbox Ubuntu Desktop image and starts it up. You should observe something similar after running the above command. Image being downloaded is of around ~1.45 GB and it would take couple of minutes to complete.

You should observe something similar after running the above command.

vagrant up fedora





Share This:


Get The Best Of All Hands Delivered To Your Inbox

Subscribe to our newsletter and stay updated.