Repository navigation
Description
Two issues with WSL 2.7.1.0 pre-release update
Issue 1: Forced system restart during update without user consent
When updating from WSL 2.7.0.0 to 2.7.1.0 (pre-release) while WSL was actively running, the update process:
- Forcibly killed all active WSL sessions using
ForceApplicationShutdownOption, ForceTargetApplicationShutdownOption(no warning or prompt) - Initiated an automatic system restart via
msiexec.exejust 1 second after the package registration completed — without any user consent dialog
This caused immediate data loss risk and disrupted work in progress.
Issue 2: Unhelpful error message after reboot
After the forced reboot, WSL 2.7.1.0 fails to start with:
Wsl/Service/CreateInstance/CreateVm/HCS/ERROR_FILE_NOT_FOUND
The actual underlying error is 0xC0370103 ("Hypervisor not available") — the system has VirtualMachinePlatform enabled but NOT HypervisorPlatform. WSL 2.7.0.0 worked fine with only VirtualMachinePlatform.
The error message ERROR_FILE_NOT_FOUND is completely misleading and does not tell the user what to do. The MessageEnableVirtualization string in WSL's resources only mentions "Virtual Machine Platform" — it never mentions HypervisorPlatform.
Environment
- Windows version: 10.0.26200.8037
- WSL version: 2.7.1.0 (pre-release, updated from 2.7.0.0)
- Kernel version: 6.6.114.1-1
Windows Optional Features State
| Feature | State |
|---|---|
| VirtualMachinePlatform | Enabled |
| HypervisorPlatform | Disabled (never was enabled) |
| Microsoft-Hyper-V-All | Disabled |
| Microsoft-Windows-Subsystem-Linux | Disabled |
Evidence from Windows Event Logs
AppX Deployment Events (March 25, 2026)
4:56:00 PM — WSL 2.7.0.0 deprovision starts
4:56:02 PM — Remove operation starts with ForceApplicationShutdownOption, ForceTargetApplicationShutdownOption:
Started deployment Remove operation on a package with main parameter
MicrosoftCorporationII.WindowsSubsystemForLinux_2.7.0.0_x64__8wekyb3d8bbwe
4:56:35 PM — Old WSL package moved to Deleted folder
4:56:36 PM — WSL 2.7.1.0 staging begins
4:56:37 PM — Registration with forced shutdown flags:
Started deployment RegisterByPackageFamilyName operation on a package with main parameter
MicrosoftCorporationII.WindowsSubsystemForLinux_8wekyb3d8bbwe and Options
ForceApplicationShutdownOption,ForceTargetApplicationShutdownOption
4:56:38 PM — WSL 2.7.1.0 registration completed successfully
System Event Log — Forced Restart
4:56:39 PM — Event ID 1074:
The process msiexec.exe has initiated the restart of computer [REDACTED]
on behalf of user NT AUTHORITY\SYSTEM for the following reason:
No title for this reason could be found
Reason Code: 0x80030002
Shutdown Type: restart
Comment: The Windows Installer initiated a system restart to complete
or continue the configuration of 'Windows Subsystem for Linux'.
This is an automatic system restart initiated by SYSTEM — no user consent was requested.
HCS (Host Compute Service) Events — After Reboot
4:58:31 PM — HCS service started after reboot
5:01:57 PM — VM creation fails with 0xC0370103 (hypervisor not available):
Start compute system, result 0xC0370103
5:01:58 PM — Cascading errors:
Queue system notification: 6 / 0x80070002
Queue system notification: 3 / 0x80070002
Source Code Evidence
In src/windows/common/wslutil.cpp, UpdatePackageImpl() uses:
DeploymentOptions::ForceApplicationShutdown | DeploymentOptions::ForceTargetApplicationShutdownThis force-kills WSL sessions during update without any user notification.
Expected Behavior
- WSL update should NOT force a system restart without user consent. At minimum, a dialog should warn: "WSL needs to restart your computer to complete the update. Save your work."
- WSL update should NOT use
ForceApplicationShutdownwhen WSL sessions are actively running — or at minimum warn the user first - If
HypervisorPlatformis now required by 2.7.1.0, the error message should clearly state: "Please enable the 'HypervisorPlatform' Windows feature" instead of the misleadingERROR_FILE_NOT_FOUND - If the requirement changed from 2.7.0.0 → 2.7.1.0, the release notes should document this breaking change
Workaround
Manually enable HypervisorPlatform and reboot:
Enable-WindowsOptionalFeature -Online -FeatureName HypervisorPlatformSteps to Reproduce
- Have WSL 2.7.0.0 working with only
VirtualMachinePlatformenabled (noHypervisorPlatform) - Have active WSL sessions running
- Run
wsl --update --pre-release - Observe: active sessions are forcibly killed, system reboots automatically
- After reboot, try
wsl -d Ubuntu - Observe:
ERROR_FILE_NOT_FOUNDerror — no indication of what's actually wrong
Activity
github-actions commentedon Mar 25, 2026
Logs are required for review from WSL team
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
How to collect WSL logs
Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done.
If this is a networking issue, please use
.\collect-wsl-logs.ps1 -LogProfile networkinginstead, following the instructions in Collect WSL logs for networking issuesOnce completed please upload the output files to this GitHub issue.
See Collect WSL logs (recommended method).
If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.
syed-dawood commentedon Mar 25, 2026
The issue has been resolved on my end by manually enabling
HypervisorPlatformand rebooting, so I can no longer reproduce theERROR_FILE_NOT_FOUND/0xC0370103error to capture live WPR traces viacollect-wsl-logs.ps1.However, all the relevant evidence has been captured and included in the issue body above from Windows Event Logs collected at the time of the failure:
System Event Log (Event ID 1074) — Shows
msiexec.exeinitiated an automatic system restart at 4:56:39 PM on behalf ofNT AUTHORITY\SYSTEMwith comment: "The Windows Installer initiated a system restart to complete or continue the configuration of 'Windows Subsystem for Linux'"AppX Deployment Events — Full timeline showing WSL 2.7.0.0 removal with
ForceApplicationShutdownOption,ForceTargetApplicationShutdownOptionflags, followed by WSL 2.7.1.0 staging/registration at 4:56:34-38 PMHCS Operational Events — Shows
Start compute system, result 0xC0370103at 5:01:57 PM (after reboot), confirming the hypervisor was not availableWindows Feature State —
VirtualMachinePlatform= Enabled,HypervisorPlatform= Disabled. WSL 2.7.0.0 worked with onlyVirtualMachinePlatform; 2.7.1.0 did not.CBS Logs — Confirmed
HypervisorPlatformwas never enabled (always in "Staged" / "Default" state) prior to manually enabling it.System info:
The two core issues remain valid regardless of reproduction:
ERROR_FILE_NOT_FOUNDis misleading when the actual problem is0xC0370103(hypervisor not available due to missingHypervisorPlatformfeature)syed-dawood commentedon Mar 25, 2026
Supplementary Evidence
Since the issue was resolved by manually enabling
HypervisorPlatform, I cannot reproduce for a live WPR trace. However, here is comprehensive evidence captured from Windows Event Logs, CBS logs, and system state that covers the same diagnostic ground the collection script would.1. Complete Reboot Timeline (System Event Log)
4:56:39 PM — Event ID 1074 (User32) — MSI-initiated restart:
4:56:52 PM — Event ID 6006 (EventLog) — Event Log service stopped (shutdown in progress):
4:56:59 PM — Event ID 13 (Microsoft-Windows-Kernel-General) — OS shutting down:
4:57:14 PM — Event ID 12 (Microsoft-Windows-Kernel-General) — OS started (boot):
4:57:32 PM — Event ID 6009 (EventLog) — Boot info:
4:57:32 PM — Event ID 6005 (EventLog) — Event Log started:
5:15:28 PM — Event ID 1074 (User32) — User-initiated restart (after experiencing the error, I manually rebooted):
Key finding: Only 20 seconds elapsed between the msiexec restart request (4:56:39) and the OS shutdown (4:56:59). No user consent was possible in this window.
2. AppX Deployment Log — Full Update Sequence
The
Microsoft-Windows-AppXDeploymentServer/Operationallog shows the complete update flow:4:56:00 PM — Deprovision of old WSL begins:
4:56:02 PM — Remove with forced shutdown flags:
4:56:35 PM — Old package moved to Deleted:
4:56:36-37 PM — New WSL 2.7.1.0 staged and registered:
4:56:38 PM — Registration completed, 1 second before msiexec triggers reboot.
3. HCS (Host Compute Service) Events — Post-Reboot Failure
From
Microsoft-Windows-Hyper-V-Compute-Adminlog:4:58:31 PM — HCS service started after reboot:
From
Microsoft-Windows-Hyper-V-Compute-Operationallog (captured before fix):5:01:57 PM — VM creation attempted, hypervisor not available:
5:01:57-58 PM — Cascading notification errors:
0xC0370103=WHV_E_UNKNOWN_CAPABILITY/ "The hypervisor is not present on this system" — but WSL reported this asERROR_FILE_NOT_FOUND.4. CBS Log — HypervisorPlatform Was NEVER Enabled
From
C:\Windows\Logs\CBS\CBS.logat the time I manually enabled it (5:06 PM, after experiencing the error):current State: Default= the feature was never enabled by the user or system.The plan entries confirm all HypervisorPlatform packages were in Staged state (available but not installed):
This confirms WSL 2.7.0.0 was functioning with
VirtualMachinePlatformalone, andHypervisorPlatformwas never part of the system configuration.5. Windows Feature State (at time of failure)
Captured via
Get-WindowsOptionalFeature -Onlinebefore applying the fix:6. System Info
Summary
The evidence proves:
msiexec.exeforce-rebooted the system at 4:56:39 PM asNT AUTHORITY\SYSTEM— 20 seconds later the OS was shutting down (4:56:59 PM). No user prompt/dialog appeared.0xC0370103(hypervisor not present) but WSL surfaced this asERROR_FILE_NOT_FOUND— a completely misleading errorHypervisorPlatformwas never enabled (CBS logs:current State: Default,start: Staged) — WSL 2.7.0.0 worked without itshuaiyuanxx commentedon Mar 26, 2026
Thanks for the detailed report.
I attempted to repro this on a clean machine by updating WSL with active sessions running. The update completed successfully, but no system reboot was triggered. WSL started normally afterward.
Looking at the code,
ForceApplicationShutdownininstall.cpponly terminates WSL processes for the package update, and the MSI configuration does not include an explicit reboot action. The forced reboot you experienced may have been caused by something else, rather than by the WSL update itself.For the
ERROR_FILE_NOT_FOUNDafter reboot — this is a known issue when an MSI upgrade is interrupted. Runningwsl --updateorwsl --install --no-distributionshould repair it.If you can reproduce the forced reboot again, please upload diagnostic logs so we can investigate what triggered it on your system.
benhillis commentedon Mar 26, 2026
HypervisorPlatform is not required to run Windows Subsystem for Linux. Only the "Virtual Machine Platform" optional component.
I suspect somehow on your machine the Hypervisor got disabled, and enabling the hypervisor platform OC re-enabled it.