-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows BSOD / hangs on boot when using WSL2 #5783
Comments
I can confirm that I am having the same issue. I have gone through the above as well (save for replacing the motherboard on my laptop). If it's of any use, I am having this issue on a Lenovo T490 I had been successfully using WSL until the latest round of patches were applied. Unfortunately, I am not sure what those patches are/were since this is a work issued machine. Once those patches went in, I had boot/crash loops. Had the machine re-imaged, applied the 2004 update, and when getting WSL setup, I get the same crash behavior as described above. |
I also have this issue on my Lenovo T490s. It seems that the KB4566782 update + WSL2 causes the issue. If you disable WSL2 (feature named "Virtual Machine Platform"), but leave WSL1 (feature named "Windows Subsystem for Linux"), the BSODs stop happening. |
As I also posted this issue on the Lenovo forums, I would like to let you know a workaround for this: |
Another possible workaround, that helped me. Try to find out "UMA Frame buffer size" option in your BIOS. Select "Auto" mode then save changes and reboot. On loading screen you probably will see failure message, that means you just need to enable Hyper-V again and reboot. |
In my old TOSHIBA SATELLITE L755D, the same problem. After fresh install Windows 10 build 2004, I did installig WSL2 and after starting the system, I have a BSOD some minutes after starting the Windows. |
I'm also affected. What's needed to RCA this? |
Similar issue on HP Spectre x360. NOTE: Windows WSL2 was working fine before the Windows version 20H2 update roll-out. |
This is aleatory, in my case for example, I solved the problem reinstalling again Windows 10 20H2 without install the WSL or WSL2, because stay somethings in the system that cause BSOD, or crashing system, same after remove WSL*, its a bomb still, very bugs. |
After 2 days of trials I am now convinced that this is likely not an WSL related issue. Got to BSOD even after I have disabled virtualization in BIOS, though on overall Windows was much more stable without virtualization. After all, I have cleaned and reinstalled all major drivers:
Finally, at the very last moment, Windows itself offered me to install a new update:
From the press:
Ever since everything works just fine. |
Fix, which drove me crazy and made me reinstall the system twice, worked for me on Lenovo T490s (intel grafics) and Windows 20H2 - 19042.685 (Windows Feature Experience Pack 120.2212.551.0) with Windows insider (beta channel). |
For me it turned out that the enabled Enhanced Windows Biometric Security UEFI setting was causing the issue. I turned it off and now I have an updated Win10 with AMD-V (virtualization) enabled and WSL2 working. (Lenovo T14 with AMD) |
Am facing similar issues. Tried updating to latest patches but to no avail. Currently have these Hotfixes, but still get the BSOD after I enable Virtual Machines and WSL. Hotfix(s): 7 Hotfix(s) Installed. |
Just solved with a fresh install, the bug happens still in login screen and I can not reinstalling WSL2 because the error happens again, working normally with WSL. This happens in different computers. |
I did a fresh re-install as well. Can’t get the Virtual Machine Platform working. It’s causing the BSOD.
Only working off WSL too.
|
I have a problem with WSL2, I'm using WSL2 normally but at the moment of turning off my computer a blue screen appears and I don't find solution it's only when I used WSL. |
I suspect incompatible hardware. My assumption, but that may be why you're getting so many of those blue screens/hangs. |
i faced the same issue constantly,but cant know why. then everything goes smoothly. so just use linux |
I also got BSOD yesterday while using WSL, while closing it. |
This worked for me with Lenovo T490! Thanks. |
This also worked for me on a ThinkPad P53. Thanks! |
Is the BSoD still occurring when trying to use WSL2? Also did you check for any updates/hotfixes? |
Worked for me on Lenovo P15s. |
Same here. I just went through a lengthy, annoying restore procedure with my limited windows emergency boot knowledge. Costed my full three working days to de-bitlock the partition, reinstall windows, install all updates, install programs. In safe mode there wasn't even a hint in the eventmgr. Fortunately I managed to create a restore point before installing WSL again. This sucks big time. Just the BSOD with "SYSTEM_THREAD_EXCEPTION_NOT_HANDLED" over and over. Additionally it's a pain in the *** if you also have Bitlocker enabled. The wort thing to me was there wasn't even a hint what's wrong. System is a factory installed Lenovo P1 Gen4 w Intel graphics only. Patches are recent. |
I am encountering the same issue on an HP Pavilion, with a ryzen 5 and radeon graphics. The only solution that works for me is simply doing a reset after the laptop crashes. |
I am facing the same problem. In my case, there was no problem when I was using Windows 10, and it started occurring after upgrading to Windows 11 and reinstalling Ubuntu. I am using Ryzen 3950 CPU and I upgraded B550 ChipSet Driver to the latest version at the same time I upgraded to Windows 11. I am not sure if the problem is caused by updating to Windows 11 or by upgrading the ChipSet Driver, but I will report the situation. |
I got this issue as well, but I found out the cause was an incompatible driver which was my network driver. |
I am facing the same issue except my BSOD shows: INACCESSIBLE_BOOT_DEVICE |
I have the exact same issue with my Lenovo T490. It is disheartening. |
Disabling VT-d in BIOS helped me. MSI Creator Z17 |
I also found a fix that worked. On Lenovo T490, if I disable VT-d, it doesnt still work, so I disabled the advance biometric security directly under the virtualization technology setting in bios, and that fixed it for me. WSL and Hyper V work fine now. |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Environment
I emailed a minidump
Steps to reproduce
Attempts to solve
The issue first occured around the 12th of August after a windows update. I contacted Lenovo an Microsoft support about the issue. Then performed the following steps:
Expected behavior
Windows should not crash when virtualization is enabled in my BIOS
Actual behavior
Windows hangs on boot (black screen with blue windows logo) or BSOD (System Thread Exception Not Handled + APCI.sys)
The text was updated successfully, but these errors were encountered: