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.
The following procedure will help you to install VirtualBox:
Download the installation package from the VirtualBox website (https://www.virtualbox.org/) and install it.
Install the virtual network interface package:
sudo apt-get install uml-utilities
Create a virtual interface
tap0
that will be used for connections to and from the guest machine:sudo tunctl -t tap0 -u your_username
Configure the interface
tap0
:sudo ifconfig tap0 192.168.42.2 up dstaddr 192.168.42.1 netmask 255.255.255.0
Create an arbitrary VirtualBox...