在Win10 VMWare中运行WinPhone模拟器 [英] Running WinPhone emulator inside Win10 VMWare

查看:474
本文介绍了在Win10 VMWare中运行WinPhone模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个运行VS2013的Win 8.1托管操作系统,可以在模拟器中测试我的WinPhone应用.主机操作系统是Win7 Pro.

I had a Win 8.1 hosted OS, running VS2013, and could test my WinPhone app in the emulator fine. The host OS is Win7 Pro.

我将托管的操作系统重新安装到Win10和VS2015,现在当我尝试使用模拟器测试我的应用时,出现了Hypervisor not enabled错误:

I reinstalled the hosted OS to Win10, and VS2015, and now I get the Hypervisor not enabled error when I try to test my app with the emulator:

我尝试按照以下方式禁用和重新启用HyperV(在托管的OS中):

I've tried disabling and re-enabling HyperV (in the hosted OS) as per:

无法启动Windows Phone仿真器

但无济于事.

我也尝试过打开托管计算机的BIOS设置(PhoenixBIOS),但是没有可以帮助我的选项.

I've also tried opening the BIOS setup (PhoenixBIOS) of the hosted machine, but there are no options that I can see that would help.

我还能尝试什么使其工作?

What else can I try to get it working?

(为什么我为什么不先备份虚拟机?!)

推荐答案

进入工作站,以提升模式运行Powershell(以管理员身份运行) 并运行

Into the Workstation run Powershell in elevated mode(Run as Administrator) and run

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All

停止工作站并转到设置/处理器/虚拟引擎并设置:

Stop Workstation and go to settings/processors/Virtualization engine and set:

  • 首选模式:自动
  • 禁用二进制翻译加速:未选中
  • 虚拟化Intel VT-x/EPT或AMD-V/RVI:已选中
  • 虚拟化CPU性能计数器:已选中

启动Workstation并运行lusrmgr.msc,并检查您的帐户是否在Hyper-V Administratiors组中

Start Workstation and Run lusrmgr.msc and check also your account is in the Hyper-V Administratiors group

检入HV主机服务和Hyper-V虚拟机管理已启动并正在运行的服务.

Check in the services that the HV Host Service and Hyper-V Virtual Machine Management are up and running.

如果Error 31: A device attached to the system is not functioning遵循此处中的步骤.

解决方法是:

The fix is:

  • 关闭工作站.
  • 打开注册表(开始>运行> regedit).
  • 浏览到HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ hcmon.
  • 创建一个名为Parameters的新键.
  • 在参数"中,创建一个名为DisableDriverCheck的新DWORD值条目,然后将该值设置为1.
  • 重新启动
  • Shut down Workstation.
  • Open the registry (Start > Run > regedit).
  • Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\hcmon.
  • Create a new key called Parameters.
  • In Parameters, create a new DWORD value entry named DisableDriverCheck, and then set the value to 1.
  • Reboot

出现此问题是针对Windows 7主机的.该修复程序适用于少数几个我 尝试过的.

Appears this issue is for Windows 7 host. The fix worked on the few I tried.

如果错误31仍然出现,请以提升模式在Workstation命令提示符下运行(以管理员身份运行),然后键入

If Error 31 is still appearing run in the Workstation command prompt in elevated mode(Run as Administrator) and type

bcdedit /set "{current}" hypervisorlaunchtype auto

,然后重新启动工作站.

and then restart the Workstation.

再次检查HV主机服务和Hyper-V虚拟机管理已启动并正在运行的服务.

Check again in the services that the HV Host Service and Hyper-V Virtual Machine Management are up and running.

转到网络和共享中心/更改适配器设置,然后禁用并重新启用名称为 vEthernet(内部以太网端口Windows Phone Emulator内部交换机)的所有适配器

Go to Network and Sharing Center/Change adapter settings and disable and re-enable all adapters with name: vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)

现在您应该运行模拟器...;)

And now you should run the emulator... ;)

这篇关于在Win10 VMWare中运行WinPhone模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆