WSL2 / Docker “CreateVm timed out” error on Windows

When installing the Edge agent on Windows, Docker Desktop may fail to start with a WSL virtual-machine error such as:

The operation timed out because a response was not received from the virtual machine or container.
Wsl/InstallDistro/Service/RegisterDistro/CreateVm/HCS_E_CONNECTION_TIMEOUT

What this means

WSL2 runs Linux inside a lightweight Hyper-V virtual machine, and Docker Desktop runs on top of WSL2. This error means Windows creates that VM but never gets a response from it, so it times out. Because it fails the same way for every Linux distribution, the problem isn't Docker, the distribution, or the Edge agent — it's that hardware virtualization isn't available to Windows on this machine.

This is a host-environment configuration issue and is resolved on the machine hosting the Edge. The fix depends on whether the host is a physical PC or itself a virtual machine.

📘

First, identify the machine

Open Task Manager → Performance → CPU and check the lower-right corner:

  • Virtual machine: No → physical PC. Follow Option A.
  • Virtual machine: Yes → this is a VM (VDI, cloud, or a Hyper-V/VMware/VirtualBox guest). Follow Option B.

Option A — Physical PC

Most likely cause: hardware virtualization is switched off in the BIOS.

  1. Reboot and enter BIOS/UEFI (usually F2, F10, or Del at startup).
  2. Enable Intel VT-x or AMD-V / SVM Mode (under Advanced, CPU Configuration, or Security). Save and exit.
  3. Back in Windows, in an Admin PowerShell, enable the platform features:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  1. Restart the PC — required for the features to take effect.
  2. Install the distribution: wsl --install -d Ubuntu

Confirm it worked

After the restart and install, check that a distribution is registered at version 2:

wsl -l -v

You want Ubuntu listed with VERSION 2. Once it is, start Docker Desktop — the "WSL not installed" and CreateVm errors will be gone, and you can resume the Edge agent install.

👍

Recommended for production

For a reliable, long-running deployment we recommend running the Edge agent on a Linux host (Ubuntu or Debian) rather than Windows. Docker runs natively there — no WSL or Hyper-V layer — and it starts automatically on boot, avoiding this entire class of virtualization issue.


Did this page help you?