windows→WSL
1.控制面板-程序和功能-启用或关闭windows功能-适用于Linux的Windows子系统(勾选)
2.重启
3.WindowsPowerShell(管理员身份运行):bcdedit /set hypervisorlaunchtype auto
4.重启
WSL→windows
1.控制面板(取消勾选)
2.重启
3.WindowsPowerShell(管理员身份运行):bcdedit /set hypervisorlaunchtype off
4.重启
顺带吐槽一下,装了wsl和启用后确实设备速度会变慢