I'm trying to install Docker with WSL 2 on my Windows 10 machine. I thought it was fairly simple but two days later I'm still struggling to make it work.
I've tracked the problem from not being able to install a Linux Distribution from the Windows Store. I'm getting an error:
WslRegisterDistribution failed with error: 0x80370102 Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.
After some more troubleshooting it is (probably) because I can't run this Hyper-V Host Compute Service:
PS C:\Users\jjj> Start-Service "Hyper-V Host Compute Service" Start-Service : Service 'Hyper-V Host Compute Service (vmcompute)' cannot be started due to the following error: Cannot open vmcompute service on computer '.'.
In Windows Event Viewer I get this:
I don't know how to solve this cause I can't find any info online. What is Windows Container Isolation and why can't it be found? At this point vmms is working, vmcompute not.
The Hyper-V Host Compute Service service depends on the Windows Container Isolation service which failed to start because of the following error: The system cannot find the file specified.
Things I've done:
1.) Enabled SVM Mode in BIOS settings (I was using Virtualbox/Vagrant before so this is enabled already)
2.) Enabled the required Windows Features:
3.) Installed Linux kernel update package.
4.) Disabled CFG override system settings of vmcompute.exe
5.) Ran bcdedit /set hypervisorlaunchtype auto
6.) Ran systeminfo but getting
Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.It seems like another hypervisor is running. Removing Hyper-V from Windows Features and running this command again I still get the same message. If I removed "Virtual Machines Platform" then the message is gone and the requirements are shown. Here's the weird part though - if I enable Hyper-V again with "Virtual Machines Platform" disabled, the "A hypervisor has been detected." is again displayed, but I still can't start vmcompute!
7.) I've installed HWiINFO and somehow AMD-V is greyed out so it means it's not supported. But I double checked and SVM Mode IS enabled in BIOS. I'm sure that it's enabled because I was using VirtualBox/Vagrant before which are now uninstalled.
Windows 10 Version 20H2 build 19042.964