无法部署到 HoloLens 模拟器
Can't deploy to HoloLens emulator
刚刚在安装了 HoloLens 模拟器的 VS2015 Update 2 中创建了默认项目 Holographic DirectX11 App(通用 Windows) 并按 F5。
HoloLens 模拟器开始加载,但在某个时候
The emulator is unable to connect to the device operating system: The emulator is unable to determine the host IP address, which is used to communicate with the guest virtual machine. Some functionality might be disabled.
我可以从 Hyper-V 管理器启动模拟器并连接到它,但是屏幕没有响应鼠标点击并且卡在开始菜单(如果我从 VS2015 启动模拟器 window 中的相同图片,但开头有此错误消息):
有什么想法吗?
好的,一些“标准”清理完成了这件事:
- 打开 Hyper-V 管理器
- 删除所有 Windows Phone 和 HoloLens 虚拟机(稍后将重新创建)
- 单击右侧 Actions 面板中的 Virtual Switch Manager... link 并删除所有虚拟交换机
- 重新启动(我这样做是为了“以防万一”,可能不需要)
- 在 VS2015 中打开任何 HoloLens 项目并点击 F5 - 这应该为 HoloLens 重新创建新虚拟机并成功部署应用程序.
* 更新 *
看来以后有更合适的地方来回答这样的问题-官方Questions and Answers论坛。
* 更新 2 *
这可能是相关的,所以我就把 this link 留在这里(它确实帮助我解决了过去与 Windows Phone 模拟器非常相似的问题)。
引用上面link的重要部分:
Here is my solution and it work well for me:
open hyper-v as admin, open virtual switch manager, create a new virtual switch with "Internal", use the default name or any name you want, and save
open virtual switch manager again, and you will see the "Windows Phone Emulator Internal Switch", copy the name "Windows Phone Emulator Internal Switch" and change this switch to another name(whatever you want, I just add "1" to the following string like: Windows Phone Emulator Internal Switch 1), and open your new added switch in the step 1, rename it to "Windows Phone Emulator Internal Switch" (don't change or missing any string), save
open virtual switch manager again, and now you can delete the old "Windows Phone Emulator Internal Switch 1" switch
open system network settings, adapter settings, you will see "vEthernet (Windows Phone Emulator Internal Switch)" is enable now, and the old one "vEthernet (New Virtual Switch)" is disabled which will not be used.
in VS, just run and deploy to a emulator, have fun.
希望对您有所帮助。
我修复了
The emulator is unable to connect to the device operating system: The emulator is unable to determine the host IP address, which is used to communicate with the guest virtual machine. Some functionality might be disabled.
问题来自:
- 打开 Hyper-V 管理器
- 打开虚拟交换机管理器
- 选择"Windows Phone Emulator Internal Switch"
- 正在将连接类型从 "Private network" 更改为 "Internal network"
刚刚在安装了 HoloLens 模拟器的 VS2015 Update 2 中创建了默认项目 Holographic DirectX11 App(通用 Windows) 并按 F5。
HoloLens 模拟器开始加载,但在某个时候
The emulator is unable to connect to the device operating system: The emulator is unable to determine the host IP address, which is used to communicate with the guest virtual machine. Some functionality might be disabled.
我可以从 Hyper-V 管理器启动模拟器并连接到它,但是屏幕没有响应鼠标点击并且卡在开始菜单(如果我从 VS2015 启动模拟器 window 中的相同图片,但开头有此错误消息):
有什么想法吗?
好的,一些“标准”清理完成了这件事:
- 打开 Hyper-V 管理器
- 删除所有 Windows Phone 和 HoloLens 虚拟机(稍后将重新创建)
- 单击右侧 Actions 面板中的 Virtual Switch Manager... link 并删除所有虚拟交换机
- 重新启动(我这样做是为了“以防万一”,可能不需要)
- 在 VS2015 中打开任何 HoloLens 项目并点击 F5 - 这应该为 HoloLens 重新创建新虚拟机并成功部署应用程序.
* 更新 *
看来以后有更合适的地方来回答这样的问题-官方Questions and Answers论坛。
* 更新 2 *
这可能是相关的,所以我就把 this link 留在这里(它确实帮助我解决了过去与 Windows Phone 模拟器非常相似的问题)。
引用上面link的重要部分:
Here is my solution and it work well for me:
open hyper-v as admin, open virtual switch manager, create a new virtual switch with "Internal", use the default name or any name you want, and save
open virtual switch manager again, and you will see the "Windows Phone Emulator Internal Switch", copy the name "Windows Phone Emulator Internal Switch" and change this switch to another name(whatever you want, I just add "1" to the following string like: Windows Phone Emulator Internal Switch 1), and open your new added switch in the step 1, rename it to "Windows Phone Emulator Internal Switch" (don't change or missing any string), save
open virtual switch manager again, and now you can delete the old "Windows Phone Emulator Internal Switch 1" switch
open system network settings, adapter settings, you will see "vEthernet (Windows Phone Emulator Internal Switch)" is enable now, and the old one "vEthernet (New Virtual Switch)" is disabled which will not be used.
in VS, just run and deploy to a emulator, have fun.
希望对您有所帮助。
我修复了
The emulator is unable to connect to the device operating system: The emulator is unable to determine the host IP address, which is used to communicate with the guest virtual machine. Some functionality might be disabled.
问题来自:
- 打开 Hyper-V 管理器
- 打开虚拟交换机管理器
- 选择"Windows Phone Emulator Internal Switch"
- 正在将连接类型从 "Private network" 更改为 "Internal network"