microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
16.96k stars 798 forks source link

WSL distro fails to start with "Error code: Wsl/Service/CreateInstance/CreateVm/HCS/ERROR_PATH_NOT_FOUND" #11677

Open bwilliamsgryphon opened 1 month ago

bwilliamsgryphon commented 1 month ago

Windows Version

Microsoft Windows [Version 10.0.22621.3593]

WSL Version

2.1.5.0

Are you using WSL 1 or WSL 2?

Kernel Version

No response

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

  1. Try to start default distribution with by running wsl in PowerShell

Expected Behavior

Distribution starts without error.

Actual Behavior

PowerShell output:

PS C:\> wsl
The system cannot find the path specified.
Error code: Wsl/Service/CreateInstance/CreateVm/HCS/ERROR_PATH_NOT_FOUND

Attempts to install a new distro give a similar error message:

PS C:\> wsl --install Ubuntu-24.04
Ubuntu 24.04 LTS is already installed.
Launching Ubuntu 24.04 LTS...
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070003
Error: 0x80070003 The system cannot find the path specified.

Press any key to continue...
The operation completed successfully.

Diagnostic Logs

WslLogs-2024-06-10_09-54-23.zip

github-actions[bot] commented 1 month ago

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!

Open similar issues:

Closed similar issues:

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

Diagnostic information
Detected appx version: 2.1.5.0
Detected user visible error: Wsl/InstallDistro/WSL_E_INSTALL_PROCESS_FAILED
Detected user visible error: Wsl/Service/CreateInstance/CreateVm/HCS/ERROR_PATH_NOT_FOUND

bwilliamsgryphon commented 1 month ago

I've tried disabling and re-enabling Hyper-V and Virtual Machine Platform in Windows Features as described in #10170 with no improvement.

ghost commented 4 weeks ago

What files do you have under C:\Program Files\WSL\tools?

bwilliamsgryphon commented 4 weeks ago

What files do you have under C:\Program Files\WSL\tools?

@pmartincic Here's the listing:


    Directory: C:\Program Files\WSL\tools

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----         3/11/2024  10:03 PM        1928824 init
-a----         3/11/2024  10:03 PM        1929216 initrd.img
-a----         1/11/2024   3:27 AM       14284928 kernel