Open CYST084 opened 2 months ago
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.
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!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
WSL-Logs
The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.
Updated WSL-Log
Nothing helpful so far, anyone who has experienced similar issue and resolved it, kindly reach out.
Looks like this is caused by an HNS issue:
Microsoft.Windows.Lxss.Manager Error 06-20-2024 06:35:47.165 " " "code:
failurecount: 56
file: D:\a\1\s\src\windows\wslcore\lib\NatNetworking.cpp
function:
hr: 0x8007023E
linenumber: 885
message: ""HcnCreateNetwork {""""Success"""":false,""""Error"""":""""{Application Error} The exception s (0x"""",""""ErrorCode"""":2147942974}""
threadid: 4748
type: 0
wslVersion: 2.2.4.0" D:\a\1\s\src\windows\wslcore\lib\NatNetworking.cpp 10176 4748 2 00000000-0000-0000-0000-000000000000
Adding the networking tag
Sorry, this is similar to https://github.com/microsoft/WSL/issues/10507, where vswitch failed to create a NAT switch. It's not clear from the traces why this is failing. If you collect networking-logs, we might get more information. https://github.com/microsoft/WSL/blob/master/diagnostics/collect-networking-logs.ps1
Windows Version
Microsoft Windows [Version 10.0.19045.4529]
WSL Version
2.2.4.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.153.1-2
Distro Version
Ubuntu 22.04 LTS, Ubuntu
Other Software
No response
Repro Steps
Open Terminal as administrator, run
wsl --install Ubuntu-22.04
orwsl --install Ubuntu
Expected Behavior
For Linux distros, in my case Ubuntu to install and run successfully
Actual Behavior
Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\Users\user> wsl --install Ubuntu-22.04 Installing: Ubuntu 22.04 LTS Ubuntu 22.04 LTS has been installed. Launching Ubuntu 22.04 LTS... Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x8007023e Error: 0x8007023e {Application Error} The exception s (0x Press any key to continue... The installation process for distribution 'Ubuntu-22.04' failed with exit code: 1. Error code: Wsl/InstallDistro/WSL_E_INSTALL_PROCESS_FAILED
PS C:\Users\user> wsl --update Checking for updates. Updating Windows Subsystem for Linux to version: 2.2.4.
PS C:\Users\user> wsl --status Default Version: 2
PS C:\Users\user> wsl --version WSL version: 2.2.4.0 Kernel version: 5.15.153.1-2 WSLg version: 1.0.61 MSRDC version: 1.2.5326 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26091.1-240325-1447.ge-release Windows version: 10.0.19045.4529
PS C:\Users\user> wsl --install Ubuntu Installing: Ubuntu Ubuntu has been installed. Launching Ubuntu... Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x8007023e Error: 0x8007023e {Application Error} The exception s (0x Press any key to continue... The installation process for distribution 'Ubuntu' failed with exit code: 1. Error code: Wsl/InstallDistro/WSL_E_INSTALL_PROCESS_FAILED
PS C:\Users\user>
Diagnostic Logs
I have hypervisor in BIOS enabled
I have also turned on in windows features: wsl, Hyper-V, Virtual Machine Platform, Windows Hypervisor Platform
Haven't found any helpful fix so far and I have searched a lot, I have come across the turn off restart, turn on restart try again (pretty much almost all posts) but it still doesn't work