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

VirtualBox Introduction and Setup

 

For the current semester, please note the following:

NOTE: Please do not try to use VMware, KVMs, or other Virtual Machine systems. Each VMM implements virtual networking differently. You will be doing activities involving our VMs that take into account the details of VirtualBox'es networking design and implementation.



To setup your VM, please do the following steps (all described below).

For VM1, we are using ubuntu-16.04.3-desktop-amd64.iso

For VM2, we are using a Kali linux distro (specifically kali-linux-2017.3-vbox-amd64) but we are using a prebuilt VM in Open Virtualization format.....see below for instructions.

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 Addtions" - 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.

 

Additional VirtualBox Items

Here are a few items that might be helpful

Pointers to additional Ubuntu documentation that might be helpful

last updated: 6/24/2018