How To Run XP Mode in VirtualBox on Windows 7 (sort of)

A few weeks ago we showed you how to run XP Mode on a Windows 7 computer without Hardware Virtualization using VMware. Some of you have been asking if it can be done in Virtual Box as well. The answer is “Yes!” and here we’ll show you how.

Editor Update: Apparently there isn’t a way to activate XP Mode through VirtualBox using this method. You will however, be able to run it for 30 days. We have a new updated article on how to Install XP Mode with VirtualBox Using the VMLite Plugin.

 

Earlier we showed you how to run XP mode on windows 7 machines without hardware virtualization capability. Since then, a lot of you have been asking to a write up a tutorial about doing the same thing using VirtualBox.  This makes it another great way to run XP Mode if your computer does not have hardware virtualization.  Here we’ll see how to import the XP Mode from Windows 7 Professional, Enterprise, or Ultimate into VirtualBox so you can run XP in it for free.

Note: You need to have Windows 7 Professional or above to use XP Mode in this manner. In our tests we were able to get it to run on Home Premium as well, but you’ll be breaking Windows 7 licensing agreements.

Getting Started

First, download and install XP Mode (link below).  There is no need to download Virtual PC if your computer cannot run it, so just download the XP Mode from the link on the left.

sshot-80

Install XP mode; just follow the default prompts as usual.

sshot-81

Now, download and install VirtualBox 3.1.2 or higher(link below).  Install as normal, and simply follow the default prompts.

sshot-18

VirtualBox may notify you that your network connection will be reset during the installation.  Press Yes to continue.

sshot-48

During the install, you may see several popups asking you if you wish to install device drivers for USB and Network interfaces.  Simply click install, as these are needed for VirtualBox to run correctly.

sshot-55

Setup only took a couple minutes, and doesn’t require a reboot.

sshot-58

Setup XP Mode in VirtualBox:

First we need to copy the default XP Mode so VirtualBox will not affect the original copy.  Browse to C:\Program Files\Windows XP Mode, and copy the file “Windows XP Mode base.vhd”.  Paste it in another folder of your choice, such as your Documents folder.

image

Once you’ve copied the file, right-click on it and click Properties.

image

Uncheck the “Read-only” box in this dialog, and then click Ok.

image

Now, in VirtualBox, click New to create a new virtual machine.

sshot-60

Enter the name of your virtual machine, and make sure the operating system selected is Windows XP.

sshot-61

Choose how much memory you want to allow the virtual machine to use.  VirtualBox’ default is 192 Mb ram, but for better performance you can select 256 or 512Mb.

sshot-62

Now, select the hard drive for the virtual machine.  Select “Use existing hard disk”, then click the folder button to choose the XP Mode virtual drive.

sshot-64

In this window, click Add, and then browse to find the copy of XP Mode you previously made.

sshot-2010-03-03-[21-47-55]

sshot-2010-03-03-[21-50-30]

Make sure the correct virtual drive is selected, then press Select.

sshot-2010-03-03-[21-51-40]

After selecting the VHD your screen should look like the following then click Next.

sshot-2010-03-03-[21-55-03]

Verify the settings you made are correct. If not, you can go back and make any changes. When everything looks correct click Finish.

sshot-68

Setup XP Mode

Now, in VirtualBox, click start to run XP Mode.

sshot-2010-03-03-[21-56-52]

The Windows XP in this virtual drive is not fully setup yet, so you will have to go through the setup process.

sshot-72 

If you didn’t uncheck the “Read-only” box in the VHD properties before, you may see the following error.  If you see it, go back and check the file to makes sure it is not read-only.

sshot-71

When you click in the virtual machine, it will capture your mouse by default.  Simply press the right Ctrl key to release your mouse so you can go back to using Windows 7.  This will only be the case during the setup process; after the Guest Additions are installed, the mouse will seamlessly move between operating systems.

sshot-70

Now, accept the license agreement in XP.

sshot-73 

Choose your correct locale and keyboard settings.

sshot-74

Enter a name for your virtual XP, and an administrative password.

sshot-76

Check the date, time, and time zone settings, and adjust them if they are incorrect.  The time and date are usually correct, but the time zone often has to be corrected.

sshot-77

XP will now automatically finish setting up your virtual machine, and then will automatically reboot.

sshot-2010-03-03-[22-13-05]

After rebooting, select your automatic update settings.

sshot-80

You may see a prompt to check for drivers; simply press cancel, as all the drivers we need will be installed later with the Guest Additions.

sshot-82

Your last settings will be finalized, and finally you will see your XP desktop in VirtualBox.

sshot-83

Please note that XP Mode may not remain activated after importing it into VirtualBox.

sshot-426

When you activate it, use the key that is located at C:\Program Files\Windows XP Mode\key.txt. 

Note: During our tests we weren’t able to get the activation to go through. We are looking into the issue and will have a revised article showing the correct way to get XP Mode in VirutalBox working correctly soon. 

sshot-2010-03-03-[22-19-41] 

Now we have one final thing to install – the VirtualBox Guest Additions.  In the VirtualBox window, click “Devices” and then select “Install Guest Additions”.

sshot-2010-03-03-[22-30-13]

This should automatically launch in XP; if it doesn’t, click Start, then My Computer, and finally double-click on the CD drive which should say VirtualBox Guest Additions.

image

Simply install with the normal presets.

sshot-85

You can select to install an experimental 3D graphics driver if you wish to try to run games in XP in VirtualBox; however, do note that this is not fully supported and is currently a test feature.

sshot-86

You may see a prompt informing you that the drivers have not passed Logo testing; simply press “Continue Anyway” to proceed with the installation.

 image

When installation has completed, you will be required to reboot your virtual machine.

sshot-89

Now, you can move your mouse directly from Windows XP to Windows 7 without pressing Ctrl.

sshot-90

Integrating with Windows 7

Once your virtual machine is rebooted, you can integrate it with your Windows 7 desktop.  In the VirtualBox window, click Machine and then select “Seamless Mode”.

sshot-2010-03-03-[22-51-33] 

In Seamless mode you’ll have the XP Start menu and taskbar sit on top of your Windows 7 Start and Taskbar.

sshot-2010-03-03-[22-49-10]

Here we see XP running on Virtual Box in Seamless Mode. We have the old XP WordPad sitting next to the new Windows 7 version of WordPad.

sshot-2010-03-03-[22-47-22]

Another view of everything running seamlessly together on the same Windows 7 desktop.

sshot-2010-03-03-[22-56-54]

Hover the pointer over the XP taskbar to pull up the Virtual Box menu items.

sshot-2010-03-03-[22-57-38]

You can exit out of Seamless Mode from the VirtualBox menu or using “Ctrl+L”.

sshot-2010-03-03-[22-58-10]

Then you go back to having it run separately on your desktop again.

sshot-2010-03-03-[22-58-46]

Conclusion

Running XP Mode in a Virtual Machine is a great way to experience the feature on computers without Hardware Virtualization capabilities.

If you prefer VMware Player, then you’ll want to check out our articles on how to run XP Mode on Windows 7 machines without Hardware Virtualization, and how to create an XP Mode for Windows 7 Home Premium and Vista.

Download VirtualBox

Download XP Mode

Matthew digs up tasty bytes about Windows, Virtualization, and the cloud, and serves them up for all to enjoy!