banner
LAPLACE

王友元's blog

停下来前一定要想好下次开始时需要做的事情
telegram
x
email

Hyper-V: Enable nested virtualization.

When developing projects locally, sometimes we encounter the need to enable virtualization in a virtual machine environment. Alternatively, if we have set up a PVE (Proxmox Virtual Environment) using a virtual machine, we may need to create virtual instances within PVE (although this may not be meaningful).

In such cases, we need to enable the nested virtualization feature of Hyper-V. This feature cannot be directly enabled in the Hyper-V application and requires setting it in the PowerShell command line.

  1. Open the terminal as an administrator.

  2. Get the name of the virtual machine:

get-vm

image

  1. Enable nested virtualization:
Set-VMProcessor [hostname] -ExposeVirtualizationExtensions $true

image

  1. Check the enabled status:
Get-VMProcessor [hostname] | fl

image

That's it.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.