create a virtual ubuntu linux host with VirtualBox

create the virtual machine

assuming your version of vbox and mine work identically, to create a new virtual machine with the live cd:

  • start virtualbox

  • click the "New" button to create a new virtual machine. this starts a wizard.

  • VM Name and OS Type

    • give the virtual machine a name eg., "ubuntu"

    • select Operating System: Linux

    • select Version: Ubuntu

      • if ubuntu is not available, select other

  • select memory size

    • recommended is 512mb, but depends on how much ram is in host system

    • 512mb worked fine for me

  • Virtual Hard Disk

    • ensure "Boot Hard Disk" is checked

    • select (default) "Create new hard disk" button

    • click Next

    • The Virtual Disk wizard starts:

      • click Next

      • click "Fixed-size storage" button, and Next button

      • Location should be ok

      • select size. 8gb should be okay

      • click Next

      • click Finish

      • may take a few minutes to prepare image file

  • click "Finish" to end the wizard

  • ubuntu virtual machine should be highlighted in the VirtualBox window

  • Select "Machine → Settings…" from the window menu

    • ignore any warnings about failed device access

    • in the left pane, select various sections and set as below

    • settings not mentioned can be ignored.

    • System

      • select Motherboard tab

      • in the "Boot Order" list:

        • select only: CD and Hard Disk

        • ensure the CD is above the Hard Disk

    • Storage

      • select the CD icon under the IDE controller

      • under Attributes (on the right), click the CD icon

      • select the ubuntu iso file

    • Audio

      • uncheck "Enable Audio"

    • Network

      • "Adapter 1" tab should be selected

      • if not checked, check the "Enable Network Adapter" box

      • select "Host-Only" from the "Attached to" dropdown box

      • note the adapter name (ie, vboxnet0)

    • click the OK button at the bottom of the window to close

install ubuntu onto the virtual machine

  • start the virtual machine

  • you may receive a warning about the host key

    • make a note of the "host key" that will release the keyboard and mouse

  • you may receive messages about display settings and keyboard capture

    • follow the instructions, if you like- i ignore them.

  • in the virtual machine’s window, click the "Install Ubuntu" button

  • ensure "Download updates while installing" is unchecked and "Install this third-party software" is unchecked

  • click Forward button

  • leave "Erase disk and install Ubuntu" checked, and click Forward

  • verify the the disk listed is the VBOX disk, and click "Install Now"

  • if needed, select your time zone (should default to New York)

  • keyboard layout should be okay (USA,USA), click Forward

  • in the "Who are you?" window, enter your name, etc.:

    • full name

    • use a simple computer name, like "ubuntu" or "linux"

    • use "james" for a username (case-sensitive)

    • select password

    • ensure "require my pasword to log in" is selected

    • ensure "Encrypt my home folder" is NOT selected

    • click Forward

  • while you wait for the installation to complete, you can browse the features by clicking the < and > buttons in the Install window

    • most are not useful since the system has no external network connection

  • when the "Installation Complete" popup appears, click the "Restart Now" button

  • when the window changes to a terminal (smaller, blank, black window) power off the machine.

  • open the virtual machine settings

  • select System from the left pane

  • select the Motherboard tab

  • click the Hard Disk in the "Boot Order" box, and use the arrow to move it up so that it is first in the list, so the system will boot from the hard disk

  • close the settings and start the virtual machine

configure ubuntu

  • on your windows system, use ipconfig to find the address of the vboxnet0 adapter

    • mine is 192.168.56.1, i will assume this setting for the following

    • that means that all the network settings that were 192.168.30 before now become 192.168.56

  • note the network icon on the top menubar

    • on the right side, looks sort of like a windshield

    • probably between the battery and speaker icon.

    • it will change to a pair of arrows (up and down) when connected later

  • from the top menu bar, select System → Preferences → Network Connections

  • select the "Wired" tab

  • select Auto eth0

  • click the edit button

  • in the popup window, select the "IPv4 Settings" tab

  • change "Method" to manual

  • in Addresses:

    • click the Add button and fill in the boxes:

      • Address: 192.168.56.2

      • Netmask: 255.255.255.0

      • Gateway: 192.168.56.1

  • click the Save… button to close the window

  • click the Close button to close the Network Connections window

  • a popup message should appear that Auto eth0 connection is established

    • note whether the menubar network icon has changed

  • from the menu bar, select Applications → Accessories → Terminal

  • become root in the terminal window. type: sudo su - root

  • type: ifconfig

    • import output for eth0:

      • inet addr:192.168.56.2 Bcast:192.168.56.255 Mask:255.255.255.0

      • UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

  • you should now be able to ping the windows host from linux and vice versa

  • shut down ubuntu:

    • click the icon in the far right corner of the menu bar

      • selech Shutdown or Hibernate

  • power down the virtual machine, if necessary