Wednesday, February 16, 2011

How to install Ubuntu using a Virtual Machine (VM)

Downloads required.

1. VirtualBox – This is a free virtual machine by Sun Micro Systems. This can be downloaded at http://www.virtualbox.org/wiki/Downloads . Select VirtualBox 3.1.4 for Windows hosts if you are installing on a windows platform. If you are using any other OS, please select appropriate version.  

2. Ubuntu – This can be downloaded from http://www.ubuntu.com/ . If you have an Ubuntu installation CD, this can be used for the installation.


How to install the Virtual Machine.

  1. Run the VirtualBox installation by following the Wizard. Use all the default settings. It will warn you that your network connection might get re-set during the process. This is acceptable as it is configuring the same network connection to be used with the VM. 
  2. Once installed you will see the following screen. There will be a Sun Micro Systems registration prompt before this. You can cancel it and ignore.
3. To create a new VM, click on New


4. Click Next and continue


5. Input the Name as “Ubuntu”, Operating System as “Linux” and Version as “Ubuntu”



6. Set the base memory size to 384MB (default)


7. Select Boot Hard Disk and Create new hard disk


8. Click Next and continue.


9. Select Dynamically expanding storage

10. Type in C:\Ubuntu.vdi as the Location
11. The size should be left at 8GB.

12. Click Finish


13. Click Finish

14. After setting up the VM, the following details will be displayed.

15. Click on Start to start the VM



16. You will see a message regarding the host key. The host key is used to switch between the VM and the actual desktop. When the host key is active the keyboard and mouse will work with VM. When host key is inactive it will work with the desktop of your PC. Take note of the host key.  Press OK to continue.  



17. You will encounter the following error. This is because we haven’t setup a boot device.


18. Navigate to Devices >> CD/DVD Devices. Select Host Drive which is the drive letter for your CD/DVD drive. When selected it would show a tick in front of it. 



19. Now close the window and select Power off the machine. Click OK to continue.


20. Insert the Ubuntu CD provided by WOU with the course material into the CD/DVD drive.

21. The following information window will auto popup. You can close this.






22. Now press Start to start VM as stated in step 14. You will get the following message. Just press OK and continue.


23. The VM will now start the installation of Ubuntu within the VM.

24. Follow instructions to install Ubuntu as the installation process can differ from version to version.