1、要实现 hyper-v 嵌套虚拟化,首先,我们以管理员身份打开 powershell
![](https://b.ligzs.com/wp-content/uploads/2022/08/image.png)
2、在命令行中输入 get-vm ,列出我们自己的虚拟机
PS C:\Users\Windows> Get-VM
![](https://b.ligzs.com/wp-content/uploads/2022/08/image-1.png)
3、输入 Get-VMProcessor -VMName <需要开启的虚拟机名称> | fl
PS C:\Users\Windows> Get-VMProcessor -VMName <需要开启的虚拟机名称> | fl
![](https://b.ligzs.com/wp-content/uploads/2022/08/image-2.png)
我们可以看到,红框中的嵌套虚拟化选项的值为 False,设置为 True 即可。
4、输入Set-VMProcessor -ExposeVirtualizationExtensions $true -VMName <需要开启的虚拟机名称> ,正常情况下,是没有输出的,再输入Get-VMProcessor -VMName <需要开启的虚拟机名称> | fl查看设置结果
![](https://b.ligzs.com/wp-content/uploads/2022/08/image-3.png)
经过上面 4 步,我们就可以在虚拟机中再进行虚拟化了。
Comments NOTHING