At some point with every new project, we have to do multiple browser testing to check for compatibility. The major browser types are usually covered by the team, and we all usually have at least Firefox, Chrome, and one flavor of IE (IE7 or IE8 w/ some having IE9 access at home or via an external VM). What we don’t always have are reliable IE6 installs to test with. Microsoft makes Virtual PC (.vhd) images available for free that expire every quarter (You can find them here). They also make Virtual PC 2007 available as a free download, which works great for XP users. They have their XP mode for those of us that run Windows 7 pro or ultimate, but for those of us who have a lower version of Windows (Windows 7 Home Premium and below), at first glance it would appear that we are out of luck.

VirtualBox is a free virtualization tool built by the folks at Oracle. You can setup a virtual machine in it just like you can in Virtual PC 2007, and they both support the VHD file type, which you will need to convert to a VDI file if you want to load more than one of the free images from MS because of some ID in the file that VirtualBox checks. That article is written for a Linux system, but if you get the windows binary for qemu, it should work fine. For the purposes of this article, I am going to assume you either didn’t need to run more than 1 image (like me), or you already can figure that part out for yourself.

The kicker to this whole thing is that you can just use the VHD image and all seems to work until you boot up. You get the annoying message from MS saying you need to validate your copy of Windows within 3 days or the men in black suits will come beating down your door. The best part of this is that if you reboot, you can’t get past this step so you have to do this all at once without rebooting! Windows sees that it was unable to activate and thus prevents you from installing network drivers. Awesome… I need to install my network drivers so I can activate windows, but I need to activate windows before installing the network drivers. Most people (as was I) are thinking “You just have to install the guest operating system tools to get the network drivers,” but that did not work for me. I also did the handy little trick to extract the drivers from the guest tools by running their something-x86.exe /extract /D=C:Drivers (I tried so many times that I memorized everything but the exe itself since you can tab correct that). The drivers simply are not included no matter what article one might read about  them being moved into an exe archive so as to save space in the ISO image, which makes no sense anyway since the exe is in the ISO anyway.

Long story short (still long), the only way to get the network card working is to install the drivers, but the only way to get the drivers on the virtual box is to put them on an ISO image so you can mount that via VirtualBox. Here are the XP Drivers for the AMD NIC that were missing from the guest OS tools ISO image included with VirtualBox.

  1. Boot the VHD image for the first time
  2. Cancel all prompts to activate and install new hardware
  3. Mount this ISO image via VirtualBox’s device dropdown
  4. Update the drivers from within the Device Manager for the Ethernet Adapter
  5. Activate your free XP IE6/7/8 testing image
  6. Repeat this next quarter (half the reason I wrote this article)

I hope this helps someone and saves them the hassle of trying 1000 times to find the NIC drivers before doing it themselves. I know this will become my new reference every quarter when my VPC image expires!

5 thoughts on “Using VirtualBox to run the Microsoft Virtual PC test images

  1. Awesome! Glad I could help! I think you just inspired me to not be so lazy with my posts lol

    Now I know I reached someone and actually helped, and that gives me motivation. Thanks for your comment!

  2. I wish I’d seen this earlier. Here are my notes for doing the same thing — I took a slightly different tack:

    Virtual Box notes:

    http://www.geekpowers.com/?p=121 was source of amd nic drivers. Got the intel pro ones from CNET downloads. stored both in VMShare shared folder on Win2 desktop

    Source for VHD’s which expire quarterly is http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=11575

    When it’s time to do a new one:
    1. Download new vhd
    2. Execute it into a subdirectory
    3. Open Virtual Box, click new
    4. Tell it to create it from an existing hard disk and point it to your vhd
    5. Under network settings, tell it to use the Intel Pro 1000 T server
    6. Under Shared settings, tell it to share the VMShare folder on the desktop
    7. run new vm, log in with Password1
    8. Cancel all the add new hardware requests
    9. cave and do the robot registration via telephone – it just saves hassle and it works fine.
    10. click on devices, add guest tools
    11. when tools are installed and you come back up, go to my computer, vmshare network folder, and execute PROWinXP_32_v17.0.exe. That will give you internet connectivity
    12. be happy, you can now use IE6

    To create the IE 7 version,
    1. clone the IE 6 one in virtual box
    2. Log in, install IE7 using the shortcut provided on the desktop

Leave a Reply

Your email address will not be published. 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>