你好,
请首先确认Windows启用了VirtualMachinePlatform。可以用管理员打开CMD,然后运行
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
之后再安装WSL
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
如果还是提示启用虚拟化,运行bcdedit确认hypervisorlaunchtype已设置为Auto。如果不是的话可以运行
bcdedit /set hypervisorlaunchtype auto