Windows 7 XP Mode: the complete guide

11th Jan 2010 | 12:20

Windows 7 XP Mode: the complete guide

How Windows XP lives on in Windows 7 using virtualisation

Windows XP Mode in Windows 7

Windows 7 includes XP Mode. XP Mode is a virtualisation of XP - what you get is a copy of Virtual PC, so you can run it as a completely separate OS. XP lives all nice and safe on your Windows 7 set-up without all the hassle of a multi-boot system.

As well as XP you can install any other PC-compatible OS you like, too. But the big new feature from the marketing angle, and the main reason for its inclusion into Windows 7, is the ability to run XP software that would otherwise throw a fit.

The cynic may sneer that this is a neat way of side-stepping the issue that what was previously Windows-compatible software isn't, and that it is an admission that a real problem exists. That's what a cynic might say.

Vista never really set the corporate market ablaze. Having incompatible apps makes you think twice, even if you do get transparent effects. Hence, XP soldiered on and there are a lot of potential upgrade sales out there. Windows 7 now clears this hurdle.

It's not an ideal solution, providing full XP-compatible support would have been ideal, but this works, and you get all the joy of running multiple virtual operating systems thrown in.

Hang on, though, XP Mode is not a standard part of Windows 7. It's available only for Windows 7 Professional, Enterprise and Ultimate editions. If you want it you'll need to splash out a little more than your Home Premium Edition. So, what exactly can it do and is it worth it?

We spell it with a zed

In a nutshell a virtual system is one which runs inside another operating system in its own little playpen, it can't get out and smear jam on things. Your primary OS is safe from interference and your virtual one operates as if it was the primary one, or at least thinks that it is.

Two xp

Think of that fine and versatile actor Keanu Reeves who starred in the wonderfully scripted film The Matrix. He starts in a bed of goo living out a virtual life unaware of his actual circumstances. Your virtual OS has no idea it exists on a virtual system hosted by Windows 7. How sad.

Virtualisation works by divorcing the software from the hardware completely, encapsulating your hosted OS within a layer of software (the hypervisor) that handles all the calls to and from the hardware. It creates virtual drives, networks and the rest.

When your virtualised OS accesses the hardware the requests are intercepted and either re-routed invisibly to real hardware or emulated completely in software. Your entire virtual system lives inside one fat file on your hard drive, which the hosted OS thinks is its very own physical hard drive. How sad (again).

Okay, so running an OS inside an OS is fairly neat. What is significant is that since you now have it all wrapped up you can control where it thinks it is, specifically you can present it with any hardware it may want, whether or not the hardware actually exists or not. Hence completely incompatible combinations of software and hardware are possible, Mac on PCs or worse.

There is nothing new here of course, people started mucking about with the concept yonks ago and the delightfully clumsy word virtualisation, with a 'z', was coined at IBM in the 60s, back when computers needed separate rooms.

The technology started life in the world of servers. Here machines are often woefully under utilised, with powerful processors spending a lot of time idling and doing the crossword. Start a few virtual machines and you make better use of your hardware.

One set of hardware can effectively run half a dozen separate servers. Once you've created your virtual machines it becomes easy to move an entire server to another machine too. Just grab the virtual hard drive and shift it across, and bingo. It makes it easy to balance out the load across your kit.

Multiple OSes

Of more interest to us is the ability to host different operating systems on the same hardware, giving you two or more systems in one. Running games consoles on a PC used to be a popular target, but seems to have gone out of fashion now.

Software developers love it too, you can test an OS or application to destruction painlessly. The number of virtual machines you can run is simply limited by processor and drive capacity and not much else. You could create a machine with every version of Windows on it or something equally disturbing. Of course you'll need an OS for each virtual machine, which soon makes multiple Windows ones significantly less attractive.

There is always Linux of course, that's free. Running it on a virtual machine saves you the horror of destroying your Master Boot Record as you partition your drive after inadequate back-up procedures (you know who you are).

How XP Mode works

XP Mode runs using Microsoft Virtual PC. This is based on Connectix's Virtual PC, primarily used to get Mac and PCs to run together. Microsoft either liked it, or didn't like it (it is hard to tell with Microsoft), and subsequently bought it in 2006 and released the software for free (now there is a business model).

Microsoft then polished the code and released it as Virtual PC 2007, which runs on Vista and XP given the right hardware and patches. Further polishing followed and we arrive at Microsoft Virtual PC that is to be bundled with Windows along with a suitable copy of XP to run with it.

Virtualisation is to step into the mainstream market. Right, so what's the big deal this time then? Virtualisation is nothing new and Virtual PC has been sitting on Microsoft's servers as a free download for ages. It's bundling XP Mode into Windows 7, but the way the two applications have been integrated together is a new thing.

There are two parts to XP Mode. Alongside Virtual PC we have the more substantial XP part, this is essentially a copy of Windows XP tailored for Virtual PC and with the appropriate licensing, so we can get two Windows for the price of one.

Your virtual XP is not completely closed off from Windows 7, however. Some effort has been made to marry the two operating systems. XP Mode has direct access to the range of Known Folders (My Documents, My Pictures and so forth), and you can cut and paste between XP and Win7 and share data. You can even launch your XP Mode apps directly from a shortcut on your Win7 Desktop.

The extent of the Direct hardware access also includes USB support and printer redirection – or rather that's the feature list on paper anyway. Not all of the features worked quite as seamlessly as Microsoft's instructions promised it would when we tried it.

Getting it up and running is easy-peasy and when you switch to full screen XP Mode only the little toolbar at the top reminds you that it isn't an XP machine. It's rather impressive to sit and watch Office install itself onto what it thinks is the root of your C drive and run perfectly.

Office

Pop back to your Window 7's Start menu and there are your XP Mode applications, ready to launch directly from outside your virtual system. No drag and drop of documents though, that's asking a bit too much perhaps. Although it would be really great feature for the next update (hint, hint).

Starting a virtual machine for another operating system is equally painless. Click on 'Create Virtual Machine', define the amount of RAM you would like to give it and create a virtual hard drive, the dynamic expanding type is best.

Once created you've a virtual hard drive file that you can copy to another system and open there. Your virtual OS is also wonderfully portable. You can transfer a full PC OS installation, complete with applications, settings and documents, from one system to another and it'll run. Try doing that that without using virtualisation and see how that goes!

Beyond the theory

We tried installing a full version of XP Professional from a disc as a new virtual machine. All proceeded as advertised, with just a slight moment of panic when it started formatting the hard drive, until we remembered that in virtual land it doesn't have direct access to the physical drive.

Running the integration utility to link the two together to share data unfortunately proved less successful, and locked our new XP installation into 4-bit graphics, ouch. We're not sure what happened there. If it's a bug we hope it gets fixed.

Having been mightily impressed with XP Mode during testing, like the fools we are, we tried running some games. No, no, no. We can report that Hearts and Pinball work. Nearly everything else fell over, crashed or refused to install at all. 3D games are out.

We dug through the box of old games and tried Civilisation III, which installed happily and then refused to recognise the CD as the original, the game's code defeating the virtualisation's redirection somehow.

Back in time again to Microsoft Combat Flight Simulator, which runs! And at a respectable speed on our system too. To be fair running games was never within the remit of Virtual XP. The only possible games it'll cope with are blasts from the past and even then the results are mixed.

So what's the point? Ah, well corporate types will be pleased that they can keep Win7 incompatible software in action, even if they decide to switch to the new OS. If you've a special bit of software you can't upgrade and simply can't live without then this is a good a solution as any.

The uses for software development are obvious. The rest of us might wonder what to do with this undoubtedly remarkable bit of programming.

Well, you could run a virtual session and install all sorts of weird and wonderful software onto your virtual version of XP that you know will make a dog's dinner of your nice clean Windows installation. This keeps your main installation nice and uncluttered.

You could create an XP version with every codec and media player on it, something which can easily become a right mess, and use this as a media player. Or, use it as a test-bed for suspect software. Want to see exactly what will go where and do what? Run it on your virtual system and see. No worries if it all goes horribly wrong and digs nasty hooks into your Windows directory. It's all virtual and if it comes to it you can just delete the whole thing and start again, no harm done.

Windows media player

Okay, we are grasping at straws a little here. Whether or not it is worth going for the Professional or Ultimate Editions of Windows 7 just for XP Mode is debatable.

Virtual PC is a free download and there are plenty of alternatives; realistically it's just the licensed copy of XP and the ready made integration that you are paying for. If you've an old copy of XP knocking around then you are in business anyway.

Virtualisation. Simple

What it may well do is get more people playing with virtual systems. Running Linux, BeOS or suchlike stops being such a frightening prospect, if you can experiment in a safe room.

Microsoft has made something potentially very complicated, easy and quick and given it to a lot of people; something it is rather good at.

Going for the full XP Mode remains a questionable choice for the average home user. Microsoft Virtual PC is a hoot, though.

-------------------------------------------------------------------------------------------------------

First published in PCFormat Issue 234

Liked this? Then check out 62 Windows 7 tips, tricks and secrets

Sign up for TechRadar's free Weird Week in Tech newsletter
Get the oddest tech stories of the week, plus the most popular news and reviews delivered straight to your inbox. Sign up at http://www.techradar.com/register

Follow TechRadar on Twitter

tutorial Windows 7 Windows XP TRBCExtra
Share this Article
Google+

Most Popular

Edition: UK
TopView classic version