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 run WSL2 and it returns Error code: Wsl/Service/CreateInstance/CreateVm/HCS_E_CONNECTION_TIMEOUT #12094

Open
1 of 2 tasks
Eleron8 opened this issue Sep 28, 2024 · 17 comments

Comments

@Eleron8
Copy link

Eleron8 commented Sep 28, 2024

Windows Version

Microsoft Windows [Version 10.0.22631.4249]

WSL Version

2.2.4.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.153.1-2

Distro Version

Can't run any commands within WSL due to connection timeout error.
But I have only one distro and it's ubuntu. I'm pretty sure it's 20.04 or 22.04 version

Other Software

No response

Repro Steps

I just got some update for Windows 11 and after that my WSL2 stopped working.
I turned on Windows features like Hyper-V, Containers and Windows Subsystem for Linux to try to fix that issue, but it didn't help anyway.
Still getting Error code: Wsl/Service/CreateInstance/CreateVm/HCS_E_CONNECTION_TIMEOUT each time

Expected Behavior

I want to be able to run WSL2 without getting timeout error.

Actual Behavior

I run wsl.exe command or run Ubuntu terminal from Windows apps, I'm getting the same result

wsl.exe

The operation timed out because a response was not received from the virtual machine or container.
Error code: Wsl/Service/CreateInstance/CreateVm/HCS_E_CONNECTION_TIMEOUT

Diagnostic Logs

I executed collect-wsl-logs.ps1 script to collect logs. I hope it will be helpful.
WslLogs-2024-09-28_10-18-26.zip

Copy link

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Diagnostic information
Detected appx version: 2.2.4.0
Detected user visible error: Wsl/Service/CreateInstance/CreateVm/HCS_E_CONNECTION_TIMEOUT

@gilberto-BE
Copy link

I am hiving the same issue, also in my case it started after the latest windows 11 update.

@Eleron8
Copy link
Author

Eleron8 commented Sep 28, 2024

I am hiving the same issue, also in my case it started after the latest windows 11 update.

if you find any solution, let me know. Tried many things but couldn't get any result.

@pakalnis
Copy link

pakalnis commented Sep 28, 2024

if you find any solution, let me know. Tried many things but couldn't get any result.

I uninstalled windows update and WSL started to work... but Start button causes critical error now.

@pjacekm
Copy link

pjacekm commented Sep 29, 2024

Same here, uninstalling the update KB5043145 fixed the issue for me. See also here.

@mkotyushev
Copy link

Same issue the WSL2 is broken after some updates, uninstalling the KB5043145 update helps, thanks @pjacekm

@daryllmoya
Copy link

How did you manage to uninstall the KB5043145, I am so frustrated right now.
image
I already ran some checks for corrupted file but there was none
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth

@Rajneesh2008
Copy link

Screenshot (1)
facing the same issue

@pakalnis
Copy link

How did you manage to uninstall the KB5043145, I am so frustrated right now.

https://support.microsoft.com/en-us/windows/how-to-uninstall-a-windows-update-c77b8f9b-e4dc-4e9f-a803-fdec12e59fb0

@daryllmoya
Copy link

How did you manage to uninstall the KB5043145, I am so frustrated right now.

https://support.microsoft.com/en-us/windows/how-to-uninstall-a-windows-update-c77b8f9b-e4dc-4e9f-a803-fdec12e59fb0

I wouldn't be using the terminal for uninstalling it if I haven't tried that already. It will show uninstalled, but after restart, it will still show as installed.

@aerkwannasak
Copy link

Same here, uninstalling the update KB5043145 fixed the issue for me. See also here.

This work ! Thanks

@MatCast
Copy link

MatCast commented Sep 30, 2024

Same happening here. Rolling back the update seems to have fixed the issue.

@bssrdf
Copy link

bssrdf commented Sep 30, 2024

Same here. Almost gave up on it until found this thread. What's going on?

@OneBlue
Copy link
Collaborator

OneBlue commented Oct 1, 2024

Sharing the instructions I posted #12087. If you hit this issue, please:

  • Reproduce the issue by calling into wsl.exe and waiting about 5 seconds
  • While WSL is booting, open task manager, select "System", right click -> "Create live kernel memory dump file" -> "Change - -
  • memory dump settings" -> select "Capture Hypervisor pages", "include nonessential pages", "Capture user pages"
  • Then go back to "System" -> right click, "Create live kernel memory dump file" -> "full live kernel memory dump"
  • Share that file with us (either via Google Drive, OneDrive, or send to [email protected]

For this to work, the dump must be captured while WSL is in that "hung" state (once the error is displayed, you need to start wsl.exe again)

@jackheuberger
Copy link

jackheuberger commented Oct 2, 2024

@OneBlue I was able to reproduce the issue -- I just sent an email

@OneBlue
Copy link
Collaborator

OneBlue commented Oct 2, 2024

Thank you so much @jackheuberger: It hasn't been forwarded to us yet. Would you mind telling the recipient to forward it to the WSL team ?

@jackheuberger
Copy link

@OneBlue Will do. I'm also msft internal and can send it to you directly. Feel free to ping me on Teams

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