WSL2 stopped working: VirtualMachinePlatform & WSL feature not recognized properly
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
### Windows Version
10.0.22631
### WSL Version
2.0.9
### Are you using WSL 1 or WSL 2?
- [X] WSL 2
- [ ] WSL 1
### Kernel Version
_No response_
### Distro Version
_No response_
### Other Software
_No response_
### Repro Steps
One developer in my company reported to us a major issue with WSL. It stopped working all of the sudden and says:
```bash
WSL2 is not supported with your current configuration. Please enable Virtual Machine Platform optional component ande nsure virtualization is enabled in the BIOS
```

### Expected Behavior
WSL works as before.
### Actual Behavior
1) Windows features list seems strange (duplicates). He cannot uninstall or install again the features

2) Trying to uninstall them says that Windows cannot find the files. Error 0x80070490

3) Trying to uninstall with command line says that the **features dont exist**
```powershell
dism /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /Remove
dism /online /disable-feature /featurename:VirtualMachinePlatform /Remove
````

All day without being able to work.
Please, need help.
### 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
The report concerns WSL 2.0.9 on Windows 10.0.22631 and cites the VirtualMachinePlatform and Microsoft-Windows-Subsystem-Linux features. Start by examining the reported DISM commands and feature-state errors; done means WSL recognizes the required features and works again.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 18/100