虚拟机平台已启用,并且在 BIOS 中启用了运行虚拟化。
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19042 N/A Build 19042
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Owner: Craig
Registered Organization: N/A
Product ID: 00330-52591-49274-AAOEM
Original Install Date: 5/9/2020, 5:24:12 PM
System Boot Time: 9/25/2020, 3:03:05 PM
System Manufacturer: Dell Inc.
System Model: XPS 15 7590'
PS C:\windows\system32> wsl -l -v
NAME STATE VERSION
* Ubuntu-20.04 Stopped 1
PS C:\windows\system32> wsl --set-version Ubuntu-20.04 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
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
以前这个方法有用。我尝试卸载虚拟机平台、WSL 和 Hyper-V 多次。
如果我尝试运行 Hyper-V 机器,我会看到“无法启动虚拟机 VM 名称,因为其中一个 Hyper-V 组件未运行。
假设它认为虚拟机平台没有运行。
我确实下载并安装了 WSL 更新,我已经运行了 Windows 更新。