This website is preserved for historical and scholarly reference and is no longer actively maintained.

VirtualBox Introduction and Setup

 We will use VirtualBox and at least for the first part of the semester one Virtual Machines. The VM will be  Ubuntu 16.04.  The following explains how to install a VM on VirtualBox using the VM distribution release in ISO format.


Before getting started with VirtualBox, please note the following:


Prep for installing our VMs:  download the  VM distributions.  We will install VM1 using method #1 described above. 



1 VirtualBox Downloads and Documentation

 

2 Installing a Guest OS on a VirtualBox VM 

Step 1. Install VirtualBox on your Host OS.


Step 2. Create a VM

 

Step 3. Install a Guest OS

 

Step 4. Install the "Guest Additions" - which adds optimized drivers to your Linux installation.

Step 4. Tweak your VM settings to enable these useful features::

 

Step 5. Packages to install after a installing a Ubuntu VM

After a fresh install of Ubuntu, you should do a 'sudo apt update'. Then issue 'sudo apt-get install xxx' the following (note that some of these might already be on your system).. To see all installed, 'apt-cache pkgnames', To see if a specific pkg is installed, like iperf, 'apt-cache showpkg iperf', And if you know the program you want to get but it is different from the package name, you can try 'apt-cache showpkg iperf'.

The following are optionally

 

Step 6 Setup Networking on the VM

When installing just one VM, the default networking that is setup by VirtualBox is sufficient. It allows the VM to reach the Internet - but it does not allow any Hosts from an outside network to reach the VM (unless the VM initiates the connection).

Refer to this page for further information on network options.

 

Step 7 Additional setup through the command line interface

 

After virtualBox is installed, a set of helpful command line programs are available on your Host OS. On a Windows Host OS, these programs are located in C:\Program Files\Oracle\VirtualBox.

The main command line interface program is vboxmanage. I usually add the path to my User Path environment (on Windows, Control Panel, System, Advanced Settings and then Environment Variables).

Try 'VboxManage' for a list of all command options.

VboxManage list vms ; lists the names of your VMs.

VboxManage showvminfo VM1 ;shows all info for the VM named VM1

You can configure more properties and aspects of each VM through the command line interface. Refer to the Users Manual for details.

 

Misc information




Snapshots, clones, and export/import 

Three very  useful capabilities provided by most VMM systems are snapshots, clones, and export/imports.

last updated: 8/27/2019