May 042014
 
 May 4, 2014  Posted by at 8:56 am Dev Environment, WinRT, WP  Add comments

After deciding on setting up my recording environment for Pluralsight (I’m doing a new course) I realized that I had to somehow make the emulator for Windows Phone work inside the VM. I had not done that in ages but had a vague memory of how to do it, and with some searching I was able to make it work.

Installing and running the Windows Phone emulator inside a Virtual Machine

Installing and running the Windows Phone emulator inside a Virtual Machine

I’ve made a video detailing the steps as I’m sure many other developers are in the same boat, as a matter of fact I had somebody ask me about this on the blog today so the video should come in handy. Let me know what you think!

First step is to install VMWare Player, which is free

Emulator For Windows Phone On Virtual Machine 9

 

Emulator For Windows Phone On Virtual Machine 8

 

Create a virtual machine, set memory to at least 4GB (I had problems with the emulator below that), and processor cores to 2 or above. Set the path to the iso file and enable virtualization.

Emulator For Windows Phone On Virtual Machine 10

Emulator For Windows Phone On Virtual Machine 7

Do not start the VM yet!

Open .vmx file for the VM and add:

Emulator For Windows Phone On Virtual Machine 11

Emulator For Windows Phone On Virtual Machine 6

hypervisor.cpuid.v0 = “FALSE”

Save, start the VM and install Windows

Emulator For Windows Phone On Virtual Machine 4

Emulator For Windows Phone On Virtual Machine 1

Enable Hyper-V under Turn Features On or Off, and restart the VM

Emulator For Windows Phone On Virtual Machine 3

Install Visual Studio and the SDK for Windows Phone and you should be able to now run the emulator

Emulator For Windows Phone On Virtual Machine 5

Emulator For Windows Phone On Virtual Machine 2

  5 Responses to “(Video) Installing and running the Windows Phone emulator in a Virtual Machine”

  1. Hi Iris,

    Brilliant blog post. This is something I’ve been thinking of doing for ages, as I don’t tend to get on with Hyper-V. So I’ll be doing this on my monster PC when I get home. Thanks for blogging this.

    Emyr 🙂

    • Thank you so much for that! Yeah, I can’t believe I waited this long as well. I’m working on some PowerShell scripts for managing the VMs (in contrast to Hyper-V which has a API and a few cmdlets is all we need for most things there isn’t one for VMWare). I’ll post it when its done, and tested 😉

      • Cool, I will watch out for that one. I enjoy reading yoyr blog. Keep up the good work 🙂

  2. Nice trick! I didn’t know it was possible. Hyper-V wants to be the only VM on the host machine, and now it can run inside another VM – that’s great! But is the Phone Emulator slow when it runs like this?

    • I found the VM itself being a tiny bit slower than the host, but I might be missing some drivers on the host machine that is causing problems. The emulator isn’t much slower, and with the improvements in the designer in VS and in Blend, with proper designtime data and unit tests, you shouldn’t have to spin it up too often. Of course that is the dream scenario, but we can dream can’t we 😉

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

What is 10 + 15 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)