Windows 服务器版本 1803 中未激活 Hyper-V 隔离

Hyper-V isolation not activated in Windows Server version 1803

我正在尝试 运行 Windows 服务器 2016 容器 Windows 服务器版本 1803 Service Fabric 集群Hyper-V 隔离 模式下,但它失败了:

No hypervisor is present on this system.

似乎 docker 守护程序 未配置,需要激活以进行 hyper-v 隔离。如何在 Windows 服务器 (Datacenter-Core-1803-with-Containers-smalldisk) 上激活 Hyper-V?

详情

HOST OS 在 ServiceFabric 节点上

Publisher: MicrosoftWindowsServer
Offer: WindowsServerSemiAnnual
SKU: Datacenter-Core-1803-with-Containers-smalldisk
Version: 1803.0.20181017
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion
BuildLabEx    REG_SZ    17134.1.amd64fre.rs4_release.180410-1804

容器OS

Windows Server 2016, builds 14393 (Long-Term Servicing Channel)

Docker命令

docker run --isolation=hyperv -it mcr.microsoft.com/windows/servercore:ltsc2016 cmd

Error response from daemon: container Error response from daemon: container 0499ef6e3f17843644323fa62b822fd30b89cc8f4ac2ab7d05396fec51252ac7 encountered an error during CreateContainer: failure in a Windows system call: No hypervisor is present on this system.

编辑

Hyper-V 已安装,我使用以下命令进行了检查:

Get-WindowsFeature -ComputerName xxx

您只能在 Dv3Ev3 VM 大小上进行嵌套虚拟化。 Dv3 和 Ev3 大小也是 运行ning 在 Windows Server 2016 主机上的首批 VM 的一部分。 Windows 2016 台主机为这些新的 VM 大小启用了嵌套虚拟化和 Hyper-V 容器。嵌套虚拟化允许您 运行 Azure 虚拟机上的 Hyper-V 服务器。通过嵌套虚拟化,您可以 运行 虚拟化容器主机中的 Hyper-V 容器,在虚拟化环境中设置 Hyper-V 实验室,或测试多机场景。您可以在 Nested Virtualization on Azure 上找到更多信息。