小结
Windows 10最近有个自动更新并重启电脑后,启动WSL后报错,进行了解决。
问题
Windows 10最近有个自动更新后,报以下错:
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
For information please visit https://aka.ms/wsl2-install
解决
首先想到的是在Windows Features里去开启Hyper V 以及 Windows Subsystems for Linux等的设置,发现这些设置已经很久以前开启了,根本就没动过。
最后参考链接1运行以下指令再重启计算机解决问题:
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V
bcdedit /set hypervisorlaunchtype auto
在Windows10自动更新后,启动WSL时遇到错误提示需启用VirtualMachinePlatform和BIOS中的虚拟化。已开启HyperV和WindowsSubsystemsforLinux的设置无果。通过运行DISM和bcdedit命令启用HyperV并设置hypervisor启动类型为自动,重启电脑后解决了问题。
7499

被折叠的 条评论
为什么被折叠?



