microsoft / microsoft/WSL

WSL2 stopped working: VirtualMachinePlatform & WSL feature not recognized properly

Open
#11,469 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature
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
```
![imagen](https://github.com/microsoft/WSL/assets/25910927/efd88d9c-3d40-4f7b-a81e-3eefdcc9f21c)

### Expected Behavior

WSL works as before.

### Actual Behavior

1) Windows features list seems strange (duplicates). He cannot uninstall or install again the features
![imagen](https://github.com/microsoft/WSL/assets/25910927/01f5754c-cff7-4b0a-9614-fdce2ac17164)

2) Trying to uninstall them says that Windows cannot find the files. Error 0x80070490
![imagen](https://github.com/microsoft/WSL/assets/25910927/0f481cda-4316-46da-8812-3801dce20f4e)

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
````
![imagen](https://github.com/microsoft/WSL/assets/25910927/80a7c29f-6592-44a4-8e17-6c6346deea81)

All day without being able to work.

Please, need help.

### Diagnostic Logs

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.