设置hyperv自动开启

关于电脑上开过模拟器关闭hyperv导致hyperv开关被锁死导致docker或wsl开不了的解决方法

具体来说,是以下报错:

  1. WSL integration with distro ‘Ubuntu’ unexpectedly stopped. Do you want to restart ……
  2. 当前计算机配置不支持 WSL2。 请启用“虚拟机平台”可选组件,并确保在 BIOS 中启用虚拟化。 通过运行以下命令启用“虚拟机平台”: wsl.exe –install

所有操作在管理员启动powershell上执行。

  1. 输入wsl –list –verbose查看是否正确安装任何一款wsl2系统。

  2. 输入bcdedit /set hypervisorlaunchtype auto重启。

如果不行,在windows功能里重新启用适用于windows平台的linux子系统。

Powered by Hexo and Hexo-theme-hiker

Copyright © 2022 - 2024 熄火の站 All Rights Reserved.

UV : | PV :