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文章:什麼是嵌套虛擬化?此超連結會帶您前往 Dell Technologies 以外的網站。
  1. 登入 主機 Hyper-V 伺服器
  2. 開啟 Hyper-V Manager ,並找到要作為巢狀 Hyper-V 伺服器使用的虛擬機器。
  3. 在 VM 上按一下滑鼠右鍵, 然後選取關機
顯示如何在 Hyper-V Manager 中關閉 Hyper-V VM。
  1. 在 Hyper-V 主機上開啟管理 ISE PowerShell 視窗
  2. 在下方的 PowerShell 命令中複製。執行下方的 PowerShell 命令,插入 Hyper-V VM 的名稱。
Set-VMProcessor -VMName Nest-HV -ExposeVirtualizationExtensions $true
 
顯示要在 Hyper-V 主機上執行的 PowerShell 命令,以允許在 Windows Hyper-V 虛擬機器上使用虛擬延伸功能。
  1.  執行以下命令 以啟用 MacAddressSpoofing。
Set-VMNetworkAdapter -VMName Nest-HV | Set-VMNetworkAdapter -MacAddressSpoofing On
PowerShell 命令,允許在巢狀 Hyper-V VM Server 上進行 MAC 位址欺騙。
  1. 啟動 巢狀 Hyper-V VM
  2. 登入巢狀 VM
  3. 開啟管理員 ISE PowerShell 工作階段,新增指令檔檢視視窗
  4. 貼上並 執行以下 PowerShell 命令 ,在虛擬機器上安裝 Hyper-V 角色。
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart

 

在巢狀 Hyper-V VM 伺服器上執行的 PowerShell 命令,以安裝 Hyper-V 伺服器角色和 Hyper-V 管理工具。
  1. VM 重新開機後, 開啟「Server Manager」
  2. 在左側窗格中, 選取「Hyper-V」。
  3. 在中央視窗中,以滑鼠右鍵按一下「Nest-HV」,然後按一下「Hyper-V Manager」。
  4. 確認「NEST-HV」顯示為 Hyper-V 伺服器。
 
在 Hyper-V Manager 中檢視新建立的巢狀 Hyper-V VM 伺服器。
  1. 新的虛擬機器可以建立或匯入到新的巢狀 Hyper-V 伺服器中以供虛擬機器使用。

Additional Information

如何建立巢狀 Hyper-V 伺服器。

持續時間:00:03:54 (小時:分鐘:秒)
當可用時,您可以使用此影像播放器上的 CC 圖示來選擇隱藏式輔助字幕 (字幕) 語言設定。

Affected Products

Dell Solutions Guides for Microsoft Hyper-V, Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022
Article 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.