Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL 2 docs: Hyper-V should be enabled #445

Closed
taoyichen opened this issue Jul 5, 2019 · 9 comments
Closed

WSL 2 docs: Hyper-V should be enabled #445

taoyichen opened this issue Jul 5, 2019 · 9 comments

Comments

@taoyichen
Copy link

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

@taoyichen taoyichen changed the title Hyper-V should be enabled WSL 2 docs: Hyper-V should be enabled Jul 5, 2019
@craigloewen-msft
Copy link
Collaborator

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?

@taoyichen
Copy link
Author

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._

@taoyichen
Copy link
Author

Although, I still don't have network connectivity on wsl 2. Had them on wsl 1.

@Biswa96
Copy link
Contributor

Biswa96 commented Jul 5, 2019

HyperV isn't fully same as VM platform. In short, see this YouTube video about the different types of containers and usages.

@craigloewen-msft
Copy link
Collaborator

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!

@davevs
Copy link

davevs commented Jul 12, 2019

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.

@nguyenvulong
Copy link

nguyenvulong commented Oct 4, 2020

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.

@diegosasw
Copy link

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.

@taoyichen
Copy link
Author

Please start your own thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants