Oracle VM VirtualBox

 
 
Oracle VM VirtualBox is a virtualization software package for x86 and AMD64/Intel64-based computers from Oracle Corporation. The VirtualBox package installs on an existing host operating system (Linux, Mac OS X, Windows XP, Windows Vista, Windows 7, Windows 8, Solaris, OpenSolaris, FreeBSD and Genode) other guest operating systems (as applications), each known as a Guest OS, to load and run, each with its own virtual environment.

The latest Oracle VM VirtualBox version can be downloaded from:
http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html







Install Ubuntu on Windows using VirtualBox



Information
The Ubuntu setup described below is not intended for production environment but for lab exercises.

Operating system used
Windows Vista Home Premium SP 2

Software prerequisites
Oracle VM VirtualBox on Windows.

Procedure
  1. Download Ubuntu 14.04.2 LTS Server (32-bit) for Windows
    For example: D:\docker\ubuntu-14.04.2-server-i386.iso

  2. Start VirtualBox and press the New button in the main tool bar located at the top of the window.

    Virtualbox welcome screen

  3. Enter Name: Ubuntu 14.04.2

    Create VM and enter name

  4. Set the memory size (you always change it later) and press Next button.

    Create VM set memory size

  5. Select "Create a virtual hard drive now" and press Create button.

    Create VM and create virtual harddrive

  6. Select "VDI (VirtualBox Disk Image)" and press Next button.

    Create VM and select virtual_disk_image

  7. Select "Dynamically allocated" and press Next button.

    Create VM and select dynamically allocated

  8. Specify the name and location where to create the virtual harddrive (vdi) and press Create button.
    For example: D:\docker\Ubuntu 14.04.2.vdi

    Note:
    By default the virtual harddrive will be created in folder:
    C:\Users\account_name\VirtualBox VMs\virtual_hardrive_name

    Create VM and select virtual harddrive file location

  9. Select "Ubuntu 14.04.2" and press the Settings button in the main tool bar located at the top of the window.

    VM with Ubuntu created

  10. Change the network configuration. Attach a second NIC (Network Interface Card) to the VM (Virtual Machine):
    • Select Network
    • Select tab Adapter 2
    • Check Enable Network Adapter
    • Select Host-only Adapter

    Virtualbox settings network

  11. Change the storage configuration. Mount the ubuntu-14.04.2-server-i386.iso image which we have downloaded earlier to the VM:
    • Select Storage
    • Select Controller:IDE | Empty, press the CD drive icon and select "Choose a virtual CD/DVD disk file"

    Virtualbox CD/DVD disk file

    • Select the Ubuntu image, for example: D:\docker\Ubuntu 14.04.2.vdi

    Virtualbox mount image

    • Press OK button

  12. Select "Ubuntu 14.04.2" and press Start button

    Virtualbox start VM

  13. Select English and press Enter.

    Virtualbox, setup Ubuntu, select English

  14. Select "Install Ubuntu Server" and press Enter.

    Virtualbox, setup Ubuntu, install server

  15. Select installation language, for example English and press Enter.

    Virtualbox, setup Ubuntu, select installation language

  16. Select your location, for example Netherlands and press Enter.

    Virtualbox, setup Ubuntu, select location

  17. Select locale, for example "United States" and press Enter.

    Virtualbox, setup Ubuntu, select locale

  18. Detect keyboard layout? Select No and press Enter.

    Virtualbox, setup Ubuntu, detect keyboard

  19. Manually select your keyboard. In my situation I have made these keyboard selections.

    Virtualbox, setup Ubuntu, select keyboard step 1

    Virtualbox, setup Ubuntu, select keyboard step 2

  20. Configure network, select eth0 and press Enter.

    Virtualbox, setup Ubuntu, select eth0

  21. Enter hostname: ubuntu14.04.2, press KeyDown button (Continue is now selected) and press Enter.

    Virtualbox, setup Ubuntu, enter hostname

  22. Enter my name: Robert Lie, press KeyDown button (Continue is now selected) and press Enter.

    Virtualbox, setup Ubuntu, enter name

  23. Enter my username: robert, press KeyDown button (Continue is now selected) and press Enter.

    Virtualbox, setup Ubuntu, enter username

  24. Enter my password: mysecret, press KeyDown button (Continue is now selected) and press Enter.

    Virtualbox, setup Ubuntu, enter password

  25. Re-enter my password: mysecret, press KeyDown button (Continue is now selected) and press Enter.

    Virtualbox, setup Ubuntu, re-enter password

  26. I do not want to encrypt my home directory, select NO and press Enter.

    Virtualbox, setup Ubuntu, encrypt homedirectory

  27. Set your timezone.

    Virtualbox, setup Ubuntu, set timezone

  28. Partition disk, select "Guided - Use entire disk and setup LVM" and press Enter.

    Virtualbox, setup Ubuntu, partition disk step 1

  29. Select disk to partition and press Enter.

    Virtualbox, setup Ubuntu, partition disk step 2

  30. Write changes to disk and configure LVM (Logical Volume Manager), select Yes and press Enter.

    Virtualbox, setup Ubuntu, partition disk step 3

  31. Amount of volume group to use for guided partitioning. Enter 8.3GB, select Continue and press Enter.

    Virtualbox, setup Ubuntu, partition disk step 4

  32. Write the changes to disks? Select Yes and press Enter.

    Virtualbox, setup Ubuntu, partition disk step 5

  33. I do not need a HTTP Proxy to access the outside world, leave field blank, select Continue and press Enter.

    Virtualbox, setup Ubuntu, http proxy

  34. I do not want automatic updates. Select "No automatic updates" and press Enter.

    Virtualbox, setup Ubuntu, automatic updates

  35. Install OpenSSH server to login remotely (use spacebar to select OpenSSH). Select Continue (use Tab key) and press Enter.

    Virtualbox, setup Ubuntu, install openssh

  36. Install GRUB boot loader. Select Yes and press Enter.

    Virtualbox, setup Ubuntu, install GRUB boot loader

  37. Finish the installation, select Continue and press Enter.

    Virtualbox, setup Ubuntu, finish installation

  38. The Ubuntu server 14.04.2 is installed.

    Virtualbox, setup Ubuntu, installation done

  39. You can now login with the username and password you previously entered during the Ubuntu installation.

  40. To shutdown the VM, press the right CTRL button to disable the mouse capture.
    In the main tool bar located at the top of the window, select Machine | Close, and select "Power off the machine".

    Virtualbox, shutdown VM

    Virtualbox, shutdown VM power off