×
Namespaces

Variants
Actions

Talk:Windows Phone 8 SDK on a Virtual Machine with Working Emulator

From Nokia Developer Wiki
Jump to: navigation, search

Contents

Kiran10182 - Hyper-V reference

Hi João,

First of all, thanks for the comprehensive article. :)

I sub-edited the article and made few minor changes. I tried to reference Hyper-V to the Wikipedia article. If you have some better(concise and precise) reference for it then please edit the article and update my relevant edits.

Also, the article talks about Windows 8 Pro version for the Windows Phone 8 SDK installation as a prerequisite. Can you edit it so that it gives developers some idea about which version is suitable for Windows Phone 8 SDK depending on their needs? My understanding is that, you may need Pro version only when you want an emulator support, otherwise basic version will do the job fine.

Thanks again.

kiran10182 14:38, 4 November 2012 (EET)

Joaocardoso - About Windows 8 Pro

Hi Kiran,

I didnt mentioned the non-pro version because this articles was focused on having the emulator running in a VM. But I do see the merits of at least mentioning it, so I will.  :)

Thanks for your comments and you edit.

joaocardoso 14:43, 4 November 2012 (EET)

Caio Proiete - Nice!

Great post João!!

Thanks for sharing.

Caio Proiete 04:31, 5 November 2012 (EET)

Joaocardoso - @Caio

Thanks,

Nice to see you around :)

joaocardoso 12:18, 5 November 2012 (EET)

Kiran10182 - Re: About Windows 8 Pro

Hi João,

Thanks for clarifying the need for Windows 8 Pro edition w.r.t emulator support. :)

Cheers.

kiran10182 09:50, 6 November 2012 (EET)

Hamishwillee - Excellent article - subedited

Hi Joao

This is excellent. I like the way you've introduced this and the methodical and structured approach. I have subedited the introduction to make it a little more concise. There are a few other very minor subedit changes - but please check them out and confirm that you're happy.

Only "technical" check, according to instructions here "Hyper-V on Windows 8 requires that your BIOS supports Hardware-assisted virtualisation, Second Level Address Translation (SLAT), and Hardware-based Data Execution Prevention (DEP)". You only cover "SLAT" - is that an omission, or does the VM cover some of these for you? Might be worth linking to that article too.

As this is your first wiki article with pictures, a few more notes just FYI:

  • Its best to use more descriptive names that Picturexxxx.jpg - in future articles add a namespace like "WP8SDKonW8VM_Pic1".
  • For readability, often better to hide the links using link text rather than saying "get something from here: http://linkURL/". Exception is if you think people might be reading from PDF print and manually typing in links
  • Often, but perhaps not in this case, it is useful to have a frame around images and some image text. You can do this using the "frame" parameter - see Help:Images

Thank you!

regards

Hamish

hamishwillee 05:35, 8 November 2012 (EET)

Joaocardoso - @hamish - Thanks!!!

Thanks a lot for your input and thanks for the edits. I'll look into that technical aspect of Hyper-V just to make sure I'm not missing anything. I'm also going to add the steps for Mac Users (I don't have any want to make the screenshots but there are some references on how to do it, so I'll link to it)

I'm writing another article and I'm finding it much harder than I first though :) And that's a good thing. I'm appreciating much more the effort of everyone that contributes to the wiki :) and everyone that reviews articles. And at the same time I'm learning new stuff because when writing we need to double check, cross-check and test. Not only that we need to understand why something works or not. Really cool if you ask me :)

Cheers

joaocardoso 12:33, 8 November 2012 (EET)

Adi.Stoicuta - I'm lucky :)

I have this proc:

===============

Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz Intel64 Family 6 Model 42 Stepping 7, GenuineIntel HTT * Hyperthreading enabled HYPERVISOR - Hypervisor is present VMX * Supports Intel hardware-assisted virtualization SVM - Supports AMD hardware-assisted virtualization EM64T * Supports 64-bit mode

===============

apparently without SLAT. And WP emulator is working !

Host: W7 Pro 64 bit / 8 GB RAM Guest: W8 Enterprise Evaluation / 4 GB RAM

BTW, thank you for this awesome tutorial :)

Adi.Stoicuta 16:54, 9 November 2012 (EET)

Joaocardoso - Adi.Stoicuta

Did you run Coreinfo with or without -v?

You need to run it like this:
coreinfo -V

The output you get is different if you run it without the -V.

Without -V on mine:

Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
HTT * Hyperthreading enabled
HYPERVISOR - Hypervisor is present
VMX * Supports Intel hardware-assisted virtualization
SVM - Supports AMD hardware-assisted virtualization
EM64T * Supports 64-bit mode

With -V:
Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
Intel64 Family 6 Model 42 Stepping 7, GenuineInte
l HYPERVISOR - Hypervisor is present
VMX * Supports Intel hardware-assisted virtualization
EPT * Supports Intel extended page tables (SLAT)


The flag you must look for is the one that has EPT, not SVM.

joaocardoso 19:00, 9 November 2012 (EET)

Adi.Stoicuta -

OK, I run now with -v and is like yours. Maybe some correction in article, because in text is coreinfo.exe – (only dash, without v)

and in output, beellow C:\Tools>Coreinfo.exe -v

and i do'nt read first line in output :)

Adi.Stoicuta 19:24, 9 November 2012 (EET)

Joaocardoso - Adi.Stoicuta - Thanks!

Corrected the typo.

If you find an error on a Wiki article, please feel free to correct it. This is a WIKI not a blog, so editing each others articles to improve it its very well accepted and welcomed :)

Cheers

joaocardoso 19:35, 9 November 2012 (EET)

Hamishwillee - Really cool if you ask me :)

Me too. Quality costs time :-)

hamishwillee 06:49, 13 November 2012 (EET)

Paraswadehra - WP7.5 emulator

I've already had the WP8 emulator working in my VM, but the WP7.5 emulator does not work - is there a way to get that working with VS 2012 and WP8 SDK in a VM environment?

paraswadehra 20:24, 14 November 2012 (EET)

Adi.Stoicuta - Not covering ?

But WP8 emulator is not covering WP7.X also ?

Adi.Stoicuta 20:36, 14 November 2012 (EET)

Paraswadehra - WP7.x emulator

No, the WP8 emulator does not cover WP7.x app scenario.

paraswadehra 20:51, 14 November 2012 (EET)

Joaocardoso -

Whan you create an app on Windows Phone 8 SDK and target it to Windows Phone 7.1, it will use Windows Phone 8 Emulator to run the Windows Phone 7.1 app. If you want to run a 7.1 app on a 7.1 emulator, you need to use VS2010 + Windows Phone 7.1.1 SDK.

joaocardoso 14:46, 20 November 2012 (EET)

Cadlg - How about using other VMWare product or version ?

I use VMWare Server 2 a lot, but installing Workstation 9 forces the uninstallation of VMWare Server, so my questions are: Is it really necessary to use VMWare workstation 9, or can I use VMWare Server ? If Workstation is necessary: I have a Workstation 8 commercial license, Can I use that version, or is version 9 mandatory ?

I know I can try and test, but it will take valuable time, which maybe I can save if you (or anyone else) know the answer.

Thanks, very good article.

-CADLG

cadlg 19:10, 26 November 2012 (EET)

Ckruhs -

Great article! Saved me a lot of time :-)

ckruhs

ckruhs 20:59, 26 November 2012 (EET)

InPulseWorks - VMWare Player 5.0.1 build-894247

I managed to get the emulator working with VMWare Player 5.0.1 build-894247. The trick was to set manually numvcpus = "2" (this option is not available on vmware player config ui).

inPulseWorks 11:56, 18 December 2012 (EET)

Adi.Stoicuta - Congratulation for prize

From de second 1 when I reed the title, I say "This is a Lumia 920 winner" :))

Adi.Stoicuta 08:12, 8 January 2013 (EET)

Bahaa1985 - Bahaa

My PC Rams are 3 giga bytes, will it work even slowley?

bahaa1985 18:11, 12 January 2013 (EET)

Maxim.denisov@nokia.com -

Excellent! I have managed installation of Windows phone 8 sdk on Macbook pro on OS Mountain lion with bootcamp with windows 7. I used 2 gb of 4 gb for Virtual drive for windows 8. Now I have Macbook with OS Mounatin lion + bootcamp Windows 7 with Windows * on virtual machine and Windows phone 8 Sdk with working emulator on it.

Windows phone 8 emulator works fine.

Thank you!

maxim.denisov@nokia.com 13:42, 17 January 2013 (EET)

Pierreg -

Excellent step by step tutorial :)

I have a working windows phone 8 emulator running on windows 8 pro 64bits guest in Vmware Player 5 under a Linux 64bits host. One thing is missing: internet connection in the phone emulator.

The win8 guest has internet, but the phone is unable to access it. I have a network adaptor: vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch) but no connection

Any suggestion ?

pierreg 12:13, 2 February 2013 (EET)

Joaocardoso - Hi Pierreg

I never tested this on a Linux host machine. I do use Linux frequently but never installed VMware on it or ran Windows 8 as a guest operating system.

The fact that you have internet on Windows 8 is good news. Can you get me the full configuration you have for the HYPER-V entry for Windows Phone emulator on your windows 8 machine? Did you made any changed to the default setup? Also did you installed the most recent VMWare tools on the Guess OS?

Cheers

joaocardoso 02:30, 4 February 2013 (EET)

Joaocardoso - @Pierreg

As a followup on this please make sure you have DHCP enabled on the network your VM connects to. The reason for this is that the WP8 emulator requires that you have DHCP for the network.

More on this here: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681694(v=vs.105).aspx

Specially this section:


Cannot connect to network destinations when network settings require manual configuration ________________________________________ To connect to network destinations from the emulator, your network must meet the following requirements: • DHCP. The emulator requires DHCP because it configures itself as a separate device on the network with its own IP address. • Automatically configured DNS and gateway settings. It’s not possible to configure DNS and gateway settings manually for the emulator.

If your network requires manually configured settings, check with your IT administrator to determine how you can enable network connectivity for the emulator.

joaocardoso 18:02, 6 February 2013 (EET)

Pierreg -

Hi,


With the same previous configuration, I have 3 icons in the "Network connections" dialog box:

  • Ethernet
  • "vEthernet (Intel(R) 82574L Gigabit Network Connection Virtual Switch)"
  • "vEthernet (Windows Phone Emulator Internal Switch)"

In the host, from vmware options, I set my network adapter as Bridged.

In a cmd terminal, I enter those commands

   C:\Users\pierre>ipconfig /release
    
   Windows IP Configuration
    
    
   Ethernet adapter vEthernet (Windows Phone Emulator Internal Switch):
    
      Connection-specific DNS Suffix  . :
      Link-local IPv6 Address . . . . . : fe80::58b6:df18:aa0a:9f80%24
      Autoconfiguration IPv4 Address. . : 169.254.159.128
      Subnet Mask . . . . . . . . . . . : 255.255.0.0
      Default Gateway . . . . . . . . . : 192.168.9.2
    
   Ethernet adapter vEthernet (Intel(R) 82574L Gigabit Network Connection Virtual S
   witch):
    
      Connection-specific DNS Suffix  . :
      Link-local IPv6 Address . . . . . : fe80::1c24:833f:283e:99c6%22
      Default Gateway . . . . . . . . . :
    
   Tunnel adapter isatap.{816188D2-DDF0-47C3-B186-B9B9F4EF9DDD}:
    
      Media State . . . . . . . . . . . : Media disconnected
      Connection-specific DNS Suffix  . :
    
   Tunnel adapter Teredo Tunneling Pseudo-Interface:
    
      Media State . . . . . . . . . . . : Media disconnected
      Connection-specific DNS Suffix  . :
    
   Tunnel adapter isatap.{95BFC5B3-D6F1-4E31-A6B7-2FCC6301784F}:
    
      Media State . . . . . . . . . . . : Media disconnected
      Connection-specific DNS Suffix  . :
    
   C:\Users\pierre>ipconfig /renew "vEthernet (Intel(R) 82574L Gigabit Network Connection Virtual Switch)"
    
   Windows IP Configuration
    
    
   Ethernet adapter vEthernet (Windows Phone Emulator Internal Switch):
    
      Connection-specific DNS Suffix  . :
      Link-local IPv6 Address . . . . . : fe80::58b6:df18:aa0a:9f80%24
      Autoconfiguration IPv4 Address. . : 169.254.159.128
      Subnet Mask . . . . . . . . . . . : 255.255.0.0
      Default Gateway . . . . . . . . . : 192.168.9.2
    
   Ethernet adapter vEthernet (Intel(R) 82574L Gigabit Network Connection Virtual S
   witch):
    
      Connection-specific DNS Suffix  . :
      Link-local IPv6 Address . . . . . : fe80::1c24:833f:283e:99c6%22
      IPv4 Address. . . . . . . . . . . : 192.168.0.100
      Subnet Mask . . . . . . . . . . . : 255.255.255.0
      Default Gateway . . . . . . . . . : 192.168.0.1
    
   Tunnel adapter Teredo Tunneling Pseudo-Interface:
    
      Media State . . . . . . . . . . . : Media disconnected
      Connection-specific DNS Suffix  . :
    
   Tunnel adapter isatap.{95BFC5B3-D6F1-4E31-A6B7-2FCC6301784F}:
    
      Media State . . . . . . . . . . . : Media disconnected
      Connection-specific DNS Suffix  . :
   
   C:\Users\pierre>ipconfig /renew "vEthernet (Windows Phone Emulator Internal Switch)"
    
   Windows IP Configuration
    
   An error occurred while renewing interface vEthernet (Windows Phone Emulator Int
   ernal Switch) : unable to contact your DHCP server. Request has timed out.
    
   C:\Users\pierre>

In the host, using Wireshark, I can see the DHCP offer/answer packets for "vEthernet (Intel(R) 82574L Gigabit Network Connection Virtual Switch)". In the case of the Windows Phone connection, I don't see any packet coming out of the guest.

If I launch the phone emulator, in the Additional Tools -> Network panel, I have

   Adapter #1:
   Physical address: 02DEDEDEDE00
   Virtual switch: Windows Phone Emulator Internal Switch
   Network addresses: fe80::9534:d253:6e9c:c5ad (Preferred)
   169.254.197.173 (Preferred)
   Adapter #2:
   Physical address: 00155D0B6A44
   Virtual switch: Intel(R) 82574L Gigabit Network Connection Virtual Switch
   Network addresses: fe80::604a:28f6:9ae2:fd45 (Preferred)
   192.168.0.102 (Preferred)


But still, if I try to reach google or bing, there is no connection established.

Any idea ?

pierreg 13:43, 29 March 2013 (EET)

/*

  • Problem Solved
  • /

Joschl - Cant't deploy to a Samsung Ativ S Windows 8 Phone via USB

A really great article! Thanks a lot!!!


I know, this is a Nokia - Forum, but perhaps has someone a glory hint for me, to get my Samsung Ativ S Windows 8 Phone inside the VMWare-Win 8-Machine visible/accessable.

Host-Os: Win 7 x64 VMWare-Player: 5.0.2 build-1031769 Guest-OS: Win 8 x64 Enterprise (Evaluation) Emulater works fine. Real world smartphone is not working until now.

When i plug in the smartphone a Win 8 Phone is recognized an in the device manager i can see a new "USB-Component" Device.

But i can't redirect or forward it to inside the VM. Does anybody solve this problem? Thanks for reading this!

Joschl 19:14, 14 May 2013 (EEST)


PROBLEM SOLVED - Thanks to Ltomuta fpr motivate me to try it again!

The resolution in my case is. I had to connect to my USB 2.0 connector, not to a USB 3 - Hub. I'm wondering why this is a problem, but when i changed the USB-Port, the Virtual Machine recognized the Win 8 Phone.

Again big Thanks to you!!!

First I tried VirtualBox and was disappointed, because i couldn't get it work. And now all works really fine :-)) A few minutes ago i deployed my first app to my real Smartphone from inside a virtual machine.

Ltomuta - Re: Cant't deploy to a Samsung Ativ S Windows 8 Phone via USB

As I wrote at http://www.developer.nokia.com/Community/Wiki/Windows_Phone_8_SDK_on_a_Virtual_Machine_with_Working_Emulator#What_about_connecting_my_device_to_the_virtual_machine.3F there may be some virtual machine specific settings that you must play with in order to ensure that the device is fully visible, with all its services, but before even considering that you must enable basic USB passthrough. With VMWare products as I remember there's an USB icon to tap on VM's system tray (below guest OS' system try). Did you do that? Are you able to make other USB devices accessible to the guest OS?

ltomuta 10:31, 15 May 2013 (EEST)


@Ltomuta: From joschl: Thank you! It works now. I described it in my post.

Vijay.patel - Will it work with VMWare Player 5.0 and Existing VM

Hello,

I have VM that is already created long time back with Windows 8 Pro x64 in VMWare Player 5.0. Is is possible to run windows 8 Emulator in it?

Because i have tired updating .VMX file but when i start the VM, .VMX file gets overwritten and not able to run the emulator as well as not able to enable Hyper-V.

vijay.patel (talk) 13:10, 3 July 2013 (EEST)

Joaocardoso - att: Vijay.patel

What type of CPU do you have?

Have you followed the instructions above? You should first change the VM settings on the VMWare IDE, save, and only then edit the file.

joaocardoso (talk) 13:39, 3 July 2013 (EEST)

Vijay.patel - Joaocardoso - Will it work with VMWare Player 5.0 and Existing VM

Hello,

I have Intel i5-2430M CPU @ 2.40 GHz. Yes. I have followed steps mentioned above except the one that i have already installed VM before making any change to .VMX file. Noe i have updated (Enabled) "Virtualize Intel VT-x/EPT or AMD-V/RVI". After that i have added entry in .VMX file as mentioned above.

But when u start VM .VMX file gets overwritten and i am not able to enable Hyper-V.

Please help.

vijay.patel (talk) 17:59, 4 July 2013 (EEST)

Joaocardoso - Vijay.patel

Ok so lets do this step by Step.

a) You open the VMWare client b) You edit the VM Setting c) You close the setting page d) you exit VMWare client <- close VMWare player or VMWare workstation, whatever you are using e) you edit the file and add the hypervisor.cpuid.v0 = ”FALSE” configuration f) you start VMWare again g) You start your VM h) While on VM you go to control panel and open the Program section and select the option "Turn Windows Features on/off" i) You add HYPER-V as one of the features and install it j) The you open VS2012 Express or higher version with Windows Phone 8 SDK installed, create an app and run.

If you are able to go through all of these steps, and still have a issue, can you tell me witch step fails and why?

joaocardoso (talk) 18:07, 4 July 2013 (EEST)

Vijay.patel - vijay.patel - Joaocardoso

Hello,


Thanks Joaocardoso for quick reply and help. Your steps and suggestions helped me to finally install Hyper-V and run Emulator.

Thanks once again.

vijay.patel (talk) 20:11, 4 July 2013 (EEST)

H tuncer01 - Need help

when i start the system (on VMWare), im getting this error message;

"Virtualized Intel VT-x/EPT is not supported on this platform.

Continue without virtualized Intel VT-x/EPT?"

Still i can't build my projects.. Please help me to fix this.

h_tuncer01@hotmail.com

h_tuncer01 (talk) 04:08, 16 July 2013 (EEST)

IsaacSteel - Windows 8.vdmk in a VirtualBox

Hello at all,

I build a Windows 8.vdmk file with the help of VirtualBox. My Problem now is that there isn't a *.vmx file to configure the virtual machine with hypervisor.cpuid.v0 = ”FALSE”

If I work with virtaul box there is only one file *.vdmk and not other files like in VM Ware.

Thx for your help

IsaacSteel (talk) 15:23, 1 August 2013 (EEST)

Balajim - Installaton Successful

Hey guyz,

Thanks for giving nice documentation to install windows phone 8 with working emulator , i followed your given documentation ,now my emulator is working fine.

Any body who locked with your installation , i recomended to follow the above installation , till if you have any queries feel free to contact.

My Mail id: balajimogadali@gmail.com

Thanks once again.

balajim (talk) 11:25, 6 August 2013 (EEST)

Aleksvidak - WCF service

I'm using WCF service in one of the apps I'm currently working on, and I've followed this tutorial and everything works great (I needed to adjust some things that are described here: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj684580(v=vs.105).aspx), except I get communication error when I plug in my device to test the app! But it works on a Windows 8 when it's installed standalone.. Is there something else I need to adjust so I get it to work?

btw, tutorial is great!

Thanks for the reply.

aleksvidak (talk) 07:47, 8 August 2013 (EEST)

Joaocardoso - @Aleksvidak - WCF service

The link you provided to MSDN does not work.

When you install the app to your phone, the service you are btrying to reach must be accessible from the network your phone is connected to. So if you have a home network with a DHCP server, you need to know what is the ip address of the machine where you are hosting the service in order to reach it. When you are runing locally, you are using your local interface and you can use 127.0.0.1

joaocardoso (talk) 14:23, 8 August 2013 (EEST)

Aleksvidak - @Joao

Sorry for bad link (I added a bracket at the end accidentally..):

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj684580(v=vs.105).aspx

here it says that I cannot use localhost ip address because the emulator, and mobile phone also, are considered as a separate device, so I need ip of the computer. Since I'm using VMWare, I have ip on my host, and another one on my virtual machine.. not sure if it poses the problem, I mean, I've created service reference with the ip of the virtual machine and it works fine with emulator, but I get CommunicationError when trying to consume service from the mobile device..

aleksvidak (talk) 10:09, 9 August 2013 (EEST)

Ivan.Shakhov - Main network adapter loses connect after cloning machine with WP8SDK

I managed to install WP8 SDK. However, I planned to use the machine as a part of Continuous Integration. And I figured out that after cloning the machine or just reconfiguration of network adapter Windows 8 loses network. If I disable "Ethernet adapter virtual switch" before reconfiguration - main adapter works fine.

Does anyone face the same problem?

Ivan.Shakhov (talk) 15:09, 13 August 2013 (EEST)

Jmarti326 - Do this work for Virtual Box too?

It would be great to know if this works for virtual box too. If not, I would like to know if you guys recommend me to install windows 8 directly in my mac, or to see other options in virtualization.

jmarti326 (talk) 12:57, 4 September 2013 (EEST)

Hamishwillee - NO idea but ...

This article may be of interest (note that it is still in "draft"): Installing the Windows Phone 8 SDK on a Mac, using Parallels

hamishwillee (talk) 09:10, 6 September 2013 (EEST)

Balaji.uppala@gmail.com - Balaji.uppala@gmail.com - Simply superb :)

The instructions provided above saved a lot of time for me. Thanks for the detailed guide in configuring Windows 8 SDK on Vmware.

balaji.uppala@gmail.com (talk) 13:00, 24 October 2013 (EEST)

Merken - Super!

Great article, this helped me!

Some remarks for future installations :

-> Ensure you have Visual Studio 2012 Update 3 installed -> You need Visual Studio 2013 to run and debug apps on Windows 8.1, so if you're making a Hybrid app for Windows Store and Windows Phone, you should install Visual Studio 2013 as well...

Cheers!

Merken (talk) 11:05, 20 November 2013 (EET)

Scharfstevenm - You must install Visual Studio 2012 Update 4 for the Emulator to work with Windows 8.1 Professional.

Remember to install Visual Studio 2012 Update 4. The phone emulator won't work unless you do this. There is no way to install this update from within Visual Studio 2012. Go to http://www.microsoft.com/en-us/download/details.aspx?id=39305 to download and install it. At a recent DVLUP event in Sunnyvale, about half the participants spent the entire eight hours trying to get the development environment up and running!

This should be added to the instructions.I think that the instructions were written prior to 8.1 and that there was not a requirement to install the Visual Studio update with 8.0.

scharfstevenm (talk) 01:23, 27 November 2013 (EET)

Hamishwillee - Joao - Can you update the instructions as suggested by Scharfstevenm?

By the way Scharfstevenm , this is a wiki, so if you're sure of a particular instruction you can make the edit yourself.

hamishwillee (talk) 05:06, 27 November 2013 (EET)

 

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×