Book Image

OpenJDK Cookbook

Book Image

OpenJDK Cookbook

Overview of this book

Table of Contents (20 chapters)
OpenJDK Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Installing VirtualBox


VirtualBox is a popular virtualization toolbox from Oracle Corporation that allows us to run virtual instances of other operating systems on top of the host operating system. In this recipe, we will install VirtualBox and configure host network interfaces. Such a configuration will allow us to connect from host to guest and back during the automated builds.

Getting ready

For this recipe, we will require the Ubuntu 12.04 amd64 operating system running.

How to do it...

The following procedure will help you to install VirtualBox:

  1. Download the installation package from the VirtualBox website (https://www.virtualbox.org/) and install it.

  2. Install the virtual network interface package:

    sudo apt-get install uml-utilities
    
  3. Create a virtual interface tap0 that will be used for connections to and from the guest machine:

    sudo tunctl -t tap0 -u your_username
    
  4. Configure the interface tap0:

    sudo ifconfig tap0 192.168.42.2 up dstaddr 192.168.42.1 netmask 255.255.255.0
    
  5. Create an arbitrary VirtualBox...