Hyper-V 是微软开发的基于硬件的虚拟机管理程序。它允许用户在 Windows 操作系统之上运行不同操作系统的多个实例。目前,Hyper-V 也支持 Windows、Ubuntu 和其他 Linux 发行版。

如果发现像我这样电脑上启用Hyper-V选项可以按照以下步骤进行操作。
一、新建一个txt,放入以下内容,并把文件更名为 HyperV.bat
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
pause
二、以管理员方式运行 HyperV.bat

三、命令脚本执行会弹出y/n,输入 y。重新启动 Windows 11 计算机。
四、打开启用win11启动关闭功能页面
方法一:找到win11的控制面板,找到程序与功能

方法二:Windows 和 R 键以打开运行提示。在这里,键入 optionalfeatures.exe

五、启用Hyper-V


六、 开始中搜索"Hyper-V"


七、创建虚拟机
如需创建虚拟机请移步下方博客