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

オープン
#42,271 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
15/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
powershell

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C++
スター
34.4k
フォーク
1.9k
平均マージ
1日 23時間
マージ済み PR(30日)
166

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/WSL のほかの issue

microsoft/WSL の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。