WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WSL Service Crashes During VM Creation on Windows 11 25H2 (Build 26200.7171)

Open Dev4YM opened this issue 2 months ago • 26 comments

Windows Version

Microsoft Windows [Version 10.0.26200.7171]

WSL Version

2.6.1.0

Are you using WSL 1 or WSL 2?

  • [x] WSL 2
  • [ ] WSL 1

Kernel Version

No response

Distro Version

No response

Other Software

OS: Windows 11 Home (Official Stable Release) Version: 25H2 Build: 26200.7171 WSL Version: 2.6.1.0 System: MSI MS-7E06, Intel Core (Model 183), 64GB RAM Previously Installed Virtualization Software: VirtualBox and VMware (completely uninstalled)

Repro Steps

Repro Steps

  1. Open PowerShell as Administrator
  2. Run wsl --install -d Ubuntu-24.04 (or any other distribution)
  3. Wait for download to complete
  4. Observe installation attempt

Alternative methods attempted (all fail identically):

  • wsl --install (default Ubuntu)
  • wsl --install -d Ubuntu-22.04
  • wsl --install -d Debian
  • Installing from Microsoft Store (Ubuntu 24.04, 22.04, 20.04, Debian)
  • Manual download and AppX installation

Reproducibility: 100% - Fails every single time across all distributions and installation methods

Expected Behavior

Expected Behavior

Based on official documentation (https://learn.microsoft.com/en-us/windows/wsl/install):

  1. WSL should download the selected Linux distribution
  2. WSL should register the distribution
  3. WSL should create a Hyper-V VM for the distribution
  4. The distribution should launch and prompt for user setup
  5. Command should complete successfully with the distribution installed and ready to use

Example of expected successful output:

Downloading: Ubuntu 24.04 LTS
Installing: Ubuntu 24.04 LTS
Ubuntu 24.04 LTS has been installed.
Launching Ubuntu 24.04 LTS...

Actual Behavior

Actual Behavior

The installation process fails during VM creation with the following error:

Downloading: Ubuntu 24.04 LTS
Installing: Ubuntu 24.04 LTS
An address incompatible with the requested protocol was used.
Error code: Wsl/InstallDistro/Service/RegisterDistro/CreateVm/0x8007273f

What happens behind the scenes:

  • Download completes successfully
  • Initial registration begins
  • WSL Service (wslservice.exe) crashes during CreateVm operation
  • Installation rolls back
  • No distribution is installed

Event Log Evidence:

Event ID: 7034
Source: Service Control Manager
Level: Error
Message: The WSL Service service terminated unexpectedly.

Event ID: 1000
Source: Application Error
Level: Error
Message: Faulting application name: wslservice.exe, version: 2.6.1.0

Diagnostic Logs

Error Details

Error Message

An address incompatible with the requested protocol was used.
Error code: Wsl/InstallDistro/Service/RegisterDistro/CreateVm/0x8007273f

Event Log Evidence

ProviderName: Service Control Manager
TimeCreated: 11/12/2025 10:39:02 PM
Id: 7034
Level: Error
Message: The WSL Service service terminated unexpectedly.
ProviderName: Application Error
Id: 1000
Level: Error
Message: Faulting application name: wslservice.exe, version: 2.6.1.0

System Verification - All Tests Pass

Virtualization Status

# All services running correctly
Get-Service vmcompute          # Status: Running
Get-Service HvHost             # Status: Running
Get-Service LxssManager        # Status: Running

# All required features enabled
Get-WindowsOptionalFeature -Online
VirtualMachinePlatform         # State: Enabled
HypervisorPlatform            # State: Enabled

# Hypervisor configured correctly
bcdedit /enum | findstr hypervisorlaunchtype
# Output: hypervisorlaunchtype Auto

# Virtualization-based Security active
systeminfo | findstr /C:"Hyper-V"
# Output: A hypervisor has been detected. Features required for Hyper-V will not be displayed.

# VBS running correctly
Get-CimInstance -ClassName Win32_DeviceGuard
VirtualizationBasedSecurityStatus: 2 (Running)

System Integrity - No Corruption Found

# Windows image health check
Dism /Online /Cleanup-Image /CheckHealth
# Result: The component store is repairable.

Dism /Online /Cleanup-Image /ScanHealth
# Result: No component store corruption detected.

Dism /Online /Cleanup-Image /RestoreHealth
# Result: The restore operation completed successfully.

# System file verification
sfc /scannow
# Result: Windows Resource Protection did not find any integrity violations.

Extensive Troubleshooting Attempted

Network Stack Resets

netsh winsock reset
netsh int ip reset all
netsh winhttp reset proxy
# Restarted after each - No effect

WSL Reinstallation Attempts

# Tried default installation
wsl --install

# Tried specific distributions
wsl --install -d Ubuntu-24.04
wsl --install -d Ubuntu-22.04
wsl --install -d Debian

# Attempted WSL updates
wsl --update
wsl --update --web-download
wsl --update --pre-release

# Attempted version switching
wsl --set-default-version 2
wsl --set-default-version 1  # Failed: WSL_E_WSL1_NOT_SUPPORTED

Windows Feature Management

# Disabled and re-enabled all WSL/Hyper-V features
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
# Restarted

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
# Restarted

# Also tried via DISM
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:HypervisorPlatform /all /norestart
# Restarted

Attempted Installations from Multiple Sources

  • Command line (wsl --install)
  • Microsoft Store (Ubuntu 24.04, 22.04, 20.04, Debian)
  • All methods result in identical crash

Configuration Adjustments

  • Removed experimental .wslconfig settings (mirrored networking)
  • Disabled Norton VPN and network adapter
  • Verified no conflicting virtualization software remains

Registry Verification

Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss"
# NatIpAddress: 172.25.19.120
# DefaultVersion: 2
# No abnormalities detected

What Does NOT Work

❌ Any wsl --install command (all distributions)
❌ Microsoft Store installations
❌ Network stack resets
❌ Feature disable/enable cycles
❌ WSL service restarts
❌ System integrity repairs (DISM/SFC)
❌ Removing .wslconfig configuration
❌ WSL updates

Observations

  1. WSL Service crashes specifically during CreateVm operation - All pre-VM steps succeed (download, initial registration)
  2. Hyper-V infrastructure is fully functional - vmcompute and HvHost services run normally
  3. System passes all integrity checks - No corruption detected by Microsoft's own tools
  4. Error is reproducible 100% of the time across all distributions and installation methods
  5. Issue appears specific to Windows 11 25H2 (Build 26200.7171) - This is the official stable release from November 11, 2025

Similar Reports

Other users have reported similar issues that only resolved after clean Windows reinstallation, suggesting a system-level bug in Windows 11 25H2 that integrity tools cannot detect or repair.

Request

This appears to be a genuine bug in Windows 11 25H2 build 26200.7171 affecting WSL VM creation despite perfect system configuration. The WSL service crash during CreateVm suggests an issue with the Hyper-V integration layer specific to this build.

Please do not suggest:

  • Network resets (already attempted)
  • Feature reinstallation (already attempted multiple times)
  • DISM/SFC repairs (completed with no issues found)
  • Virtualization software conflicts (all removed)
  • Basic troubleshooting steps (exhaustively tested)

Requested:

  • Acknowledgment of this as a known issue in build 26200.7171
  • Timeline for potential fix or workaround
  • Any advanced diagnostic steps specific to WSL service crashes during VM creation
  • Alternative solutions that don't require Windows reinstallation

Additional Information Available

  • Full event logs from WSL service crashes
  • Detailed vmcompute service logs
  • Complete system configuration details
  • Registry dumps of WSL-related keys

Thank you for your attention to this issue.

Dev4YM avatar Nov 13 '25 21:11 Dev4YM

Logs are required for review from WSL team

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.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions in Collect WSL logs for networking issues

Once completed please upload the output files to this GitHub issue.

See Collect WSL logs (recommended method).

If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.

github-actions[bot] avatar Nov 13 '25 21:11 github-actions[bot]

Diagnostic information
Appx package is not installed
Detected user visible error: Wsl/InstallDistro/Service/RegisterDistro/CreateVm/0x8007273f

github-actions[bot] avatar Nov 13 '25 21:11 github-actions[bot]

@YousefTurky: It's looking like the Hyper-V socket provider isn't available on your machine. I can see it being referenced under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinSock2\Parameters\Protocol_Catalog_Before_Reset\Catalog_Entries\00000000000 (which looks like a registry backup), but it's not available to WSL, which is what's causing this error.

I would expect the error to go away if you restore that registry key

OneBlue avatar Nov 13 '25 21:11 OneBlue

Sorry, but can u provide or guide on how to reset that registry key SAFELY.

Dev4YM avatar Nov 13 '25 22:11 Dev4YM

The easiest way would be to restore the content of Protocol_Catalog_Before_Reset, but I don't know who / what create that key in the first place, that would be for you to figure out.

You can backup the entire key before making changes if you want to be able to undo changes though.

OneBlue avatar Nov 13 '25 22:11 OneBlue

Hey, quick update on what I tried:

I followed your advice about the Winsock registry provider and attempted to restore it safely.

  1. Backed up the Winsock2 Parameters key

  2. Exported and restored the Protocol_Catalog_Before_Reset key

  3. Rebooted afterwards

  4. Verified the active Winsock catalog using:

    netsh winsock show catalog
    

    Everything shows normal TCP/UDP/IPv4/IPv6/MSAFD entries, and Winsock itself looks intact.

Afterwards, I checked the registry, and noticed that Windows 11 (my build is 26200 Home) no longer uses the old Protocol_Catalog key. It uses Protocol_Catalog9 instead, and both Catalog_Entries and Catalog_Entries64 exist with 13 providers each.

So the registry side seems clean.

Then I tried installing WSL again:

wsl --install

And I got the same error:

An address incompatible with the requested protocol was used.
Error code: Wsl/InstallDistro/Service/RegisterDistro/CreateVm/0x8007273f

So at this point, the Winsock catalog looks correct, and restoring the backup didn’t change the outcome. The issue still appears to be related to the WSL VM creation step rather than the catalog itself.

Dev4YM avatar Nov 14 '25 11:11 Dev4YM

Update with new findings:

Just wanted to follow up with some new observations after more testing.

I was able to successfully create and run a distro using WSL 1, and it provisions normally with no errors:

wsl -d Ubuntu
Provisioning the new WSL instance Ubuntu
...
Welcome to Ubuntu 24.04.3 LTS (GNU/Linux 4.4.0-26100-Microsoft x86_64)

This confirms that:

  • WSL1 itself works
  • Winsock networking is working correctly
  • Registry/Winsock catalog is healthy
  • The distro setup process is not failing
  • VM-free execution (WSL 1) is fully functional

However, WSL 2 still fails with the same VM-creation error:

An address incompatible with the requested protocol was used.
Error code: Wsl/InstallDistro/Service/RegisterDistro/CreateVm/0x8007273f

The key point is:

✔️ WSL 1 works

❌ WSL 2 cannot create its VM

Also, to clarify: I am not on an Insider build — my Windows version is a fully official retail release, not Dev/Canary/Beta.

Given that WSL 1 is working and only the Hyper-V–based VM creation is failing, it appears that the Hyper-V virtualization stack is either unavailable or not being detected, which is preventing WSL 2 from initializing its VM even though this Windows edition normally supports it.

Happy to provide additional logs or run any diagnostics if needed.

Dev4YM avatar Nov 14 '25 19:11 Dev4YM

Unfortunately the error message most likely indicates that the hvsocket protocol provider is incorrectly configured. WinSock working with TCP/IP is unrelated to hvsockets so that doesn't say much.

One thing you could try would be to disable hyper-V & virtual machine platform, reboot, and enable it again. Maybe that will reset the hvsocket provider correctly, but if that doesn't work, you'll probably need to dig in the registry to figure out what's missing

OneBlue avatar Nov 14 '25 21:11 OneBlue

Thanks for the explanation.

I’ve already tried disabling and re-enabling both Hyper-V and VirtualMachinePlatform many times — including a full disable → reboot → enable → reboot cycle again today. Unfortunately it didn’t change the behavior, and the hvsocket error persists.

Regarding digging into the registry for the hvsocket provider: I’m not familiar with the internal structure of the Hyper-V / WSL Winsock providers, since I didn’t develop WSL or the virtualization stack. I’m not sure which keys, GUIDs, or catalog entries the hvsocket provider is expected to have on this build, so I don’t have enough information to validate what’s correct vs missing. I don’t want to guess and risk corrupting my networking stack.

Ideally, the WSL health-check / diagnostic tooling should be able to detect and report when the hvsocket provider is misconfigured or missing, since this seems like the kind of issue it’s meant to surface.

If there’s a specific set of registry paths, GUIDs, or expected provider entries that I should verify, I’m happy to check them — I just need the exact locations and what values should or shouldn’t be present.

Dev4YM avatar Nov 14 '25 22:11 Dev4YM

Unfortunately I don't have deep knowledge of that registry key either. I think your best bet would be to look at the registry on a working machine or VM, and try to see what's different on your machine and go from there.

OneBlue avatar Nov 14 '25 22:11 OneBlue

Thanks for the suggestion. Just to clarify — I wasn’t referring to you personally. What I meant is that this level of deep registry debugging shouldn’t fall on end-users, especially for something as foundational as Hyper-V / hvsockets.

If the hvsocket Winsock provider can get into an invalid state that completely breaks WSL2, then this feels like something that should really be escalated internally at Microsoft or addressed via a proper hotfix or official repair mechanism. End-users trying to manually reverse-engineer registry keys for Microsoft virtualization components isn’t realistic or safe. In fact, it becomes a much bigger time-waste than simply wiping my C: drive and reinstalling everything.

Windows 11 also has stubborn caching/state retention behavior, so “resetting” components doesn’t always actually reset them — which is why I’ve been trying to avoid a full system reinstall.

So I need a clear answer: Is this something Microsoft can actually fix — yes or no? If it can be escalated or validated against a known-good configuration internally, I’m absolutely willing to provide logs or run any official tools.

If the answer is no — meaning Microsoft cannot fix this or provide guidance — then I will just proceed with a full OS reset, because that will be faster than manually reconstructing unknown registry entries.

Dev4YM avatar Nov 15 '25 08:11 Dev4YM

If going through the registry isn't an option, then the OS reset is probably your best bet.

To answer your question, if a user or a program specifically modifies the registry and puts the machine into a bad state, that's something that Windows itself can fix, since it has no way to know what's correct and what's not, based on what installed programs on the machine might want.

OneBlue avatar Nov 17 '25 19:11 OneBlue

That's what I'm thinking about — a full OS reset.

Thanks for the clarification. I understand that if the registry was modified by an installer or by some unknown component, Windows has no reliable way to automatically detect or restore the correct hvsocket configuration.

Since I’ve already exhausted every normal repair path (resetting features, Winsock, virtualization stack, etc.) and I’m not familiar enough with the internal registry structure for Hyper-V/WSL, a clean OS reinstall is probably the most time-efficient way for me to get back to a known-good state.

If the team ever adds an official health-check or repair tool that can detect and fix hvsocket-related corruption in the future, that would be extremely helpful — especially for cases where WSL2 breaks without clear indication of the root cause.

Thanks again for your time and explanations. I’ll proceed with the OS reset unless you recommend checking anything else before I wipe the system.

Dev4YM avatar Nov 17 '25 19:11 Dev4YM

Do u have any thoughts about this?

PS C:\WINDOWS\system32> wsl --install -d Ubuntu
Downloading: Windows Subsystem for Linux 2.6.1
Installing: Windows Subsystem for Linux 2.6.1
Windows Subsystem for Linux 2.6.1 has been installed.
wsl: WSL installation appears to be corrupted (Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG).
Press any key to repair WSL, or CTRL-C to cancel.
This prompt will time out in 60 seconds.
Updating Windows Subsystem for Linux to version: 2.6.1.
Fatal error during installation.
PS C:\WINDOWS\system32>

Dev4YM avatar Nov 19 '25 11:11 Dev4YM

Could you share /logs of this ?

OneBlue avatar Nov 25 '25 22:11 OneBlue

WslLogs-2025-11-26_12-12-06.zip

what i ran:

C:\Users\youse>wsl --shutdown
wsl: WSL installation appears to be corrupted (Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG).
Press any key to repair WSL, or CTRL-C to cancel.
This prompt will time out in 60 seconds.
Updating Windows Subsystem for Linux to version: 2.6.1.
^C
C:\Users\youse>wsl --install
wsl: WSL installation appears to be corrupted (Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG).
Press any key to repair WSL, or CTRL-C to cancel.
This prompt will time out in 60 seconds.
Updating Windows Subsystem for Linux to version: 2.6.1.
^C
C:\Users\youse>

btw i didnt press Ctrl + C on any cmd, it opened administrator confirmation dialog and i clicked yes then it just quitted.

Dev4YM avatar Nov 26 '25 09:11 Dev4YM

Diagnostic information
Detected appx version: 2.6.1.0

github-actions[bot] avatar Nov 26 '25 09:11 github-actions[bot]

Thank you @YousefTurky. Looking through the logs, it's looking like there's an old MSIX registration that's causing some issues.

What do you get if you run get-appxpackage -AllUsers | Where-Object { $_.PackageFamilyName.contains("MicrosoftCorporationII.WindowsSubsystemForLinux") } | Remove-AppxPackage -AllUsers in an elevated powershell ?

Does wsl --install work correctly after that ?

OneBlue avatar Nov 26 '25 22:11 OneBlue

Well, here's the results:

PS C:\WINDOWS\system32> get-appxpackage -AllUsers | Where-Object { $_.PackageFamilyName.contains("MicrosoftCorporationII.WindowsSubsystemForLinux") } | Remove-AppxPackage -AllUsers
PS C:\WINDOWS\system32> wsl --install
Downloading: Windows Subsystem for Linux 2.6.1
Installing: Windows Subsystem for Linux 2.6.1
Windows Subsystem for Linux 2.6.1 has been installed.
wsl: WSL installation appears to be corrupted (Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG).
Press any key to repair WSL, or CTRL-C to cancel.
This prompt will time out in 60 seconds.
Updating Windows Subsystem for Linux to version: 2.6.1.
Fatal error during installation.
PS C:\WINDOWS\system32>

I didn't Reboot btw. Do u need logs?

Dev4YM avatar Nov 27 '25 09:11 Dev4YM

Hmm, so it's looking like the MSIX installation is completely failing to install the WSLInstallerService. let's try something else.

Does manually installing the latest MSI release solve the issue ?

OneBlue avatar Nov 27 '25 19:11 OneBlue

it doesn't:

PS C:\WINDOWS\system32> wsl --install
wsl: WSL installation appears to be corrupted (Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG).
Press any key to repair WSL, or CTRL-C to cancel.
This prompt will time out in 60 seconds.
Updating Windows Subsystem for Linux to version: 2.6.1.

PS C:\WINDOWS\system32> wsl --list
wsl: WSL installation appears to be corrupted (Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG).
Press any key to repair WSL, or CTRL-C to cancel.
This prompt will time out in 60 seconds.
Class not registered
Error code: Wsl/CallMsi/Install/REGDB_E_CLASSNOTREG
PS C:\WINDOWS\system32>

these cmds take long time ending with code errors

Dev4YM avatar Nov 27 '25 19:11 Dev4YM

is this ok for WSL2?

PS C:\WINDOWS\system32> Get-Service -Name *hyper* | Select-Object Name, Status, StartType
PS C:\WINDOWS\system32>

Dev4YM avatar Dec 01 '25 10:12 Dev4YM

also:

PS C:\WINDOWS\system32> Get-Service LxssManager | Select-Object Name, Status, StartType
Get-Service : Cannot find any service with service name 'LxssManager'.
At line:1 char:1
+ Get-Service LxssManager | Select-Object Name, Status, StartType
+ ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (LxssManager:String) [Get-Service], ServiceCommandException
    + FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.GetServiceCommand

PS C:\WINDOWS\system32>

Dev4YM avatar Dec 01 '25 11:12 Dev4YM

Weird. Was the MSI package installation successful ?

OneBlue avatar Dec 01 '25 20:12 OneBlue

for my case (i dont know the real practice) it doesnt clarify the result, it just open this dialog then quits after 1s. (I always run it as Administrator)

Image

Dev4YM avatar Dec 02 '25 03:12 Dev4YM

Ok interesting. Could you share the content of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WSLService in regedit ?

OneBlue avatar Dec 02 '25 22:12 OneBlue

Sure:

Image

Dev4YM avatar Dec 03 '25 05:12 Dev4YM

Thank you @YousefTurky. This looks correct.

Let's try something else. What about HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Lxss ?

OneBlue avatar Dec 03 '25 21:12 OneBlue

Image

Dev4YM avatar Dec 04 '25 05:12 Dev4YM