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

Can't enable WSL2 #4817

Closed
leo-petrucci opened this issue Jan 16, 2020 · 4 comments
Closed

Can't enable WSL2 #4817

leo-petrucci opened this issue Jan 16, 2020 · 4 comments
Labels

Comments

@leo-petrucci
Copy link

  • Your Windows build number: Microsoft Windows [Version 10.0.19041.1]

  • What you're doing and what's happening:

Enable WSL

PS C:\WINDOWS\system32> dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

Deployment Image Servicing and Management tool
Version: 10.0.19041.1

Image Version: 10.0.19041.1

Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.

Enable Virtual Machine

PS C:\WINDOWS\system32> dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Deployment Image Servicing and Management tool
Version: 10.0.19041.1

Image Version: 10.0.19041.1

Enabling feature(s)
[==========================100.0%==========================]
The operation completed successfully.

Set default version

PS C:\WINDOWS\system32> wsl --set-default-version 2
For information on key differences with WSL 2 please visit https://aka.ms/wsl2

Check WSL version

PS C:\WINDOWS\system32> wsl --list --verbose
  NAME            STATE           VERSION
* Ubuntu          Stopped         1
  Ubuntu-16.04    Stopped         1
  • What's wrong / what should be happening instead: "VERSION" should be set to "2"

WSL 1 is working just fine, I just can't seem to enable WSL2. Any idea what's happening? Is it because I'm trying to enable WSL2 on pre-existing installations of Ubuntu? Should I be starting fresh?

@therealkenc
Copy link
Collaborator

You set the default version. That doesn't affect your existing distro installs, which are version 1. You want wsl.exe --set-version Ubuntu-16.04 2. Or, perhaps better if you're just getting started with your disros anyway, delete them. When you install the next time it will be version 2. Because... now you've set the default to 2.

@leo-petrucci
Copy link
Author

I tried setting the specific distro, it also didn't work.

@ghost
Copy link

ghost commented Mar 20, 2021

I have that problem too. Let's reopen this issue

@therealkenc
Copy link
Collaborator

Discussion topic at #6505

@microsoft microsoft locked and limited conversation to collaborators Mar 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants