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 Manager ,並找到要作為巢狀 Hyper-V 伺服器使用的虛擬機器。
- 在 VM 上按一下滑鼠右鍵, 然後選取關機。
- 在 Hyper-V 主機上開啟管理 ISE PowerShell 視窗。
- 在下方的 PowerShell 命令中複製。執行下方的 PowerShell 命令,插入 Hyper-V VM 的名稱。
Set-VMProcessor -VMName Nest-HV -ExposeVirtualizationExtensions $true
- 執行以下命令 以啟用 MacAddressSpoofing。
Set-VMNetworkAdapter -VMName Nest-HV | Set-VMNetworkAdapter -MacAddressSpoofing On
- 啟動 巢狀 Hyper-V VM
- 登入巢狀 VM
- 開啟管理員 ISE PowerShell 工作階段,新增指令檔檢視視窗
- 貼上並 執行以下 PowerShell 命令 ,在虛擬機器上安裝 Hyper-V 角色。
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart
- VM 重新開機後, 開啟「Server Manager」
- 在左側窗格中, 選取「Hyper-V」。
- 在中央視窗中,以滑鼠右鍵按一下「Nest-HV」,然後按一下「Hyper-V Manager」。
- 確認「NEST-HV」顯示為 Hyper-V 伺服器。
- 新的虛擬機器可以建立或匯入到新的巢狀 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 2022Article Properties
Article Number: 000219458
Article Type: How To
Last Modified: 05 Sept 2025
Version: 6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.