Open Biswadeepgiri opened 1 week ago
I'm seeing the same issue on a new Copilot+ PC (Yoga Slim 7X). Diagnostics ID below.
04DBD12A-C1AF-44C2-82CD-CEAAA750E0A0/20240621053230
Running the command in the diagnostics in the window shows:
PS C:\Users\jlam> wsl -d docker-desktop -u root -e wsl-bootstrap version
<3>WSL (9) ERROR: CreateProcessParseCommon:711: Failed to translate C:\Users\jlam
<3>WSL (9) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\PowerShell\7
<3>WSL (9) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\system32
<3>WSL (9) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows
<3>WSL (9) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\System32\Wbem
<3>WSL (9) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\System32\WindowsPowerShell\v1.0\
<3>WSL (9) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\System32\OpenSSH\
<3>WSL (9) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\PowerShell\7\
<3>WSL (9) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Docker\Docker\resources\bin
<3>WSL (9) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\jlam\AppData\Local\Microsoft\WindowsApps
<3>WSL (9) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\jlam\AppData\Local\Programs\Microsoft VS Code\bin
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
<3>WSL (9) ERROR: CreateProcessEntryCommon:505: execvpe wsl-bootstrap failed 8
<3>WSL (9) ERROR: CreateProcessEntryCommon:508: Create process not expected to return
Hi,
from the error code Wsl/Service/RegisterDistro/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED
, it looks to me WSL2 got in some state where it does not find the required Microsoft HyperV virtualization components.
Looking around, I have found this Microsoft community forum where some workarounds are suggeted: https://learn.microsoft.com/en-us/answers/questions/1336873/how-to-solve-wsl-service-createinstance-createvm-h
The last two suggestions especially caught my attention.
Could you please let us know if they helped?
Thanks, Andrea
Description
After installing Docker Desktop for windows and updating the wsl to the latest version , when I am trying to run docker desktop then it is showing me "Unexpected WSL error" and force exits.
Reproduce
Install Docker Desktop for windows Running Docker desktop with admin priviledge
Expected behavior
The docker desktop should run fine without the docker engine being stopped.
docker version
docker info
Diagnostics ID
268D4788-4B78-45FB-ACAA-304CE8080685/20240620031605
Additional Info
This is the error log:
deploying WSL2 distributions ensuring main distro is deployed: deploying "docker-desktop": importing WSL distro "WSL2 is not supported with your current machine configuration.\r\nPlease enable the \"Virtual Machine Platform\" optional component and ensure virtualization is enabled in the BIOS.\r\nEnable \"Virtual Machine Platform\" by running: wsl.exe --install --no-distribution\r\nFor information please visit https://aka.ms/enablevirtualization\r\nError code: Wsl/Service/RegisterDistro/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED\r\n" output="docker-desktop": exit code: 4294967295: running WSL command wsl.exe C:\Windows\System32\wsl.exe --import docker-desktop\AppData\Local\Docker\wsl\main C:\Program Files\Docker\Docker\resources\wsl\wsl-bootstrap.tar --version 2: WSL2 is not supported with your current machine configuration.
Please enable the "Virtual Machine Platform" optional component and ensure virtualization is enabled in the BIOS.
Enable "Virtual Machine Platform" by running: wsl.exe --install --no-distribution
For information please visit https://aka.ms/enablevirtualization
Error code: Wsl/Service/RegisterDistro/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED
: exit status 0xffffffff
checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache\: The network name cannot be found.