How do I install and use Windows Virtual PC in Windows 8?

Windows Virtual PC has been phased out in Windows 8, and has been replaced with the more full-featured Hyper-V.

Additionally "XP Mode" is no longer available and, if needed, you'll have to install an actual previous copy of XP with a license that you already own, as the XP Mode license was granted only to users of Windows 7 specifically (more info here and within How to retrieve data from a Windows XP Mode virtual machine on Windows 8).

Hyper-V has a ton more features than Windows Virtual PC and has much higher performance, being a bare-metal hypervisor. It's what has come with various server versions of Windows since 2008. For more details on its features I suggest reading this blog post from the Windows Blogs.

Note, however, that to use Hyper-V, you need to be running a 64-bit version of Windows 8 Pro or Enterprise, and your processor needs to support a feature called SLAT (Second-Level Address Translation). Both Intel and AMD have supported this feature on most of their processors since 2007-2008.

To enable Windows Hyper-V

  1. Select Start (or press Win key) and type in "Programs and Features"

    Win 8 UI app selection

  2. Click on "Turn Windows features on or off"

    Where or Where is my Windows features?

  3. Select "Hyper-V" from the features. (Make sure that all sub boxes are checked as well)

    Hyper-V to the rescue!

After installation you'll have to restart the computer but then you'll have access to both Hyper-V Manager and Hyper-V Virtual Machine Connection. Manager is used to create/maintain the virtual environment. The Machine Connection is the same concept as RDP only it's tailored specific to the Virtual Machines

How Do I setup a Virtual Machine with Hyper-V?

When you open Hyper-V Manager you'll be presented with the following screen:

Hyper-V Main UI

Note: you'll see that I've already created a VM for Ubuntu. To create a new VM, simply select New --> Virtual Machine:

It's so easy my unborn child could do it

Follow the wizard which should be the following steps:

  1. Enter a Name for the VM & set location of the VM
  2. Assign Amounts of Memory
  3. Configure Networking
  4. Create or connecting to a virtual Disk
  5. Setup any startup disks to emulate (For OS installation)

After that you should have access to your VM.

Taking Snapshots

Snapshots is an awesome feature that Hyper-V comes with. It basically takes an entire snapshot of the Virtual Machine (even while it's still running!!!!) To do this you:

  1. Right Click on the VM and select "Snapshot"

    Righty Clicky

  2. That's it! You can then connect to that snapshot as if it's its own running VM (because it is).

    Heres..... Snapshot!!!!

This is great to testing/development and you realize that you've crashed something major. The idea is to take the snapshot, make changes to it until its stable, and then "Apply" those change back to the original VM. You do this by Right Clicking on the Snapshot and selecting "Apply":

Apply that....