This website is preserved for historical and scholarly reference and is no longer actively maintained.
Instructions for installing VirtualBox and then installing and setting up a Ubuntu 14.04 LTS VM. You will need to be familiar with Chapters 1-6 of the VirtualBox Users Manual. Other helpful documentation:


 

Installing a VM on VirtualBox 



Step 1.  Installing VirtualBox and setting up a Guest OS (i.e., a VM). 

 

Step 2. Once you install the VM, you should install the VMs set of helpful drivers referred to as "Guest Addtions"

Step 3. Tweak your VM settings to :

Step 4 : Network setup:

The first step is to read Ch 6 of the VirtualBox Users Manual. After an initial install of the Ubuntu VM, you should first perform the steps in 'Initial Network Settings'.

Initial Network Settings and System Validation

The default network mode is Network Address Translation (NAT). The network diagram is roughly as follows:

Internet ----host os ------'hard wired link'---- Ubuntu VM

------------ ....10.0.2.2 .................................10.0.2.15

VirtualBox setups up a 'hard wired link' allowing a VM (any number) to communicate through the Host using NAT. Don't be alarmed when you see all VMs are assigned the same IP address.

The VM will show a NAT network (Settings --- Networks ). Click Advanced and it will show the MAC address. VirtualBox uses a somewhat strange network scenario-it assigns all VMs to use NAT with an IP of 10.0.2.15.

To complete step 1, validate the network is as expected by:

Explanation: Host OS is performing NAT on behalf of flows intiated by VM1. Let's say our Host OS has an IP of 172.23.0.1. When VM1 issues a ping to a machine like netlab.cs.clemson.edu, the netlab host will think its interacting with a host with a source IP of the Host OS's IP address to the outside world.....when really the source is VM1!!

Step 5: Packages to install after a fresh install of ubuntu 14.04. Issue 'sudo apt-get install pkgname' from a term session on the VM.

And other packages you might find helpful

 

 

To setup your VM so that it can be directly accessed from an outside Host:

 

host A ---- Network ------- HostOS---|----VM1

..................................................... Bridge ...........

 

The network effectively is as shown below. In the VM Machine setup, change Network from NAT to Bridge. By default, it requires a DHCP server to provide an IP address.

 

10/12/2016