有没有办法通过 Google Cloud Platform 在 Windows Server 2019 运行 上启用 VT-X

Is there a way to enable VT-X on Windows Server 2019 running through Google Cloud Platform

我正在尝试将 android 模拟器 MEMU 安装到 Google 云平台上的 Windows Server 2019 实例 运行ning 上。每当我尝试启动模拟器时,启动器都会停在 59%。我做了一些研究,发现我需要启用英特尔的虚拟化技术。但是,似乎启用 VT-X 的唯一方法是进入 BIOS 并执行此操作。由于我是通过远程桌面连接到机器的,所以这是不可能的。从这个post:Running Bluestacks on AWS or Google cloud,回答问题的人好像会用MEMU。此外,我尝试启用 Hyper-V,这允许模拟器达到 99%。任何关于如何在 google 云平台上 运行 MEMU 的帮助都将受到赞赏。

看看 system requirements of MEmu:

  • x86/x86_64 Processor (Intel or AMD CPU)
  • WinXP SP3 / Win7 / Win8 / Win8.1 / Win10
  • Windows DirectX 11 / Graphic driver with OpenGL 2.0
  • Hardware Virtualization Technology (Intel VT-x/AMD-V) shall be enabled in BIOS
  • Minimum 2GB of system memory
  • Minimum 2GB of hard disk free space

It’s not recommended to run MEmu App Player in another virtual machine software.

正如 @Morrison Chang 所提到的那样,您无法对 Windows 个虚拟机使用嵌套虚拟化 ,您可以在文档中找到更多详细信息 Enabling Nested Virtualization for VM Instances:

Nested virtualization adds support for Intel VT-x processor virtualization instructions to Compute Engine VMs. Using nested virtualization, you start a VM instance as normal on Compute Engine and then install a KVM-compatible hypervisor on the VM instance so you can run another VM instance on top of that hypervisor. You can use nested virtualization on any Linux VM instance running on a Haswell or newer platform. For other constraints, see the sub-section, restrictions for nested virtualization.

Restrictions

Windows VMs do not support nested virtualization; that is, host VMs must run a Linux OS. However, nested VMs can run certain Windows OSes (described below).

要解决您的问题,您可以提交 feature request at Google Issue Tracker under this component 并请求 Windows VM 的 VT-x 支持。

此外,作为一种可能的解决方法,您可以检查 Google Cloud Marketplace 并搜索可用的 android 模拟器,但它们可能不是免费的。

更新

Stack Overflow 或其他非官方资源中的 Running Bluestacks on AWS or Google cloud 等主题不应被视为未记录的特性、功能或解决方法的证据。正如我所见,@Artem Ibragimov 尝试了 AWS 和 GCE,但没有结果,而且 @CodeGuru 也没有提供任何关于哪个云平台的信息他成功了:

Bluestack doesn't work for me too. I saw Cognosys but they are running on Windows Server 2012 which is really old.

Try Memu Play 2GB Ram Minimum (Try the 4GB VPS) Windows Server 2019 Base DirectX

It works for me