microsoft / microsoft/WSL

ConfigureGpu/HCS/ERROR_PATH_NOT_FOUND error when starting WSL2 VM after Windows update

Open
#41,473 8 comments 0 reactions 0 assignees View on GitHub
file system
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

### Windows Version

Microsoft Windows [version 10.0.26200.9168]

### WSL Version

2.7.12.0

### Are you using WSL 1 or WSL 2?

- [x] WSL 2
- [ ] WSL 1

### Kernel Version

6.18.33.2-2

### Distro Version

Ubuntu 22.04

### Other Software

_No response_

### Repro Steps

After the last Windows Update this week, my VM Ubuntu 22.04 does not start anymore. When I run "wsl -d "Ubuntu-22.04", I get the error message : The specified path cannot be found.
Error code : Wsl/Service/CreateInstance/CreateVm/**ConfigureGpu**/HCS/ERROR_PATH_NOT_FOUND

If I change "**supportGpu=false**" in the **.wslconfig** file, the VM start and Linux is running but without video acceleration obviously...

### Expected Behavior

-

### Actual Behavior
"**supportGpu=true**" in the **.wslconfig** file
```
C:\windows\system32> wsl -d "Ubuntu-22.04
Error code : Wsl/Service/CreateInstance/CreateVm/ConfigureGpu/HCS/ERROR_PATH_NOT_FOUND
```

### Diagnostic Logs

```
C:\windows\system32> wsl --status
Distribution par défaut : Ubuntu-22.04
Version par défaut : 2
C:\windows\system32> wsl --version
Version WSL : 2.7.12.0
Version du noyau : 6.18.33.2-2
Version WSLg : 1.0.73.2
Version MSRDC : 1.2.7214
Version direct3D : 1.611.1-81528511
Version de DXCore : 10.0.26100.1-240331-1435.ge-release
Version de Windows : 10.0.26200.9168
```

```
C:\windows\system32> Get-VMHostPartitionableGpu
Name : \\?\PCI#VEN_1002&DEV_1900&SUBSYS_8E15103C&REV_B5#4&8490451&0&0041#{064092b3-625e-43bf-9
eb5-dc845897dd59}\GPUPARAV
ValidPartitionCounts : {32}
PartitionCount : 32
TotalVRAM : 1000000000
AvailableVRAM : 1000000000
SupportsIncomingLiveMigration : False
MinPartitionVRAM : 0
MaxPartitionVRAM : 1000000000
OptimalPartitionVRAM : 1000000000
TotalEncode : 18446744073709551615
AvailableEncode : 18446744073709551615
MinPartitionEncode : 0
MaxPartitionEncode : 18446744073709551615
OptimalPartitionEncode : 18446744073709551615
TotalDecode : 1000000000
AvailableDecode : 1000000000
MinPartitionDecode : 0
MaxPartitionDecode : 1000000000
OptimalPartitionDecode : 1000000000
TotalCompute : 1000000000
AvailableCompute : 1000000000
MinPartitionCompute : 0
MaxPartitionCompute : 1000000000
OptimalPartitionCompute : 1000000000
CimSession : CimSession : .
ComputerName : AAP-5CG60514HB
IsDeleted : False

Name : \\?\PCI#VEN_1022&DEV_1502&SUBSYS_15021022&REV_00#4&a70ac54&0&0142#{064092b3-625e-43bf-9
eb5-dc845897dd59}\GPUPARAV
ValidPartitionCounts : {32}
PartitionCount : 32
TotalVRAM : 1000000000
AvailableVRAM : 1000000000
SupportsIncomingLiveMigration : False
MinPartitionVRAM : 0
MaxPartitionVRAM : 1000000000
OptimalPartitionVRAM : 1000000000
TotalEncode : 18446744073709551615
AvailableEncode : 18446744073709551615
MinPartitionEncode : 0
MaxPartitionEncode : 18446744073709551615
OptimalPartitionEncode : 18446744073709551615
TotalDecode : 1000000000
AvailableDecode : 1000000000
MinPartitionDecode : 0
MaxPartitionDecode : 1000000000
OptimalPartitionDecode : 1000000000
TotalCompute : 1000000000
AvailableCompute : 1000000000
MinPartitionCompute : 0
MaxPartitionCompute : 1000000000
OptimalPartitionCompute : 1000000000
CimSession : CimSession : .
ComputerName : AAP-5CG60514HB
IsDeleted : False

```
My AMD Radeon video card is functioning properly with the lastest driver from Windows Update.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with `wsl -d "Ubuntu-22.04"`, then compare `wsl --status`, `wsl --version`, and `Get-VMHostPartitionableGpu` while `supportGpu=true` is set in `.wslconfig`. Done means the Ubuntu 22.04 WSL2 VM starts with GPU support enabled after the Windows update, without the ConfigureGpu/HCS/ERROR_PATH_NOT_FOUND error.

Written by the indexing model from the issue text.

Assessment

Domain
computer-graphics, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.