Build your own light-weight VM

A simplifying and standard virtual machine used for building OpenJDK.

Quick Start

Please download and install the latest version of Vagrant 1.7.2 or higher from

Then execute the following command line:

# Clone the adopt-openjdk-kiss-vagrant repo
$ git clone

# Change to a folder to create the Vagrantfile
$ cd adopt-openjdk-kiss-vagrant.git
$ vagrant init

# Start up the machine
$ vagrant up

# ssh into the VM
$ vagrant ssh

# in the ssh shell
# Mapping in place: /vagrant/scripts/ ==> [currentfolder]/scripts

Have a look at the folders and scripts in this repo, as they can be used for various purposes. Once finished with the above steps, go to Build your own OpenJDK to continue further with building OpenJDK.

Note: the VM is about 377MB so please download beforehand on a slow home broadband, zero to full build of OpenJDK 9 takes about an hour (using a MacBookPro 2013 with 16GB and SSD).

Detailed steps

*If you would like to do the above and explore all the technologies used to build the box.

The sections in this document are below, all the bullet points are steps required, all bold sections provided more information or optional configuration. Any reference to $ is a command line argument to be executed within a vagrant vm.

  • Install Virtual Box, Vagrant & Git
  • Boot Vagrant VM
  • Initial Vagrant VM setup
  • OpenJDK 9 Build

Install Virtual Box, Vagrant & Git

Install the software, initially created and tested on a Mac and the versions used as of 2015/01/18 are;

Download VM from cloud repository

Once vagrant is installed please execute the following command line, it's 377MB so please download beforehand to save time on the day;

vagrant box add ubuntu-14.10-amd64; [dead-link]

On a slow home broadband from zero to full build of OpenJDK 9 can take an hour (machine spec: Using a MacBookPro 2013 with 16GB and SSD)

Load up VirtualBox and start up the machine.

Initial Vagrant VM setup

Once the vm has booted and dependencies have been installed the next script will download the latest version of jdk9, if already cloned it will update so multiple execute is handled.

  $ vagrant ssh
  $ sh /vagrant/scripts/
OpenJDK 9 Build
  $ vagrant ssh
  $ cd /vagrant/sources/jdk9 ;
  $ bash ;
  $ bash configure;
  $ bash configure --disable-warnings-as-errors;
  $ make clean images ;
  $ make test ;

There's also a github repo with a Vagrantfile and accompanying scripts.

results matching ""

    No results matching ""