Microsoft Windows:如何创建 Microsoft 嵌套 Hyper-V 服务器
Summary: 本文介绍如何为 Windows Hyper-V 虚拟机启用嵌套虚拟化。启用嵌套虚拟化和 MacAddressSpoofing 后,虚拟机可以转换为能够运行 Windows 虚拟机的 Hyper-V 服务器。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
在此示例中,“Nest-HV”是我们的示例虚拟机 (VM),要转换为嵌套 VM 的 VM 的名称插入到 PowerShell 命令中,从而实现嵌套虚拟化和 MAC 欺骗。有关系统要求的详细信息,请参阅 Microsoft 文章:什么是嵌套虚拟化?
- 登录 到主机 Hyper-V 服务器。
- 打开 Hyper-V 管理器 并查找要用作嵌套 Hyper-V 服务器的虚拟机。
- 右键单击虚拟机, 然后选择关机。
- 在 Hyper-V 主机上打开管理 ISE PowerShell 窗口。
- 复制到下面的 PowerShell 命令中。运行下面的 PowerShell 命令 ,插入 Hyper-V 虚拟机的名称。
Set-VMProcessor -VMName Nest-HV -ExposeVirtualizationExtensions $true
- 运行以下命令 以启用 MacAddressSpoofing。
Set-VMNetworkAdapter -VMName Nest-HV | Set-VMNetworkAdapter -MacAddressSpoofing On
- 启动 嵌套的 Hyper-V VM
- 登录 到 嵌套虚拟机
- 打开管理员 ISE PowerShell 会话,添加脚本视图窗口
- 粘贴并 运行下面的 PowerShell 命令 ,以在虚拟机上安装 Hyper-V 角色。
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart
- 虚拟机重新启动后, 打开“服务器管理器”
- 在左侧窗格中, 选择“Hyper-V”。
- 在中心窗口中, 右键单击“Nest-HV” ,然后单击 Hyper-V Manager。
- 确认“NEST-HV”显示为 Hyper-V 服务器。
- 可以创建新的虚拟机或将其导入到新的嵌套 Hyper-V 服务器中以供虚拟机使用。
Additional Information
如何创建嵌套 Hyper-V 服务器。
持续时间:00:03:54 (hh:mm:ss)
如果可用,可以使用此视频播放器上的 CC 图标选择隐藏式字幕(字幕)语言设置。
Affected Products
Dell Solutions Guides for Microsoft Hyper-V, Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022Article Properties
Article Number: 000219458
Article Type: How To
Last Modified: 05 Sep 2025
Version: 6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.