Update – 25th June, 2012

The amazing Greg Thornton (https://github.com/xdissent) has very kindly taken all the hassle out of this process and made it super easy to get the VPC images running in Virtualbox. They will still expire but you should be able to roll back to a clean snapshot if it gets annoying.

Get the installer here – https://github.com/xdissent/ievms
Donate to say thanks to Greg here – http://pledgie.com/campaigns/15995


With the release of Internet Explorer version 8, Microsoft have added yet another browser into the mix for we web developers to support.

Testing on different versions of Internet Explorer has always presented some challenges. Unlike some other browsers, it’s not possible to truly run various versions side-by-side. Some applications like Tredosoft’s Multiple IEs go some way to providing this functionality however problems still manage to present themselves.

The easiest way to really test is to use virtual machines created with specific versions of Internet Explorer running under Windows XP or Vista. Microsoft have kindly donated free, downloadable disk images to run under their Virtual PC software.

Unfortunately for some, Virtual PC only runs under Windows. I prefer Sun’s alternative so here are some instructions for installing the Internet Explorer Application Compatibility VPC Images under VirtualBox:

  1. Go here and download the VPC disk image(s) of your choice.
  2. Extract the VHD file using your favourite archive manager. You should probably read the associated documentation and EULA.
  3. Start VirtualBox and hit “New”.
  4. Choose the appropriate operating system and give your new VM a name and some RAM.
  5. On the hard disk screen, click “Existing” to open the Virtual Media Manager.
  6. Click “Add” and locate the extracted VHD file.
  7. Select the new disk image and click “Ok”, “Next” then “Finish”
  8. Start up the VM and press F8 as it boots to get into the Windows startup menu. If you don’t make it here on the first try, just wait for the BSOD then try again.
  9. Start Windows in Safe Mode. It may take a little while for your peripherals to start responding, just be patient.
  10. Ignore any new hardware wizards and open up a command prompt. Run
    sc config Processor start= disabled
    Now reboot.
  11. Again, ignore any new hardware wizards and select Devices -> Install Guest Additions. Follow the installation prompts and reboot.
  12. Once more, ignore the hardware wizards and open a command prompt. The guest additions ISO should still be mounted at D:. Run
    D:\VBoxWindowsAdditions-x86 /extract /D=C:\Drivers
  13. Now go through the new hardware wizards. For the Ethernet controller, point the wizard at C:\Drivers\x86\Network\AMD

That should be it. I’ve tested this using the Windows XP images and all has gone well.

Unfortunately, it looks like Microsoft have used the same disk UUID for each image which means VirtualBox will only allow one image at a time into the Virtual Media Manager. Hopefully this bug will be fixed shortly which should clear things up.

UPDATE

If you see a dialog on startup looking for cmBatt.sys and you don’t have a Windows CD handy, just disable the unknown battery device from Device Manager.

UPDATE 2009-05-21

Looks like the aforementioned UUID bug may be addressed in the next VBox release (2.2.3). All I can say is “thanks VirtualBox team, love your work”.