Use Hyper-V to create a virtual machine (Compact 2013)


This section walks you through the procedures you need to perform to set up your virtual machine using Client Hyper-V in Windows 8.1 or the Hyper-V role in Windows Server 2008 R2 or Windows Server 2012.

  1. Create a virtual switch. For the exercises in this guide, your virtual test device needs an Ethernet connection to communicate with Platform Builder. You must use Hyper-V Manager to create a virtual switch or virtual network that allows your virtual machines to access your Ethernet network adapter.
  2. Create a new virtual machine. For the exercises in this guide, your virtual machine will use the sample hard disk file hd0_sample.vhd, which was installed along with Windows Embedded Compact 2013.
  3. Change the settings of the virtual machine. After your virtual machine is set up, you need to add a legacy network adapter and connect it to the virtual network or virtual switch that you just created.
If you want to run Client Hyper-V on a computer running Windows 8, the computer must have a 64-bit processor that supports Second Level Address Translation (SLAT). You may also need to change the system BIOS settings to enable virtualization support. For more information, see the Client Hyper-V Survival Guide or see the documentation from your system manufacturer.
Windows 8.1, Windows Server 2008 R2, and Windows Server 2012 have some minor differences in the way Hyper-V creates virtual machines. These differences are noted in the procedure.

In Windows Server 2008 R2, Hyper-V Manager uses the term virtual network, but in both Windows 8.1 and Windows Server 2012, Hyper-V Manager uses the term virtual switch instead. Other than this difference in terminology, the following procedure is the same for all three versions of Hyper-V Manager:

  1. Open Hyper-V Manager.
  2. In the Actions pane on the right side of the window, select Virtual Switch Manager.
  3. Select New virtual switch>External> Create Virtual Switch.
  4. In the Virtual Switch Manager dialog box, under Virtual Switch Properties, give the virtual switch a name, and then add any notes.
  5. Under Connection type, select a network adapter that is connected to an Ethernet network that has a DHCP server.
  6. Select Allow management operating system to share this network adapter, and then click OK.
Create a virtual switch in Hyper-V

  1. Open Hyper-V Manager.
  2. In the Actions pane on the right side of the window, select New Virtual Machine.
  3. In the New Virtual Machine Wizard, on the Specify Name and Location page, name your Hyper-V virtual machine.
  4. On the Assign Memory page, assign 512 MB ram to the new virtual machine.
  5. Skip the Configure Networking page. You will change these settings later.
  6. On the Connect Virtual Hard Disk page, select Use existing virtual hard disk, and then navigate to the hd0_sample.vhd file, located in %_WINCEROOT%\platform\CEPC\vm (where %_WINCEROOT% is the Compact 2013 installation folder).
  7. Check your selections on the summary page. If you have no changes, select Finish.

  1. Open Hyper-V Manager.
  2. In the Virtual Machines pane in the center of the window, select your new virtual machine.
  3. Go to Settings>Add Hardware, and then select Legacy Network Adapter.
  4. Click Add, and then select the virtual switch or virtual network that you created in Create a virtual switch.
Change a virtual machine's settings in Hyper-V