WSL installation fails because VirtualMachinePlatform cannot be enabled (Error 1168: Element not found)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 15/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- powershell
- Domain
- infrastructure
Research direction
The failure is in enabling the Windows optional feature VirtualMachinePlatform during wsl --install, reported as Wsl/WSL_E_INSTALL_COMPONENT_FAILED with DISM error 1168. Start from the install path that calls Enable-WindowsOptionalFeature and the DISM logs it produces, then reproduce on a Windows 11 24H2 machine. Done means the install either completes or fails with a clear, actionable message. This needs Windows servicing knowledge, so it is not a good first task.
Written by the indexing model from the issue text.
Description
Windows Version
Windows 11 24H2 , OS Build: 26100.9711
WSL Version
WSL 3.0.5
Are you using WSL 1, WSL 2, or WSLC?
- WSL 2
- WSL 1
- WSLC
Kernel Version
No response
Distro Version
No response
Other Software
No response
Repro Steps
wsl --install
Expected Behavior
WSL installs successfully and Ubuntu is installed.
Actual Behavior
Installing Windows optional component: VirtualMachinePlatform
Deployment Image Servicing and Management tool
Version: 10.0.26100.9549
Image Version: 10.0.26100.9711
Error: 1168
Element not found.
Failed to enable Windows component 'VirtualMachinePlatform'
Error code: Wsl/WSL_E_INSTALL_COMPONENT_FAILED
Diagnostic Logs
Get-WindowsOptionalFeature -Online -FeatureName HypervisorPlatform
Enabled
Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
Enabled
Get-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
State: Disabled
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -All
Element not found.
- Dominant language
- C++
- Stars
- 34.4k
- Forks
- 1.9k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 166
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from microsoft/WSL
-
feature wsl2
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
microsoft/WSL#42306 · 3 comments ·
Maintainers usually reply within 1 day
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
microsoft/WSL#42114 · 3 comments ·
Maintainers usually reply within 1 day
-
feature kernel wsl2
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoft/WSL#41107 · 3 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
feature kernel
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
microsoft/WSL#41054 · 9 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
feature GPU
Difficulty 1/5 1-3 hours Newbie friendliness 70/100
microsoft/WSL#13592 · 4 comments ·
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
nextcloud/passman-android#214 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
2026.11.0 fails to install on Intel macOS: requirements.txt pins cryptography==50.0.2 for Darwin x86_64May be free again A pull request for this issue was closed without being merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 87/100
esphome/esphome#22892 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
distante/esphome-components#50 · 1 comment ·
Maintainers usually reply within 1 day
-
arch-based hyprland
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
noctalia-dev/noctalia#5423 ·
Maintainers usually reply within 1 day