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

Đang mở
#42,271 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
15/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
powershell
Lĩnh vực
infrastructure

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C++
Star
34.4k
Fork
1.9k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
166

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/WSL

Tất cả issue của microsoft/WSL

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.