When I first tried to use WSL 2, I got the error:
Error: 0x80370109 The operation timed out because a response was not received from the virtual machine or container.
This issue was solved by enabling hyper-v.
I was also reading that WSL 2 needs hyper-v.
So, making sure hyper-v is enabled should be included in the docs page at:
https://docs.microsoft.com/en-us/windows/wsl/wsl2-install
You don't need Hyper-V to use WSL 2. You just need the Virtual Machine Platform component. Did you have this component enabled and still WSL 2 didn't work?
I've got it working only after enabled hyper-v.
Well, I've read it here which says you use hyper-v:
https://docs.microsoft.com/en-us/windows/wsl/wsl2-faq
_Does WSL 2 use Hyper-V? Will it be available on Windows 10 Home?
WSL 2 will be available on all SKUs where WSL is currently available, including Windows 10 Home.
The newest version of WSL uses Hyper-V architecture to enable its virtualization. This architecture will be available in an optional component that is a subset of the Hyper-V feature. This optional component will be available on all SKUs. You can expect to see more details about this experience soon as we get closer to the WSL 2 release._
Although, I still don't have network connectivity on wsl 2. Had them on wsl 1.
HyperV isn't fully same as VM platform. In short, see this YouTube video about the different types of containers and usages.
I've adjusted the FAQ to mention Virtual Machine platform explicitly, and I'll keep an eye on issues to see if enabling Hyper-V fixes it for anyone else. Thanks for filing this!
I did some more digging on the minimal configuration and I got it working after enabling these 3 features:
Hyper-V > Hyper-V Platform > Hyper-V Services
Virtual Machine Platform
Windows Hypervisor Platform
So enabling the full Hyper-V feature is not necessary.
from Microsoft docs
The newest version of WSL uses Hyper-V architecture to enable its virtualization
So yes, WSL2 only uses _some_ services from Hyper-V. The text can be easily misread though.
I have Ubuntu on WSL 2 running on windows 10, and docker for desktop using WSL 2
and I have removed HyperV from Windows completely.
I've got enabled Virtual Machine Platform though as @craigloewen-msft suggests.