WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WSL does not work in 27823, and rollback to 27818 will keep this problem

Open realcwj opened this issue 8 months ago • 11 comments

Windows Version

Microsoft Windows [Version 10.0.27823.1000]

WSL Version

2.4.13.0

Are you using WSL 1 or WSL 2?

  • [x] WSL 2
  • [ ] WSL 1

Kernel Version

no response

Distro Version

  1. Ubuntu 2. Ubuntu 20.04 LTS

Other Software

No response

Repro Steps

  1. Install Windows 27818
  2. Setup WSL and Ubuntu, and make sure they work normally
  3. Update to 27823
  4. Open Ubuntu

Expected Behavior

work normally

Actual Behavior

got no response

Image

Image

Image

Image

After maybe 30 minutes, ubuntu reports an error: Wsl/Service/CreateInstance/CreateVm/HCS/HCS_E_SERVICE_NOT_AVAILABLE

Diagnostic Logs

Windows Insider Feedback Hub: https://aka.ms/AAv9urw

WSL Logs: WslLogs-2025-03-31_09-29-26.zip

Similar problem: #12735

realcwj avatar Mar 31 '25 01:03 realcwj

Diagnostic information
Detected appx version: 2.4.13.0

github-actions[bot] avatar Mar 31 '25 01:03 github-actions[bot]

same here

luqiuzhi avatar Mar 31 '25 04:03 luqiuzhi

I'm experiencing the same issue. When I open a shell and wait a long time I get the error code below. Please fix! Wsl/Service/CreateInstance/CreateVm/HCS/HCS_E_SERVICE_NOT_AVAILABLE

furopi avatar Apr 01 '25 14:04 furopi

Same here in the german version of Windows 11 canary insider. In the past a return to the previous version worked but this time also not working.

zackmuc avatar Apr 02 '25 17:04 zackmuc

UPDATE:

I finally find a method to [TEMPORARILY] fix this problem: turn off the Hyper-V option, and it works.

Thoughts: Turn off this option will turn on Hyper-V, and turn on this option will turn off Hyper-V?? WTF

Image

NOTE: This is only tested in the 27823 version.

And for anyone who meets this problem in the future: this is not a right solution.

@zackmuc @furopi @luqiuzhi

realcwj avatar Apr 10 '25 01:04 realcwj

yeah it turns back to WSL1 i think @realcwj can you check the services list and make a screenshot of Hyper-V Services and their running status?

zackmuc avatar Apr 10 '25 13:04 zackmuc

I finally find a method to [TEMPORARILY] fix this problem: turn off the Hyper-V option, and it works.

Interesting. I wonder if your machine got into a weird state. Do you get any error if you run: sfc /scannow ?

OneBlue avatar Apr 11 '25 19:04 OneBlue

yeah it turns back to WSL1 i think @realcwj can you check the services list and make a screenshot of Hyper-V Services and their running status?

Image

realcwj avatar Apr 15 '25 03:04 realcwj

I finally find a method to [TEMPORARILY] fix this problem: turn off the Hyper-V option, and it works.

Interesting. I wonder if your machine got into a weird state. Do you get any error if you run: sfc /scannow ?

Nothing...

Image

realcwj avatar Apr 15 '25 03:04 realcwj

Thoughts: Turn off this option will turn on Hyper-V, and turn on this option will turn off Hyper-V?? WTF

Thanks so much for sharing this workaround! It’s really frustrating when the system behaves so counterintuitively — turning off Hyper-V to actually enable it feels like a paradox. Your discovery is super helpful for those stuck with this issue right now. Hopefully Microsoft will fix this soon, but until then, your solution is a lifesaver. Appreciate you taking the time to dig into this and share it with the community!

rucomcode avatar Apr 19 '25 13:04 rucomcode

I found that Hyper-V related services are disabled. Simply re-enable them might recover the functionality. ("might" because there are too many of them. I have no idea which is the right one to enable, and I don't want to simply enable them all. I instead go to the route disable the Hyper-V in optional features and re-enable it.)

damnkiwi6120 avatar May 10 '25 16:05 damnkiwi6120

I finally find a method to [TEMPORARILY] fix this problem: turn off the Hyper-V option, and it works.

Interesting. I wonder if your machine got into a weird state. Do you get any error if you run: sfc /scannow ?

Nothing...

Image

Interesting. Could you share /dumps of WSL processes when things are "stuck" while Hyper-V is enabled ?

OneBlue avatar Jun 24 '25 19:06 OneBlue

Hello! Could you please provide logs and process dumps to help us better diagnose your issue?

To collect WSL logs and dumps, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1 -Dump

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

Thank you!

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue.

Thank you!