Use Hyper-V to create a virtual machine (Compact 2013)
9/29/2014
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.
- 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.
- 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.
- 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.
Important
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.
Note
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.
Create a virtual switch or virtual network
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:
- Open Hyper-V Manager.
- In the Actions pane on the right side of the window, select Virtual Switch Manager.
- Select New virtual switch>External> Create Virtual Switch.
- In the Virtual Switch Manager dialog box, under Virtual Switch Properties, give the virtual switch a name, and then add any notes.
- Under Connection type, select a network adapter that is connected to an Ethernet network that has a DHCP server.
- Select Allow management operating system to share this network adapter, and then click OK.
Create a new virtual machine
- Open Hyper-V Manager.
- In the Actions pane on the right side of the window, select New Virtual Machine.
- In the New Virtual Machine Wizard, on the Specify Name and Location page, name your Hyper-V virtual machine.
- On the Assign Memory page, assign 512 MB ram to the new virtual machine.
- Skip the Configure Networking page. You will change these settings later.
- 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).
- Check your selections on the summary page. If you have no changes, select Finish.
Change the settings of the virtual machine
- Open Hyper-V Manager.
- In the Virtual Machines pane in the center of the window, select your new virtual machine.
- Go to Settings>Add Hardware, and then select Legacy Network Adapter.
- Click Add, and then select the virtual switch or virtual network that you created in Create a virtual switch.