Post

How to Install Windows In Ubuntu Hardy with VirtualBox

VirtualBox is an open-source cross platforms virtualization application that allows anyone to create a virtual machine on their computer. It is similar to the popular VMware, but much smaller in size and handles the virtual machine more efficiently.

Before you attempt to install any Windows OS as a virtual machine, make sure that your computer has enough memory (at least 1GB of RAM) and hard disk and you own a genuine Windows installer CD with valid license key.

Installing VirtualBox

Go to the VirtualBox download site. Under the Platform dropdown box, select Ubuntu 8.04 (x86). AMD users please select Ubuntu 8.04 (AMD64). Check the agreement box and click Continue.

Check the box Sun xVM VirtualBox 1.6 and click “Download selected with Sun Download manager”. The program should now download the virtualbox_1.6.2-31466_Ubuntu_hardy_i386.deb file to your desktop. If you don’t have java runtime installed, you can simply right click on the file link and select “Save link as”.

virtualbox-download1 virtualbox-download2

(Click to enlarge)

Once the downloading is done, double click on the virtualbox_1.6.2-31466_Ubuntu_hardy_i386.deb to install the program.

After the installation, VirtualBox will create a group call vboxuser. You will have to add your user name to the group. To do this, go to System -> Administration -> Users and Groups.

user-group1

Click the Unlock button, follow by Manage Groups.

user-group2

Scroll down until you see the vboxusers. Click Properties.

user-group3

Put a check beside your user name and click OK. Done

Go to Applications->System Tools -> Sun xVM Virtualbox. If you can’t find the entry, reboot your computer.

You should see the VirtualBox main window (image below) upon opening the application

virtualbox-screenshot

Click New to install a new virtual machine.

On the welcome screen, click Next to proceed.

Give your VM a name and determine its type. If you are installing Windows XP, simply put “Windows XP” under the name field and select Windows XP under the OS Type dropdown box.

virtualbox-screenshot1

In the next screen, set your base memory size. If you are installing Windows XP, it is recommended to allocate at least 256MB of memory. If you have lot of memory in your computer, you can always allocate up to 1GB or more.

virtualbox-screenshot2

Next, you have to create the virtual disk space. Click New.

virtualbox-screenshot4

A new window will pop up. Click Next on the new window to proceed.

virtualbox-screenshot3

Select “Dynamically expanding image” follow by Next.

virtualbox-screenshot5

Give the image a name (can be the same as your VM name) and allocate the size. Recommended is at least 8GB. Click Finish to complete the process.

virtualbox-screenshot6

virtualbox-screenshot7

This will close the window and bring you back to the previous window. Select the virtual disk you have just created and click Next. The last part is the confirmation where it will show you the summary of your configuration. If everything is fine, click Finish.

virtualbox-screenshot8

virtualbox-screenshot9

You should now see an entry of the virtual machine in the main screen. Highlight it and select Settings (just above the entry). On the left pane, select the CD/DVD ROM. On the right pane, check the box ‘Mount CD/DVD Drive’ and select Host CD Drive. Click OK.

virtualbox-screenshot10

Now insert in the Windows XP/Vista installer CD. On the virtual box, highlight the virtual machine and click Start. The virtual machine should now boot up and you can follow the screen instruction to install Windows XP.

At any time, if you want to get out of the virtual machine screen, press right Ctrl button. Once you have finished installing the OS. Reboot into the virtual machine. Under the device menu, select Install guest addition. This will allow you to enjoy enhanced graphics and smooth mouse transition between the virtual machine and your host machine.

For more technology news, tips and tricks, subscribe to Make Tech Easier today.

Popularity: 29% [?]

 

7 Comments Received

 
July 2nd, 2008 @11:26 am  

Great tutorial.
This is very helpful. I like the clear instructions with pictures.

Onno
July 23rd, 2008 @1:46 pm  

Great guide, I encountered only an USB problem using VirtualBox. I tried the above install on a virgin Hardy install and it works great. When I try to edit a machine I get the following warning:

Failed to access the USB subsystem:
Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might be not installed on the host computer.

Anything I need to add you already have onboard?

Thanks,
OE

July 23rd, 2008 @2:34 pm  

@Onno: You need to enable USB support on Hardy heron. Follow this guide http://maketecheasier.com/enabling-usb-support-for-vmware-server-in-hardy-heron/2008/05/05

July 23rd, 2008 @4:32 pm  

Does VirtualBox really handle virtual machines more efficiently than VMWare?

Onno
July 24th, 2008 @6:34 am  

@Damien, thanks it works. Please put a link in the article to make it even better.

Another thing: Under network I need to use “Host Interface” for server testing. Do you also have an artikel on bridging? Could you expand the artikel with (USB and) bridging?

Thanks again,
Onno

Onno
July 24th, 2008 @6:43 am  

@Saman, under windows it does for me… with GUI and headless. Under Linux (Ubuntu) I still have to test it but the reviews favor VirtualBox.

Also VirtualBox has more flexibility (VMWare can give you that flexibility if you buy more products…), but the VB flexibility comes at some complexity cost (like cloning a server, machine + hard drive). And VirtualBox needs less resources…

Give it a try, if you need RDP, USB, iSCSI or SATA use the closed source version (as I do), otherwise try the open source edition. They are both free!

Regards,
Onno

August 20th, 2008 @10:59 am  

This is very helpful tutorial and very easy. Every user understand easily.and i like clear instruction
with picture.
very-2 thanks for this tutorial.

Leave A Reply

Please Note: Comments maybe under moderation after you submit your comments so there is no need to resubmit your comment again