banner
LAPLACE

LAPLACE By 王友元

那些娇艳欲滴姿态万千的花朵其实都依赖于某种神秘的养料——那就是人类幽微而真挚的情感故事
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.