WSL installation fails because VirtualMachinePlatform cannot be enabled (Error 1168: Element not found)

Aperta
#42,271 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
powershell

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

install needs-author-feedback wsl2
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.

Lingua principale
C++
Stelle
34.4k
Fork
1.9k
Merge medio
1g 23h
PR unite (30g)
166

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/WSL

Tutte le issue di microsoft/WSL

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.