VirtualBox on Ubuntu Jaunty for Testing Internet Explorer in Windows

I really loved using VMWare Fusion in OSX to test my webpages in Windows.  The power to just drag a whole Windows installation into the trash when it gets jacked up is intoxicating. Unfortunatly, Jaunty is still not supported by VMWare, and the bugs were just to much. Plus, I really didn’t like the web interface. Fortunately, I found VirtualBox which is at least as sleek as Fusion, but free!

To install VirtualBox, I got a lot of help from hopla on the Ubuntu Forum. I quote:

You need: virtualbox, qemu, wine

Code:

apt-get install virtualbox qemu wine

Download the free(!) Microsoft Internet Explorer Application Compatibility Check VPC Images here.

(Note: you don’t have to download the full pack, you can cherry pick specific combinations of XP/Vista and IE6-8)

Extract the VPC image(s) with wine (double-click).
(Note: it might take a while before the first window shows up)

Turn the VPC image(s) into (a) VMWare image(s) (which is/are readable by VirtualBox):

qemu-img convert -f vpc image.vhd -O vmdk image.vmdk

Setup a new VM in VirtualBox, using the vmdk image as an existing disk. Boot it, you will see the Windows boot progress bar and … it will BSOD shortly after.

Fixing the BSOD:

The BSOD is caused because the virtual Windows tries to load processor drivers for the wrong processor (it is not running on VirtualPC proc, but on VirtualBox proc). Or something like that…
We need to force Windows not to attempt to load drivers for the processor (it doesn’t need any proc drivers, because it’s all virtual anyway).
Start safe mode by (frantically) hitting F8 at Windows boot and choosing safe mode.

Ignore all the ‘New hardware’ detected warnings (we will deal with those later). Start a command box and run the following command to disable the loading of processor drivers:

Code:

sc config processor start= disabled

(note the space between ‘=’ and ‘disabled’!)

Restart the virtual Windows, it should now boot all the way to the Windows Desktop.

Once your virtual Windows has rebooted, go to Devices -> Install Guest Additions in the VirtualBox window.  This will mount a (virtual) CD with the Guest Additions software.  The autorun feature didn’t work every time, so if a new window doesn’t open up, find the Guest Additions CD in Windows Explorer and run the .exe.  This adds a lot of functionality to your virtual machine.

After rebooting the virtual machine, I followed the instructions from Primeval Soup:

In Windows, go to:

Start > Run > “cmd”

In the terminal, type:

D:\VBoxWindowsAdditions-x86.exe /extract /D=C:\Drivers

Start > Administrative Tools > Computer Management

Select Device Manager.

Select Batteries, Unknown Device -> Disable

Select Sound, video and game controllers, Multimedia Audio Controller -> Disable

Select Universal Serial Bus controllers, Universal Serial Bus (USB) Controller -> Disable

Select Network Adapters, Ethernet Controller -> Update Driver

Select Yes, now and every time, click Next

Select Install from a list or specific location, click Next

Enter location “C:\Drivers\x86\Network\AMD”

Click Finish

Open a browser, test connection

You’re done!

And that is a good feeling.

This entry was posted in Linux, Software I use, Solutions, Tutorial, Ubuntu, VirtualBox. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>