WSL installation fails because VirtualMachinePlatform cannot be enabled (Error 1168: Element not found)
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ả
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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/WSL
-
feature wsl2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
microsoft/WSL#42306 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
microsoft/WSL#42114 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature kernel wsl2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoft/WSL#41107 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature kernel
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
microsoft/WSL#41054 · 9 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature GPU
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 70/100
microsoft/WSL#13592 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/WSL
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
HarperFast/rocksdb-js#1131 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/daemon bug good first issue platform/linux priority/p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ToshiNamura/Deimos#5 ·
-
needs-format
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Niko1221/Strata#6251 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
[Bug]: NP 管理器文件编辑器里删除键无效Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
metasequoiaime/msime#11666 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
patrick-hudson/put.gd-desktop#1679 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày