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

Cant change Ubuntu from WSL1 to 2 in windows 10 #10004

Closed
1 of 2 tasks
mra-h opened this issue Apr 20, 2023 · 8 comments
Closed
1 of 2 tasks

Cant change Ubuntu from WSL1 to 2 in windows 10 #10004

mra-h opened this issue Apr 20, 2023 · 8 comments

Comments

@mra-h
Copy link

mra-h commented Apr 20, 2023

Windows Version

Microsoft Windows [Version 10.0.19045.2604]

WSL Version

1.2.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

4.4.0-19041-Microsoft

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

wsl --set-version Ubuntu 2

Expected Behavior

Should smoothly change from WSL1 to WSL2

Actual Behavior

PS C:\windows\system32> wsl -l -v
  NAME      STATE           VERSION
* Ubuntu    Stopped         1
PS C:\windows\system32> wsl --set-version Ubuntu 2
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Conversion in progress, this may take a few minutes.
Error: 0xc0000606
Error code: Wsl/Service/CreateVm/0xc0000606

Diagnostic Logs

WslLogs-2023-04-20_18-49-34.zip

@Biswa96
Copy link

Biswa96 commented Apr 20, 2023

Is Control Flow Guard (CFG) disabled in your system? If yes, try to enable it first.

@mra-h
Copy link
Author

mra-h commented Apr 20, 2023

It is on. I tried as well with with it off but still same issue. It is a weird error I havent found it anywhere online

@Biswa96
Copy link

Biswa96 commented Apr 20, 2023

The error code 0xc0000606 is defined in Windows SDK as STATUS_STRICT_CFG_VIOLATION. That means "The specified image file was blocked from loading because it does not enable a feature required by the process: Control Flow Guard."

@mra-h
Copy link
Author

mra-h commented Apr 20, 2023

No idea then. How comes it can work in WSL 1 and not 2? Shouldnt the same error be raised?

@DraymondBruce
Copy link

I got the same issue, even after I upgraded to win11. CFG was enabled when this error occured. After I disabled CFG, the error didnt show up but wsl --list hang forever.

@mra-h
Copy link
Author

mra-h commented Apr 21, 2023

I finally made it work. Disabling/Enabling CFG globally did not work. I had to follow these steps but for both of these programs.

image

@mra-h mra-h closed this as completed Apr 21, 2023
@AlstoX
Copy link

AlstoX commented May 27, 2023

I finally made it work. Disabling/Enabling CFG globally did not work. I had to follow these steps but for both of these programs.

image

and you, my bro, you are the real hero.
for others:
It means you need to disalbe CFG of these two programs
image

@wingmor99
Copy link

I finally made it work. Disabling/Enabling CFG globally did not work. I had to follow these steps but for both of these programs.

image

You are my Hero!!!!,

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

5 participants