Repository navigation
Open
Labels
emailed-logsLogs have been emailed
Description
Windows Version
Microsoft Windows [Version 10.0.26100.2605]
WSL Version
WSL-Version: 2.3.26.0
Kernelversion: 5.15.167.4-1
WSLg-Version: 1.0.65
MSRDC-Version: 1.2.5620
Direct3D-Version: 1.611.1-81528511
DXCore-Version: 10.0.26100.1-240331-1435.ge-release
Windows-Version: 10.0.26100.2605
Kernel Version
5.15.167.4-1
Distro Version
Ubuntu 24.04
WSL 1 or WSL 2?
- WSL 2
Repro Steps
- Start WSL2 normally (working state, shell sessions open)
- Put Windows into standby/sleep overnight
- Resume Windows from standby
- Existing WSL2 shell sessions still work (inside the VM)
- Attempt to open new WSL session via
wslcommand → hangs indefinitely Get-Service LxssManagershows "Running"Start-Service LxssManagerfails withWsl/Service/E_UNEXPECTED
Expected Behavior
WSL2 should recover gracefully after Windows resumes from sleep/standby, or at minimum provide a way to restart the services without requiring a full system reboot.
Actual Behavior
After sleep/wake, WSL2 enters a "zombie running" state:
- All services (LxssManager, vmcompute, vmms) appear "Running" in
Get-Service - But vsock communication between Windows and the WSL2 VM is broken
- The VM itself is still running (existing shell sessions inside WSL work!)
- New connections from Windows side fail with Error 110 (ETIMEDOUT)
Event Log evidence:
- NDIS virtual network adapter fails to restore after standby
- Hyper-V vmms logs show no errors (services think they're healthy)
Recovery attempts that fail:
Restart-Service LxssManager→ hangsStop-Service vmcompute -Force→ causes system instability (details sent to [email protected])
Only working recovery: Full system reboot via Restart-Computer
Detailed Analysis
I have documented the complete incident with Event Log analysis, diagnostic steps, and system configuration in this gist:
Related Issues
- WSL is non-responsive after waking from hibernate #8696 - WSL2 not working after sleep (248+ upvotes, same root cause)
- Blue Screen of Death #8459 - Issues when stopping vmcompute (closed)
- enable wsl2 cause random bsod bluescreeen on win11 #8205 - WSL2 hangs after sleep
- Getting BSOD saying dxgkrnl.sys failed after upgrade to wsl 2.0.9.0 #10750 - Sleep/wake networking issues
Other Software
- GPU: NVIDIA with WSLg enabled
- Hyper-V features enabled
- Docker Desktop installed (not running during incident)
Request
- Could the WSL team investigate why vsock communication breaks during sleep/wake while the VM stays alive?
- Is there a safe way to restart WSL services without a full reboot when this state occurs?
Note: Additional diagnostic data (minidump) has been submitted separately to [email protected] per contribution guidelines.
Reacted by Phil Barker, Matt Smarte, Wildan Maulana Syahidillah and Caspar Addyman
Metadata
Metadata
Assignees
Labels
emailed-logsLogs have been emailed
Activity
github-actions commentedon Dec 31, 2025
Logs are required for review from WSL team
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
How to collect WSL logs
Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done.
If this is a networking issue, please use collect-networking-logs.ps1, following the instructions in Collect WSL logs for networking issues
Once completed please upload the output files to this GitHub issue.
See Collect WSL logs (recommended method).
If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.
dodjango commentedon Dec 31, 2025
Log Collection Note
The incident described in this issue has been resolved via system reboot (the only working recovery method). Therefore, current logs would not show the failure state.
However, I have documented extensive diagnostics from the incident:
Evidence in the Gist
The detailed analysis gist contains:
Key Diagnostic Finding
The critical observation: existing WSL2 shell sessions continued to work inside the VM during the failure. This proves:
Additional Data
A minidump from the subsequent system crash (when attempting
Stop-Service vmcompute -Force) has been submitted to[email protected]per contribution guidelines.If current-state logs would still be helpful for baseline comparison, I'm happy to run
collect-wsl-logs.ps1and attach them.dodjango commentedon Dec 31, 2025
/emailed-logs
github-actions commentedon Dec 31, 2025
Diagnostic information
nschoonm commentedon Feb 17, 2026
+1
developer992 commentedon May 20, 2026
Any update on this? This is a big problem.
gtower86 commentedon May 28, 2026
Same failure mode here, with wire-level evidence that I believe confirms the OP's vsock hypothesis as the actual mechanism - and pins the failure instant to Modern Standby entry, not wake.
TL;DR
0x8007274c)Repro environment
powercfg /a); no S3 fallback availableAfter 3+ hours in Modern Standby,
wslreturnsWsl/Service/0x8007274c("A connection attempt failed because the connected party did not properly respond after a period of time...").hcsdiag listreports the VM asRunning.wsl --shutdowndoes not recover. OnlyRestart-Computerworks (and must beRestart, not Shut Down - fast startup preserves the broken state).Wire-level: the disconnect happens AT MS-entry
I run an autonomous diagnostic harness that snapshots ETW + procdumps when the wedge forms. An autonomous capture on 2026-05-27 21:35:46 caught the failure 13 seconds post-formation. The ETL covers the full sleep cycle. PerfView decodes the
Microsoft.Windows.Subsystem.LxssTraceLogging provider cleanly.At the exact instant of MS-entry (Kernel-Power Event 506), wslrelay.exe fires 9 simultaneous events from 9 different threads:
Nine live host↔guest hvsocket connections, ungracefully disconnected within 1.3 seconds. Not closed, not aborted, not retried - the canonical "socket plane was yanked" error.
Then 3.5 hours of deep MS with zero Lxss provider activity.
At wake, the same wslrelay.exe retries and gets:
The shift from WSAENOTCONN at disconnect → WSAETIMEDOUT on reuse is the textbook signature of "socket plane gone, retries time out because there's no listener."
Host-side thread state (procdump of wslservice, 13s post-formation)
Matches OP's observation that services appear "Running" but can't talk to the VM:
Dmesg,GuestTelemetryLogger,CrashDumpCollection,Telemetry,DistroExitCallback, +2 unnamed) blocked indefinitely inKERNELBASE!WaitForMultipleObjectsatwslservice+0x1af9b4/+0x1b2bcd- host-side waiters for guest events that will never comeEventPairLowCOM-RPC waits - still blocked 12+ hours laterwslservice+0x20b8f8(internal heartbeat/refresh operation also blocked on the dead channel; times out and clears within hours)The named threads stay blocked across the entire sleep cycle and through any number of subsequent MS cycles. Each subsequent MS-exit adds another waiter to the cohort (confirmed by comparing two captures 11h apart - same TIDs persist, plus one new TID created at the exact second of the morning's MS-exit).
Hyper-V network correlate
In the same ETL,
Microsoft-Windows-Hyper-V-VfpExt(Virtual Filtering Platform) fires 1081 events in a 20-second window at MS-entry, primarilyEventID(965)(865 events). Consistent with the virtual NIC's packet processing pipeline being purged at the same instant the AF_HYPERV sockets disconnect.Hypothesis
AF_HYPERV/hvsocket lifetime is not preserved across Modern Standby entry on this hardware class. The disconnect is initiated by the Hyper-V/vmbus layer (not by wslservice or wslrelay) - no host-side state machine activity precedes the WSAENOTCONN burst. Worth checking whether the MS-entry coordination between vmcompute / Hyper-V Virtual Filtering Platform / hvsocket has a race against deeper DRIPS power states.
Note: the default
wsl.wprpprofile does NOT subscribe toMicrosoft.Windows.HyperV.Socket(the hvsocket TraceLogging provider) - that's only in theWSL-HvSocketnamed profile. Anyone trying to debug this should switch to that profile (or toWSL-Networking) - the default profile collects the symptoms but not the causing transition.Available evidence
Happy to share via OneDrive or
[email protected]:See also
feat(debug): add doctor-live self-heal and vmIdleTimeout defense-in-d…
InfantLab commentedon Aug 31, 2026
Also hitting this on Windows 11 Insider Dev — devcontainer/Docker Desktop (WSL2 backend) becomes unusable after the host hibernates: containers report "Up" but
docker execfails at thensexec/setnslayer (failed to open /proc/<pid>/ns/ipc: No such file or directory). Confirmedwsl --shutdown, restartingvmcompute/LxssManager, and removing/recreating the container do not fix it — only a full Windows restart recovers.Worth flagging for anyone seeing a sudden uptick: Windows is rolling out a new adaptive hibernate policy (Insider Preview Build 28120.2630, July 2026) that hibernates more readily at lower battery to reduce Modern Standby drain. That means machines that previously stayed in Modern Standby (and survived fine) are now escalating to full Hibernate far more often — so this long-open bug is getting tripped more frequently, not because anything about our setup changed. For anyone doing dev container work on a laptop, this is a genuine showstopper: the workflow depends on WSL2 state surviving sleep, and right now it doesn't.
luxferre commentedon Sep 9, 2026
Independent reproduction on 2026-09-01, after upgrading to WSL 2.9.9 on 2026-08-26.
Environment:
.wslconfig: mirrored networking,memory=48GB,swap=0,autoMemoryReclaim=gradualThe incident followed resume from Windows hibernate after a Docker-heavy workload. Existing Ubuntu/Codex processes remained alive, although keyboard input in established sessions lagged. A new Windows Terminal Ubuntu tab never reached a prompt.
Host-side observations:
wsl --list --verbosestill completed and reported both Ubuntu and docker-desktop as Running.wsl -d Ubuntu --exec /bin/truedid not start and remained hung for more than 30 seconds.start wsl integration for distro Ubuntu. Itswsl.exe -d Ubuntu ...probes failed withcontext canceled, while Docker Desktop remained at Applying settings.Disabling Ubuntu integration and restarting Docker Desktop did not help. I then fully stopped Docker Desktop and successfully terminated only the docker-desktop distro. After waiting 30 seconds, new Ubuntu session creation was still hung. Finally,
wsl --shutdownitself remained hung for more than one minute. A full Windows Restart recovered both WSL session creation and Docker.This matches the user-visible failure in this issue and the new-session-only signature documented in #41286. I did not capture guest-kernel or hvsocket ETW evidence before reboot, so this is symptom-level evidence only.
developer992 commentedon Sep 14, 2026
They will never fix this because a) they don't know how ( unlikely, they have 200.000 engineers ) or don't care because they'd rather you we use powershell than WSL. Microsoft has and will always despise linux and do everything they can do make your life harder not easier.
derekl-beep commentedon Nov 4, 2026
Turning off the hibernation timeout fixes this issue for me on my Windows PC.
Same failure mode (new
wslsessions hang, existing ones fine, onlyRestart-Computerrecovers). WSL 2.6.3.0, Windows 11, laptop on battery overnight, Modern Standby. Before this, WSL hung almost every night for about a week, and VS Code Remote-WSL froze most nights for months.Kernel-PowerEvent 42 showed Modern Standby from around midnight, thenHibernate from Sleep - Fixed Timeout~5 hours later, matching my DC hibernate timeout (18000 s).Workaround (elevated prompt):
Result: 2 nights (update before posting) with no WSL hang and no VS Code freeze. The machine still hibernates nightly via
Standby Battery Budget Exceeded, and WSL survives that.Caveats: only a couple of nights, so not a confirmed fix, and I can't explain why it helps, since another comment here traces the vsock teardown to Modern Standby entry. I have no logs from a failing night.
If you see
Fixed Timeoutin Event 42, it may be worth trying.