Problem
我想用适用于 Android 的 Visual Studio 模拟器但每当我尝试启动它时,它都会失败。
![enter image description here](https://i.stack.imgur.com/6an83.jpg)
日志的最后部分是:
27.9.2015. 11:10:38: [Informational] ===== Session Started =====
27.9.2015. 11:10:38: [Informational] Microsoft Windows NT 6.3.9600.0 Windows 8.1 Pro with Media Center
27.9.2015. 11:10:38: [Informational] Virtualization type: UnknownOrNotVirtual
27.9.2015. 11:10:38: [Informational] Virtualization Version: alaska - 1072009
27.9.2015. 11:10:38: [Informational] Virtualization Serial Number: to be filled by o.e.m.
27.9.2015. 11:10:38: [Informational] Virtualization Product: z97-d3h-cf
27.9.2015. 11:10:38: [Informational] Display Adapter 0: Name: NVIDIA GeForce GTX 960, Version: 10.18.13.5362
27.9.2015. 11:10:38: [Informational] Display Adapter 1: Name: Intel(R) HD Graphics 4600, Version: 10.18.14.4170
27.9.2015. 11:10:39: [Informational] Reinitializing installed profiles.
27.9.2015. 11:10:39: [Informational] Installed profiles initialized. Devices: 3 Platforms: 2
27.9.2015. 11:10:39: [Informational] Reinitializing installable profiles.
27.9.2015. 11:10:39: [Informational] Installable profiles initialized. Devices: 30 Platforms: 4
27.9.2015. 11:10:41: [Informational] Waiting to launch device...
27.9.2015. 11:10:41: [Informational] Launching Device: 10.1" Lollipop (5.1.1) XHDPI Tablet
27.9.2015. 11:10:41: [Informational] Validating emulator arguments...
27.9.2015. 11:10:41: [Informational] Determining if emulator is already running...
27.9.2015. 11:10:41: [Informational] Preparing virtual machine...
27.9.2015. 11:10:47: [Critical] An internal virtual network switch is required for emulated devices to run.
27.9.2015. 11:10:47: [Critical] XDE Path: C:\Program Files (x86)\Microsoft XDE\10.0.10240.0\xde.exe
27.9.2015. 11:10:47: [Critical] XDE Arguments: /sku Android /displayName "VS Emulator 10.1\" Lollipop (5.1.1) XHDPI Tablet" /memSize 2048 /diagonalSize 10.1 /video "2560x1600" /vhd "C:\Users\Miro\AppData\Local\Microsoft\VisualStudioEmulator\Android\Containers\Local\Devices\vhd\10.1_Lollipop_(5.1.1)_XHDPI_Tablet\image.vhd" /name "VS Emulator 10.1-inch Lollipop (5.1.1) XHDPI Tablet.miro" /noStart /silent
27.9.2015. 11:10:47: [Critical] XDE Exit Code: CouldntCreateInternalSwitch (16)
到目前为止我已经尝试过...
- Done all steps from How to enable Hyper-V for the emulator for Windows Phone 8
-
VMX and EPT已启用 - 检查核心信息程序
-
SLAT已启用 - 检查检查SLATStatusOfMachine.exe
- 残疾人英特尔VT-d
- Enabled Hyper-V in Windows功能
- 完成所有相关更改后,我已拔掉电脑电源并重试
- 已修复适用于 Android 的 Visual Studio 模拟器并运行XdeCleanup.exe
- 残疾人卡巴斯基安全软件(我读到有时安全软件会干扰)
- 检查我是否是会员Hyper-V 管理员组
- 成功创建并直接启动新VMHyper-V 管理器(这只是为了检查我是否可以运行任何虚拟机)
系统信息
- CPU: 英特尔 i7-4790K
- 操作系统:带媒体中心的 Windows 8.1 Pro
- Hyper-V 管理器:v6.3.9600.16384
Comment
我花了很多时间来找出解决方案,但失败了。我缺少什么?
我发现对于 Windows Phone,有时他们会设置自己的虚拟交换机Hyper-V 管理器。我也应该这样做吗?应该怎样做?
Edit #1
同时:
- 我手动添加了专用和内部交换机网络(如果命名很重要,则命名为“Windows Phone 模拟器专用交换机”和“Windows Phone 模拟器内部交换机”)。之后重新启动,再次尝试。没用。
- I've noticed that XdeCleanup.exe deletes manually created internal private switch.
Edit #2
我已经厌倦了@John Kemnetz 建议的方法。模拟器环境启动。
After selecting Yes this exception is shown.
![enter image description here](https://i.stack.imgur.com/wQHZC.jpg)
编辑 #3 :: 解决方案 ☺ ::
我在后面的回答中进行了@John Kemnetz 建议的第二次尝试。
这些是所有步骤:
- Opened 装置经理并删除了唯一的一个英特尔(R) 以太网连接 I217-V from 网络适配器
- 然后我就找不到了网络适配器完全消失了,所以我无法重新安装网络驱动程序
- After I had rebooted machine not only Intel(R) Ethernet Connection I217-V was installed automatically in Network adapters but also Microsoft Hyper-V Network Switch Default Miniport was installed. Something that I saw for the first time.
- Then I tried the same console entry as in Edit #2. The console didn't started as in Edit #2. Instead I got this.
Well at least there was no error!
- 所以我直奔VS2015,从模板创建Cordova应用程序并尝试运行模拟器。在我授予所有请求的用户权限后,它成功启动了!
- Then I saw under Network adapters two new entries that were created automatically in process.
看起来像是 Hyper-V 的问题。您可能想尝试以下操作(按顺序):*
- 打开 Hyper-V 管理器,通过虚拟交换机管理器删除所有虚拟交换机,删除所有虚拟机,然后重新启动。现在,尝试重新启动模拟器。
- 如果同样失败,请尝试升级连接互联网的适配器的驱动程序(我猜这是一个 WiFi 适配器?)。转到控制面板 > 设备管理器,在“网络适配器”下找到您的 WiFi/互联网适配器,右键单击并卸载。完成后,右键单击网络适配器并扫描硬件更改。这将重新安装您的适配器。重新启动,然后尝试再次启动模拟器。
- 如果仍然失败,最后的操作是在 Windows 上运行“修复”。如果 Hyper-V 和网络适配器之间确实存在问题,这可能会解决问题
*请注意,#2 是适用于 kr85 的解决方案
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)