WslRegisterDistribution failed with error: 0x80370102
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
### Version
Microsoft Windows [Version 10.0.22621.1265]
### WSL Version
- [X] WSL 2
- [ ] WSL 1
### Kernel Version
2
### Distro Version
Ubuntu 22.04
### Other Software
_No response_
### Repro Steps
In Windows Features:
- Hyper-V is fully selected (all subchecks selected)
- Virtual Machine Platform is fully selected
- Windows Hypervisor Platform is fully selected
- Windows Subsystem for Linux is fully selected
In task manager, virutalization is fully enabled in my BIOS, confirmed via systeminfo, too:
```
Hyper-V Requirements: VM Monitor Mode Extensions: Yes
Virtualization Enabled In Firmware: Yes
Second Level Address Translation: Yes
Data Execution Prevention Available: Yes
```
```
PS C:\WINDOWS\system32> ubuntu
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
For information please visit https://aka.ms/enablevirtualization
Press any key to continue...
PS C:\WINDOWS\system32> bcdedit /set hypervisorlaunchtype auto start
The operation completed successfully.
```
All of the online documentation takes me in loops or tells me to roll back to WSL 1.
The BIOS says I have virtualization enabled, the task manager says it....
I've disabled and re-enabled all of these checkboxes and rebooted, and I still cannot get WSL2 working on my Windows 11 box
### Expected Behavior
I would expect ubuntu to load
### Actual Behavior
```
PS C:\WINDOWS\system32> ubuntu
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
For information please visit https://aka.ms/enablevirtualization
Press any key to continue...
PS C:\WINDOWS\system32>
```


### Diagnostic Logs
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported `ubuntu` command and the Windows Features, BIOS, `systeminfo`, and `bcdedit` details in the reproduction steps. No source file, test, or diagnostic log is named; done would mean identifying why WSL 2 registration still returns 0x80370102 and confirming that Ubuntu installs successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ubuntu
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100