Fast XP on a VPC
I use Virtual PCs a lot. In general, I create a single slimmed down base image of an operating system, mark it read only and create differencing disks off that image to test software. There are a lot of partial guides out there to creating a speedy slimmed down base image and several more for simply speeding up XP but nothing all together. Thus I present, a near-as-dammit guide to really slimming down and speeding up your VPC.
- As a Word 2003 doc file [/file.axd?file=xp_vpc.doc] * As a Word 2007 docx file [/file.axd?file=xp_vpc.docx] * As a PDF [/file.axd?file=xp_vpc.pdf]
Full credit to the following sites and people who originally wrote helped me write pieces of this.
- Scott Hanselman [http://www.hanselman.com/blog/VMPerformanceChecklistBeforeYouComplainThatYourVirtualMachineIsSlow.aspx] * Jeff Atwood [http://www.codinghorror.com/blog/archives/000639.html] * Pete LePage [http://blogs.msdn.com/petel/archive/2007/04/05/compacting-xp-vpc-images.aspx] * musicxp.com [http://www.musicxp.net/tuning_tips.php] * blackviper.com [http://www.blackviper.com/WinXP/servicecfg.htm] * Andrew Connell [http://www.andrewconnell.com/blog/articles/SqeezePerformanceOutOfVirtualPCs.aspx] * microsoft.public.virtualpc newsgroup [http://groups.google.com/group/microsoft.public.virtualpc]
A couple of notes also in the guide but worth mentioning explicitly here for 64bit users.
- The 64 bit version of Virtual PC 2007 is not a pure 64bit application so it installs in c:Files (x86) rather than c:Files. DO double check you have downloaded VPC2007 64bit but don’t panic when the installer puts it in the ‘wrong place’ for 64bit apps. * There is no 64bit version of Invirtus’ VM optimizer [http://www.invirtus.com/content/view/16/387/] yet. You could run it from a 32bit VPC of course, but that’s getting a bit perverse. * There seems to be an issue in some BIOSes (BIOSii?) where hardware virtualization becomes disabled when Vista reawakens from sleep even if the BIOS has it enabled. This thread [http://groups.google.com/group/microsoft.public.virtualpc/browse_thread/thread/332fa4aecfdaf3e7/8e78fdf35dffad14] mentions it in relation to a HPbox, but not the motherboard type. I’ve got an Abit FP-IN9 with BIOS rev14 installed and experience the same problem, so it might just be Abit, might not. Let me know if you have this problem as well.
One other note on using differencing disks off a base image. Always remember what’s on the base image. Or rather what isn’t. Case in point, the MbUnit [http://www.mbunit.com] team is preparing to release v2.4.1 so I’m testing the installer, uninstaller and the new start menu entries. And the GUI just crashes whenever I try to run it with a not very helpful error. It takes two hours to realize its because I haven’t installed .NET onto the test virtual PC yet. Doh! Am muppet, but not quite as literally as this .