简体   繁体   English

在 ESXiHost 上的 VM 上使用 XenDesktop 在 Windows 10 上运行 Android 模拟器?

[英]Run Android Emulator on Windows 10 with XenDesktop on VM on ESXiHost?

The standard computer lab setup at the school where I work is for the students to connect to a Windows 10 image running XenDesktop on an ESXi host via Citrix Receiver.我工作的学校的标准计算机实验室设置是让学生通过 Citrix Receiver 连接到在 ESXi 主机上运行 XenDesktop 的 Windows 10 映像。

We'd like to add Android development to our virtual computer lab, but none of the emulators I've tested will run.我们想将 Android 开发添加到我们的虚拟计算机实验室,但我测试过的模拟器都无法运行。 Here's what I've tried and the results:这是我的尝试和结果:

  • Android ADB that come with Android Studio: Not compatible with Hyper-V, so Hyper-V turned off and ADB hangs with message "Cannot get ADB Version" or similar Android Studio 附带的 Android ADB:与 Hyper-V 不兼容,因此 Hyper-V 关闭,ADB 挂起并显示“无法获取 ADB 版本”或类似消息
  • Microsoft Visual Studio Android Emulator: It hung when trying to start AVD with message "Starting OS" on AVD. Microsoft Visual Studio Android 模拟器:尝试在 AVD 上启动 AVD 并显示“正在启动操作系统”消息时挂起。 After an hour, I tried to close it and AVD message changed to "Closing operating system" and hung there.一个小时后,我试图关闭它,AVD 消息更改为“正在关闭操作系统”并挂在那里。 I finally closed it with Task Manager.我终于用任务管理器关闭了它。
  • GenYmotion: It hung when trying to start the AVD. GenYmotion:它在尝试启动 AVD 时挂起。 The AVD was an empty window frame. AVD 是一个空窗框。

Has anyone attempted something like this?有没有人尝试过这样的事情?

The solution turned out to be relatively simple.结果证明解决方案相对简单。 Use the vSphere 6 Web Client to edit the VM settings, and on the CPU settings, enable "Expose Hardware assisted virtualization to guest OS" (the standalone vSphere client does not have this option).使用 vSphere 6 Web Client 编辑 VM 设置,并在 CPU 设置上启用“将硬件辅助虚拟化暴露给来宾操作系统”(独立 vSphere 客户端没有此选项)。 Then restart the VM, install HAXM on the VM, restart the guest OS, and then Android studio and emulator will allow x86 AVDs as usual.然后重启虚拟机,在虚拟机上安装 HAXM,重启来宾操作系统,然后 Android Studio 和模拟器将像往常一样允许 x86 AVD。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM