WSL icon indicating copy to clipboard operation
WSL copied to clipboard

wslc: session never starts on Windows Server 2022 - 'Timed out waiting for dockerd to start', 0x800705b4

Open moocower opened this issue 3 months ago • 7 comments

Windows Version

10.0.20348.5499 (Windows Server 2022)

WSL Version

2.9.4.0 — Kernel 6.18.35.2-1, WSLg 1.0.79, MSRDC 1.2.7214, Direct3D 1.611.1-81528511, DXCore 10.0.26100.1

Are you using WSL 1 or WSL 2?

WSL 2

Repro Steps

  1. Install WSL 2.9.4.0 (MSI) on Windows Server 2022.
  2. Run any session-backed command, e.g. wslc container list --all.

Expected Behavior

The session starts and the command returns (empty list on a fresh install).

Actual Behavior

Every session-backed wslc command hangs, then fails after ~30 s:

This operation returned because the timeout period expired.
Error code: 0x800705b4

wslc system session list returns instantly and empty, so the CLI reaches the service — only operations that must start a session fail. wsl --version works.

Diagnostic detail

Nothing fails on the Windows side. In Microsoft-Windows-Hyper-V-Compute-Operational the utility VM starts normally, devices attach (FlexibleIov, then SCSI attachments for storage.vhdx and swap.vhdx) each returning 0x00000000, then there are exactly 30 seconds of silence, then the system exits. Microsoft-Windows-Hyper-V-Worker-Admin logs event 18508, "'Virtual Machine' was shut down by the guest operating system." There are no Error or Warning events in System, Application or any Hyper-V channel for the whole window (1476 events, all Informational).

An ETW trace (wpr.exe -start wsl.wprp!WSL -filemode, reproduce, wpr -stop; 31,550 events) contains the guest-side reason:

Msg:[Timed out waiting for dockerd to start]
Failed to create session: <session-name>
DockerdStarted ... DockerdExit
/usr/bin/dockerd --containerd /run/containerd/containerd.sock

containerd 2.2.4 itself starts normally — the skip loading plugin lines (btrfs, zfs, devmapper, erofs) are benign, and

level=error msg="failed to load cni during init, please check CRI plugin status before setting up network for pods"
  error="cni config load failed: no network config found in /etc/cni/net.d: cni plugin not initialized"

is immediately followed by Start cni network conf syncer for default, so it does not look fatal. dockerd never signals ready, so the session is never created.

Also present, 12x, alongside learned client routable IPv6 address from outgoing traffic and tx packet ignored from the network proxy:

io error: A socket operation was attempted to an unreachable network. (os error 10051)

And on the VHD handles (the .rct ones appear benign, the swap one may not be):

Failed to create handle for the file backing virtual disk '...\storage.vhdx.rct'. Status = 0xC0000034
Failed to create handle for the file backing virtual disk '...\swap.vhdx'.      Status = 0xC0000043  (STATUS_SHARING_VIOLATION)
Failed to create handle for the file backing virtual disk '...\swap.vhdx.rct'.  Status = 0xC0000034

Things ruled out

  • Not a stale install — repair (msiexec /fvomus) and a full uninstall + clean reinstall of 2.9.4.0 both behave identically.
  • Not stale session state — deleting all session stores and starting from a completely fresh session fails the same way.
  • Not resources — reproduced with defaults, with cpuCount 2 / memorySize 2GB / maxStorageSize 16GB, and with cpuCount 4 / memorySize 4GB. Host has ample free memory and disk.
  • Not elevation — fails identically elevated and non-elevated (separate wslc-cli-admin-* and wslc-cli-* session stores).
  • Not networking mode — same with .wslconfig [wsl2] networkingMode=nat, dnsTunneling=false, firewall=false.
  • Not the CPU baseline of #40783 — that issue dies before userspace on a pre-AVX2 CPU. Here the guest reports AVX/AVX2/SSE4.2/BMI2 all supported, Hyper-V processor compatibility masking is off, and containerd demonstrably boots and logs, so the kernel starts fine.
  • Not Hyper-V prerequisites — HypervisorPlatform enabled, Dynamic Memory off, ExposeVirtualizationExtensions on, MAC address spoofing on.

Environment note

This is a Windows Server 2022 guest running under Hyper-V with nested virtualization enabled. I could not find a statement in the docs about whether WSL containers are supported on Windows Server or nested, so that may simply be out of scope — if so, a clear unsupported-configuration error rather than a 30-second timeout would save a lot of digging.

I still have the ETL and can share it or run further traces on request.

moocower avatar Aug 23 '26 13:08 moocower

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:

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

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

If this is a networking issue, please use .\collect-wsl-logs.ps1 -LogProfile networking instead, 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'.

github-actions[bot] avatar Aug 23 '26 13:08 github-actions[bot]

Simpler repro, on a completely clean state — WSL uninstalled and reinstalled, all session stores deleted, zero images and zero containers:

wslc image ls                  -> 0x800705b4 after ~30s
wslc run --rm hello-world      -> 0x800705b4 after ~30s
wslc container list --all      -> 0x800705b4 after ~30s
wslc system session list       -> returns instantly, empty
wsl --version                  -> works

So it is not related to any particular image, container or mount — wslc run --rm hello-world from the docs fails on a clean install. The failure is entirely at session creation, and wslc system session list responding instantly shows the CLI reaches the service; only starting a session fails.

moocower avatar Aug 23 '26 13:08 moocower

Additional data point that rules out virtualization as a factor: I can reproduce this on two independent Windows Server 2022 machines, one of them bare metal.

Machine Environment CPU Result
A Bare metal, Hyper-V host Xeon Gold 5118 (Skylake-SP) 0x800705b4
B Hyper-V guest on A, nested virtualization virtualized, reports AVX/AVX2/SSE4.2/BMI2 0x800705b4

Both run Windows Server 2022 (10.0.20348) and WSL 2.9.4.0, both installed from the same MSI, and both fail identically on wslc run --rm hello-world with zero images and zero containers.

So this is not nested virtualization, not a virtualized-CPU feature mask, and not host/guest interaction — machine A has no hypervisor above it. The common factor is Windows Server 2022 + wslc 2.9.4.

If WSL containers are simply not supported on Windows Server, that would explain both, and a clear unsupported-platform error at session creation would be far better than a 30-second timeout with no error logged anywhere on the Windows side.

moocower avatar Aug 23 '26 13:08 moocower

Important isolation: plain WSL2 works fine on the same machine — only wslc fails.

On one of the Windows Server 2022 machines above, with wslc run --rm hello-world still failing at session creation:

wsl --install -d Debian --no-launch      -> OK
wsl -d Debian -u root -- uname -r        -> 6.18.35.2-microsoft-standard-WSL2
                                            Debian GNU/Linux 13 (trixie), 6 CPUs, 7.9 GB

The distro boots in a couple of seconds and is fully usable. Note it runs the same 6.18.35.2 kernel that the wslc session VM uses — so the kernel, the hypervisor, nested virtualization, and the Server 2022 platform are all demonstrably healthy. Docker CE installed inside that distro also works normally (docker run --rm hello-world pulls and runs).

So the failure is specific to the wslc session bootstrap path, not to WSL2 itself. Given the trace shows containerd starting and then Timed out waiting for dockerd to start, the problem looks contained to whatever supervises dockerd inside the wslc session VM.

moocower avatar Aug 23 '26 13:08 moocower

/logs

OneBlue avatar Aug 24 '26 17:08 OneBlue

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, 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

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

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.

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!