Click here to Skip to main content
15,921,716 members
Articles / Windows Phone 8

Running Windows Phone 8 Emulator within VMware Virtual Machine

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
9 Nov 2013CPOL1 min read 27.7K   4   2
Running Windows Phone 8 Emulator within VMware Virtual Machine

Introduction

My development environment is now fully virtualized, and this caused a problem when I tried to do to some Windows Phone 8. Realistically I try to avoid running a virtual machine from within another virtual machine but this is not always an option. For Windows Phone 8 development, the phone emulator that can be used for development runs on Hyper-V within Windows 8 Pro.

My Environment

  • VMware Workstation 9
  • Host Operating System: Windows 8 Pro
  • Guest Operating System: Windows 8 Pro
  • Visual Studio 2012

The first time I tried to start up the phone emulator, I got a wonderfully vague error message:

"The windows phone emulator wasn’t able to create the virtual machine: generic failure"

I suspected this was because of me trying to launch a virtual machine from within another virtual machine, so I researched it and found a manual work around for vmware workstation. Simply appending the following line to the *.vmx file for my virtual machine fixed my problem:

hypervisor.cpuid.v0 = "TRUE"

After making this change, I was able to successfully start the phone emulator via Visual Studio 2012 without any issues.

emulatorscreen

If you want to read more about this, I suggest checking out the blog posts that I list under References. All contain good information to give you a better understanding of what’s going on and why.

References

This article was originally posted at http://www.scrider.com/2013/06/301

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionFALSE or TRUE? Pin
midix28-Feb-14 2:05
midix28-Feb-14 2:05 
AnswerRe: FALSE or TRUE? Pin
JasonBSteele28-Apr-14 22:43
JasonBSteele28-Apr-14 22:43 
I agree, the author appears to have this setting incorrectly set to TRUE. I can confirm that FALSE works and is necessary.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.