Windows Phone Emulator error, Hyper-V components not running, Windows 8.1 hosted in VMWare Player - visual-studio

Environment:
Windows 7 Enterprise 64-bit as host o/s
Windows 8.1 Enterprise 64-bit hosted in VMWare Player (current version)
Visual Studio Express 2012 for Windows Phone (Update 4)
I get the following error when trying to run a very simple phone app. I know MS says a VM-within-a-VM environment isn't supported, but I know it can work. Has anyone had success with this? Any help is greatly appreciated.
Windows Phone Emulator
The Windows Phone Emulator wasn't able to ensure the virtual machine
was running:
Something happened while starting a virtual machine: 'Emulator WVGA
512 MB.' failed to start. (Virtual machine ID
CADD6546-129A-4683-9A2D-52EAE777E888)
The Virtual Machine Management Service failed to start the virtual
machine 'Emulator WVGA 512 MB.' because one of the
Hyper-V components is not running (Virtual machine ID
CADD6546-129A-4683-9A2D-52EAE777E888).
Prior to seeing the error, the emulator emits the on-screen messages:
Loading ...
The Windows Phone OS is starting ...
And then the error. Of all the Hyper-V services available, the Hyper-V Virtual Machine Management service is the only one which is running.

I've got Windows Phone 8 (and 8.1) emulators working in a VMware Player VM (running Windows 8, obviously) on a Windows 7 host.
You must first check the physical processor supports SLAT. If it does, you can set the "Virtualize Intel VT-x/EPT or AMD/RVI" in your VM's processor settings (Manage/Virtual Machine Settings/Processors). Then make sure the hypervisor.cpuid.v0 is set to "FALSE" in the vmx file for the VM. (exit VMware player before doing this). And you should be good to go.
See http://developer.nokia.com/community/wiki/Windows_Phone_8_SDK_on_a_Virtual_Machine_with_Working_Emulator for a step-by-step guide on how to do this when creating a new VM.

Related

Windows Phone Emulator error - Couldn't change Processor of the virtual machine

I have VisualStudio 2012 update 4 with Windows 8.1 Premier OS (64 bit). I just created simple windows mobile application from new project option in VS2012 and tried to run. I got the below error message
The Windows Phone Emulator wasn't able to create the virtual machine:
Couldn't change Processor of the virtual machine:
'Emulator WVGA 512MB.admin' failed to modify device
'Processor'. (Virtual machien ID #######-#####-####-######)
Cannot assign the specified number of processors for
virtual machine 'Emulator WVGA 512MB.admin' is our of
range. The range is 1 through 1. (Virtual machine ID #####-#####-######
I am new to windows mobile development. Please explain how can I avoid this error.
This is resolved by altering the process count by 2 in the Hyper-V manager.

Windows Phone 8 SDK Xde emulator runs really slow and Crashes

when you try and run the emulator it will load, then say windows phone OS is starting up, then sit there about 3-5 mins and fail.
Im Running Visual Studio Express 2012 for WP on Lenovo N586 64-bit I've upgraded to windows 8 pro
lemme run down the list of what Ive tried...all are listed here
yes hardware supports hyper-v virtualiztion amd a6-4400m
I'm slat Capable theres a program you can use to test this.
Hyper-v is Installed and running fine
running windows 8 pro I had to upgrade.
Im 64 bit
Im not running any other virtualization software
Ive run XDEcleanup.exe and ran VS2012 as administrator no luck
no im not running on a virtual machine.
and just for fun I've uninstalled the sdk and re installed it
any idea?
For what you're describing, its looks like the VS is trying to create the virtual switch, but failed. To resolve this, go to Hyper-V's Virtual Switch Manager, on the left side of the window, and be sure that you have one virtual switch for every network card you have, usually you must have 3: 1 for the wireless, 1 for the LAN and 1 for internal. If your don't have the wireless or the LAN, create them.

Windows Phone emulator won't start with a "Another Virtual Machine Manager is running." error

I'm using Visual Studio 2010 Express for Windows Phone (with SDK 7.1.1 update) and I'm trying to debug but when the emulator tries to launch, it gives me this error:
Another Virtual Machine Manager is running. Close the other Virtual
Machine Manager, wait for some duration, and relaunch the Emulator.
Anybody know what's going on? I'm running this on a physical machine (not on a VM)
Do you have the Intel (R) Hardware Accelerated Execution Manager (HAXM). that's installed with the latest Android SDK?
If you have installed this component is the Windows Phone 7 emulator will spit out that error, to resolve it you have to uninstall it and reboot.

Windows Phone 7 emulator - won't run in a virtual machine, workarounds?

Macbook Pro 2011 i7 13". Mac OSX 10.6.7, bootcamp partition running Windows 7. Am running a 240GB SSD and 8GB ram, the computer is more than fast enough to run Visual Studio 2010 in a VM.
If I run Visual Studio from Bootcamp it works fine and develop my apps. Reboot into OSX and fire up the same partition using Parallels in either window or coherence mode I get the message:
Windows Phone Emulator is doing a complete OS boot...."
and the emulator, closes. I've found a few threads and posts about this:
https://connect.microsoft.com/VisualStudio/feedback/details/593422/windows-phone-emulator-shuts-down-computer
http://forums.create.msdn.com/forums/p/68634/481915.aspx#481915
Windows phone 7 takes forever to deploy
I understand it's not officially supported but if there is a workaround it would be amazing as I'd prefer to "live" in Mac OSX and just use Windows for Office and Visual Studio. I like this working model.
Any workarounds, any advice?
Windows Phone Emulator is a virtual machine, and you can't run a virtual machine inside another one...
Its not likely that you can do this as inside the emulator is Virtual PC, another virtual machine. It would be quite taxing to run a VM inside a VM.

Run WinPhone7 Emulator on Windows7 under VirtualBox

My main OS is Windows XP. I install VirtualBox and now have Windows 7 under VirtualBox. I install WinPhone7 Emulator and try run it. But all that I can see is window of emulator with text "Windows Emulator is doing a complete OS boot...". I waited a very long time. I tried to reboot, reinstall the Windows7 and many more. Result of my attempts is zero. It is possible run WinPhone7 Emulator under Virtual Box? What I can do for work with WinPhone7 Emulator without switch main OS?
The emulator doesn't support running under a VM.
Setup and System Requirements for Windows Phone Emulator
The emulator is a VM itself which is partly what makes this unsupported.
Some people have had varying results running under unsupported environments such as XP, VMWare, Bootcamp... but as yet I've not seen anything posted for the VM you mention.
You have a step by step procedure here: Windows Phone 8 SDK on a Virtual Machine with Working Emulator
It uses VMWare but it does allows you to run the Windows Phone 8 emulator in a VM.
I've been using this for a few days with good results. I dont have a Windows Phone 8 device yet, so I didn't tried to deploy but its good enough to start playing with it.

Resources