Click here to Skip to main content
15,881,173 members
Articles / Mobile Apps

Creating a Virtual Windows Phone 8 Development Environment

Rate me:
Please Sign up or sign in to vote.
4.76/5 (10 votes)
6 May 2013CPOL2 min read 41.1K   24   14
Setting up a Windows Phone 8 Virtual Development Environment

Introduction

Like me, many developers didn't want to switch Operating Systems to develop for Windows 8 and Windows Phone 8 (WP8). After following the instructions in this tip, if you are one of these developers, you will be able to start developing for WP8 while keeping whatever Operating System you currently have.

Requirements

In plain English, your computer just needs two things. First, your computer must have Hyper-V or any virtual machine you try to setup will not work, also your Windows phone emulator will not function even if you were just setting up Windows 8 without doing it in a VM. The second requirement is that you must have a 64 bit computer. There may be other things you need, but for the most part, if you didn't have these, you would be dead in the water.

Gather the Following

The following items will be needed to start setting up this development environment:

Setting Up the Environment

Step 1: Start by installing your VMware Player.

Step 2: Once that is setup, locate your Windows 8 x64 Image (.iso). With your VMware player, create a Virtual Machine with that Windows 8 Image.

Step 3: In Notepad, open C:\Users\{YOUR USERNAME}\Documents\Virtual Machines\{VM NAME}\{VM NAME}.vmx.

Once that file is opened, append the following items:

hypervisor.cpuid.v0 = "FALSE" 
mce.enable = "TRUE" 

 

 Note:  These options that you provide tell your VMware configuration not to report to the Hyper-V that it's running in a virtual machine. Hyper-V checks if it's running in a virtual machine, and after this check if it is running in a virtual machine Hyper-V will not work. Since the emulator uses Hyper-V it would not work without these options configured.   

 

 

 

 

 

 

Step 4: Install Visual Studio 2012.

Step 5: Install the Windows Phone 8 SDK. 

Since we did Step 3, we should be able to run this development environment as a virtual machine in VMware.

Conclusion

This installation is pretty straight forward as long as you remember to do Step 3.
I didn't pollute the tutorial with too many details since I have a technical audience here, and as a result made it more straight forward.

License

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


Written By
Software Developer
United States United States
I am a professional software and web developer. I have developed many different websites, and software systems. I enjoy working with the newest technologies, as long as it doesn't cripple the backwards compatibility of my clients'.

Comments and Discussions

 
QuestionDoes this work on VMWare Fusion 6? Pin
Member 1081835221-May-14 1:59
Member 1081835221-May-14 1:59 
GeneralThank you a million thanks! Pin
K O'Hara29-Apr-14 18:27
K O'Hara29-Apr-14 18:27 
QuestionDoes this work on VirtualBox? Pin
Member 938672913-Nov-13 11:38
Member 938672913-Nov-13 11:38 
AnswerRe: Does this work on VirtualBox? Pin
midix28-Feb-14 2:36
midix28-Feb-14 2:36 
GeneralMy vote of 5 Pin
Ștefan-Mihai MOGA13-Jun-13 20:50
professionalȘtefan-Mihai MOGA13-Jun-13 20:50 
GeneralMy vote of 5 Pin
Abhishek Nandy10-Jun-13 9:07
professionalAbhishek Nandy10-Jun-13 9:07 
GeneralRe: My vote of 5 Pin
Dylan Roy12-Jun-13 3:51
professionalDylan Roy12-Jun-13 3:51 
QuestionThank you! Pin
KansasCoder15-May-13 1:43
KansasCoder15-May-13 1:43 
AnswerRe: Thank you! Pin
Dylan Roy16-May-13 6:06
professionalDylan Roy16-May-13 6:06 
GeneralRe: Thank you! Pin
KansasCoder31-May-13 15:04
KansasCoder31-May-13 15:04 
QuestionThis will work same in 32 Bit OS Pin
Kiran Bandaru8-May-13 21:01
professionalKiran Bandaru8-May-13 21:01 
AnswerRe: This will work same in 32 Bit OS Pin
Dylan Roy9-May-13 6:27
professionalDylan Roy9-May-13 6:27 
QuestionExplain Step 3 Pin
JP van Mackelenbergh5-May-13 19:11
JP van Mackelenbergh5-May-13 19:11 
AnswerRe: Explain Step 3 Pin
Dylan Roy6-May-13 0:42
professionalDylan Roy6-May-13 0:42 

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.