-
Notifications
You must be signed in to change notification settings - Fork 823
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
Can't boot after WSL 2 Install #4784
Comments
I've been able to use Windows Restore Points to fix not being able to boot so I'm happy to run the WSL 2 install again and collect the necessary info (though I can't boot into windows so how does one do that? 🤔). |
Having the same issue, it also occurs while enabling the virtual machine platform through the windows features GUI, though it at least got to 15% updating before it hung |
Same issue, I enabled the 2 windows features separately tho. First windows subsystem for linux, which reboot normally, but then enabling windows virtualmachineplatform caused the system to fail at boot. More specifically, the bootloader does seem to load Windows but just stalls at black screen until forced shutdown. |
Duplicate of #4780 |
After some continued troubleshooting, the root problem appears to be I can't enable Hyper-V on I formatted and started over to get back to build 1909 and I can install Hyper-V and therefore run WSL (v1 of course). Windows Feedback Hub link, My blog post w/ some additional details I feel like I should close this issue as it doesn't appear to be a WSL 2 issue but a Hyper-V/Windows 10 issue. 🤔 |
Very probably a recent(ish) regress because there'd be more screeching when WSL2 was released to Insiders last Spring, and these two (w/ #4780) came in back-to-back.
Windows feedback hub was the right thing to do (thanks!). The feedback hub isn't as black a hole as some might imagine it to be. If a lot of people report a problem they do get looked at. Technet hyper-v forum not a bad place to post too.
Open, closed; not a big difference in this instance. It was constructive to post here so folks doing a search know they're not alone. |
Everyone, please upvote the Windows Feedback Hub Problem Report so this gets addressed, thanks! Upvote == Add similar feedback in app |
The issue is coming from one of the last few insider builds, I had no trouble getting WSL2 going on a clean install last month. I'm not sure exactly how Hyper-V is involved though, I'm currently running 19541 build with the My understanding is that the |
Actually I was now just able to manually enable all the features needed to run WSLv2 on latest insiders build (10.0.19541)! I had enabled each of the following features separately restarting after each:
Then I installed Ubuntu from the Windows Store which gave me a WSLv1 distro working normally. I followed by running the command in powershell: After reboot, Windows was able to configure the new optional features correctly however interestingly, the new WSLv2 distro is having networking issues, likely something to do with Hyper-V or Virtual Machine Platform... |
Still convinced the original stated issue exists though, my comment above was just a strange no-reboot workaround. A clean install of latest insider's build still does fail to boot after enabling both Windows Subsystem for Linux & Virtual Machine Platform as per the WSL2 install docs. Fixed my above network issue via #4285 (comment) in case anyone else runs into same problem |
I'm personally able to boot no problem. Haven't touched the Windows features since I can remember. |
So I'm not crazy! I thought I had WSL 2 working too! I know I was running
Fresh install of Windows for me. I don't know what this means but I suspect it is related to the underlying issue: Notice the "partial checked state" but both sub-items are checked? 🤔 |
"Virtual Machine Platform" is the only component required for WSL2. The various Hyper-V features include subsets or supersets of the required functionality. |
@ev-dev I tried this and it didn't work for me. I rolled back my Windows to version 19541. Then installed Hyper-V through dism and restarted. I tried to do the same for Windows Hypervisor Platform and Windows Subsystem for Linux but they were already installed. Next I ran Any advice? EDIT: Everything seems to be working now after I updated to the just-released Windows build 19551. I converted from WSL1 to WSL2 with no issues using the normal procedure. |
It is happening with me in a Windows 10 Pro Version 19041.21. Just after enabling WSL2 with Docker Desktop Edge and installing a VM using WSL2 from Windows Store i could not boot anymore... |
Also have Win 10 Pro V19041.21, WSL2, and Docker Desktop Community and getting the black screen on boot periodically -- have to hold the power down and hope the next boot comes up normal which is about half the time. |
It is not work for me |
Once you allow Virtual Machine Platform, boot fails and you end up having to boot in safe mode and set hypervisorlaunchtype off in 'bcdedit'. It's not an issue with the bios nor hardware. Attempted on both Windows 10 Pro and Win10 Home on 2 desktops both build 19041... I've found something odd after a week of attempts. Let the boot fail 3 times, go into Troubleshoot, then choose to "Debugging Mode" under Advanced Startup Options. After this, it for some reason just finished the install of Hyper-V, Hypervisor, and Virtual Machine Platform. I can now run WSL2 etc but I guess it's at the expense of some of my drivers not running? The quest for a proper solution continues... Turns out having ESEA Client for csgo installed on my computer broke Hyper-V/VirtualMachinePlatform/Hypervisor etc... |
Reproducible for me:
Result: Fixes/Workarounds:
|
I have been encountering a problem like this since September 2019 both on stable and Insider versions of Windows and have only just found this issue. I am not 100% sure it is the same problem, but on the off chance it is, I would like document my experience. Booting Windows results in it hanging on a black screen after the progress circle when virtualization (AMD SVM) is enabled in the BIOS. The fan runs at full blast and the shell never starts. I did some bisection with system drivers and found that when I disabled atikmpag.sys, the AMD integrated graphics display driver, the system booted fine with virtualization enabled. Since my system did not work well without the driver, I decided to live with the issue and not use WSL 2. Today, after reinstalling Windows 1909 in another attempt to fix the issue, I found that it was fixed and I could boot with virtualization enabled. However, after installing the Virtual Machine Platform feature, as required by WSL 2, my machine stopped booting again. I updated to the Fast ring, build 19631.1, and the issue continued to appear. My uneducated guess is that having SVM and the Virtual Machine Platform enabled means something is triggered in atikmpag.sys to make the system hang during bootup. I will attempt to debug the issue once my cable arrives in 2 days' time. |
Try disabling fast boot and see if that helps. |
Regretfully, it did not. |
(@jbooth-sr: The BIOS on my Gigabyte Aero 15 does not offer a Fast Boot option one way or another.) I've spent many hours since my last post trying to find a successful combination of build version, updates taken or skipped, updating or not updating drivers on my own, and previously installing WSL 1 or not. They all failed. In every combination I tried, I was left with a binary choice of enabling Virtual Machine Platform and not being able to boot, or not enabling it and not being able to use WSL. Clearly many other users are in fact using WSL 2 successfully, leading me to wonder whether the issue is about a specific incompatible driver or other quirk on my machine; or is about a subsequent patch to Windows or WSL that has made it impossible for new WSL 2 users to get past the initialization stage. My initial, one brief success may have hinged on either something I installed/configured during my regular use of the machine that was lost once I did a fresh install; or perhaps was enabled by being prior to some system firmware update being applied (do the Intel microcode updates work that way?) I am not savvy on debugging windows boot issues so do not know how to proceed further. I'm open to suggestions. I'd also appreciate any tips if there are shortcuts that would speed up my testing cycle: right now each try is very painful, requiring multiple failed reboots to access safe mode, having to say "I forgot my PIN" because that process locks out the normal log in mechanism, and not being able to access the recovery command console because it will not take my password. I've also filed this as a new issue via the feedback hub. Given it is reproducible on at least my machine I feel like someone in QA should confirm whether the documented install procedure works on a fresh install of build 19041 with the current applicable updates on at least some machines. |
The Fast Boot option in Windows is located in Control Panel > Power Options > Choose what the power buttons do (on the left side). Side note: the Gigabyte Aero 15 doesn't have an AMD processor, so that rules out the exact same root cause as mine, driver-wise.
Try turning off virtualization/VT-x/d in the BIOS. That let me boot when I installed VirtualMachinePlatform. You could try the driver bisection method I mentioned in my earlier comment to diagnose if it's a driver thing, but it's very annoying and requires manual registry editing. Let me know if you're open to that and I can give you more details! |
Oh! Thank you. I tried it, but no difference.
Interesting. That hack lets me survive the reboot following enabling VirtualMachinePlatform, which lets Windows complete its setup, and gets me access to the wsl console command. This lets me enter the third command from the setup instructions (set wsl default version to 2). But when I go to the Store after that and go to the Ubuntu page, it hangs on a spinning circle. I rebooted, re-enabled VT-X, but was right back at the hang on boot problem.
Thank you for the offer! Having spent my weekend on this issue as it is, it's past due for me to return to current work, and that process does not sound quick. Maybe I'll try again next weekend. |
Thanks, you save my day. I got the same issue in my T495 (AMD). After enter bios and disable AMD virtualization. I can boot into windows. |
Same issue here, SVM on AMD = black screen after installing virtualization platform, turning off fastboot did not help, I went back to Manjaro on this machine |
I'm running Windows 10 Home Version 10.0.19631.1 with AMD Ryzen 5 3550H. I used to have the same issue after turning Virtual Machine Platform on. But, I was able to boot normally after doing the following steps.
Although, I should mention that I have received blue screen of death a couple times after doing this. But I'm attributing that to my OS being in the fast track insider edition. I even installed wsl2 version of docker later.Its working fine. |
I was able to install WSL2 without any errors after disable IOMMU in the BIOS. Before that I couldn't boot into Windows with VSM Mode Enabled. My Systemspecs:
I hope this helps someone! |
It works, thank you. After I disable VT for Direct I/O in BIOS, my device boot successfully. My Systemspecs: |
These steps works for me:
Reference: https://winaero.com/update-from-wsl-to-wsl-2-in-windows-10/ |
I had ubuntu 20.04 before installing
after restarting LxssManager, my WSL was in infinite loop. above steps really worked to come out of it. |
I got the same issue with a BSOD: UNMOUNTABLE_BOOT_VOLUME. I went to BIOS and disable DMA, VT-x and VT-d are on and I can boot normally. Initially, the Virtual Machine Platform prevented me from upgrading to 22H2. I removed it and I can upgrade but ended up with the BSOD. Hope this help someone but definitely it's a bug.
All drivers and firmware are at their latest per Lenovo Vantage + Lenovo Laptop support page. |
DELL XPS 15 7590 EDIT: After disabling VT for I/O boots again Same issue I have used without any problem wsl2 so far, for some months now, so I can't explain why now is not working, I just wanted to point out that the hardware theory looks unfeasible to me |
Was stuck in a boot loop as well. Got the BSOD with INACCESSIBLE_BOOT_DEVICE. After I disable VT for Direct I/O in BIOS my device boots again. Please correct me if I'm wrong and what should/could I do if this has to be enabled? At the moment I am working on a fresh install of Windows 11 Pro
My hardware specs are the following:
|
Same issue yet on another Lenovo. I have encountered countless issues that I suspect to be firmware related on this ThinkPad. Will never buy a Lenovo again 🙄 I have been using WSL1 and WSL2 for years with no problem before I encountered this issue. Several days before I loaded the default BIOS setting (for stupid reasons) and got the
I disabled DMA and VT for Direct I/O in BIOS and can boot again. I am actually able to use WSL with those disabled. Things seem to work as before except that Windows Defender is giving me a warning for disabling DMA. Haven't tried docker though.
|
@owned139 , How did you know which network driver your Windows 11 uses by default? This is the last workaround I can try on this thread but am kind of confused how you got this information? When I uninstall my network driver and let windows look for drivers it just installs exactly the same. Does "let Windows install the default one" mean you just click "scan for hardware changes" after uninstalling your current driver? EDIT: Important notice for anyone facing these problems. You don't need vt-d for wsl, wsl2 and/or wslg. So just disable vt-d in your BIOS and reboot. Install wsl like you normally would and everything should be working fine. |
For those complaining about Thinkpads, I've gotten the INACCESSIBLE_BOOT_DEVICE BSOD after trying to turn on "Core Isolation" on a Dell XPS 15 7590. The fix for me was to disable VT-d support in the UEFI/BIOS. (VT-x could stay enabled though.) Now I'm trying to get WSL2 going, we'll see if that will work... |
@ZPrimed I face the same problem with the Error message. have you been able to solve it? |
I have a Dell XPS 15 and am running Win 11 in the Insiders Program, build 22623.1020. Whenever I enabled Virtual Machine Platform in the Windows Features I got INACCESSIBLE_BOOT_DEVICE GSOD after the boot. I took the advice above and disabled VT Direct I/O in UEFI, and now applying the Feature has worked fine. As did running WSL and installing Ubuntu. |
I also have a Dell XPS 15 7590 (i7-9750H CPU) and experienced the INACCESSIBLE_BOOT_DEVICE after installing wsl2. Like @JasonBSteele I was able to fix it by disabling "VT for Direct I/O" in the BIOS. This is with released Win11 22H2 (build 22621.900) and the latest Dell BIOS (1.19.0, 9/14/2022) |
This issue is discussed in https://www.dell.com/community/XPS/XPS-15-7590-Memory-Integrity-on-causes-an-inaccessible-boot/td-p/8273941. Note that in spite of the "Solved" label, the issue is not solved (apparently they are waiting for someone with an in-warranty XPS to send it in for study in exchange for an equivalent system). |
I have this problem with my PC but not my notebook, this only happens with W11 and with an installation that has secure boot disabled, it looks like if you have a installation that disabled secure boot, it will break the boot when installing WSl2. |
UMA Frame Buffer fix didn't work, it's set to 1G on Steamdeck by default and setting it to 4G didn't help either. There is no auto option. Same whether on IOMMU or not |
I have a ThinkPad with Windows 22H2. Installing WSL 2 prevented my computer from booting up; I got the blue screen of death. I was able to fix it by booting into the bios (press enter during boot) and disabling "Kernal DMA Protection" under Security/Virtualization. See screenshot. This ticket really should be fixed because bricking a computer after installing WSL is obviously terrible. |
I’m encountering a similar issue here. After installing wsl2 and restarting to complete installation. It seems my pc fails to send a signal to my monitor. The monitor and cable both work just fine on other computers, so it’s definitely with my pc. I’ve attempted to reset my BIOS by clearing the CMOS as well as formatting my drives from other computers. The issue still persists. When booting the same HDD and SSD from a different build, it boots fine. My GPU still functions but the only differences from the functioning vs non-functioning build is the motherboard, CPU and RAM. So the issue is most likely with those 3. Using the same PSU on other builds still works but it’s still possible my PSU isn’t giving enough power, even though it was working prior to installing WSL. I can’t enter any menus to troubleshoot or reset, however, because my monitor detects a connection but doesn’t receive a signal. I’m afraid I might be forced to buy new components until it works but I don’t have the finances to afford it at the moment. |
ASUS TUF FX505DT user here. |
I had exactly the same issue (well, at least symptoms) on Win 11 / Dell XPS 15” (Intel).
I am not certain was the “Virtualization for Direct-IO” the real culprit or did I just got lucky… |
I experienced exactly the same issue. Windows 11 Pro, |
We encountered this issue after failed attempts to install Ubuntu with WSL 2 and electing to uninstall WSL from the Windows Features GUI. The uninstall appeared to complete normally and prompted for the customary system restart. After the system restart, the Windows Recovery screen was displayed (see screenshot). The OS build was completed on 11/18/2023 and was built from the Windows 11 22H2 ISO (not as an upgrade to 22H2). 11/29/2023 - Addendum: While attempting to disable & test the various virtualization settings in the bios, we discovered that pressing the F1 key at the Recovery screen to enter the Recovery Environment appeared to start the Recovery Environment but only blanked the screen before returning us to the Recovery screen. Hardware specifics listed below. System: Dell XPS 15 9530 |
For anyone stuck in repair screen after WSL installation, here is how you can rescue your Windows installation. Boot to an Windows installer iso, select command prompt from the repair options instead of "install now". Now enter the following:
in this case "d:" is your windows partition where the windows directory is located. Now your installation should boot again. btw "BCDedit /set hypervisorlaunchtype Off" wasn't working in my case. |
I had the same problem with an I7 11800H, RTX 3060, and Windows 11 Pro 23H2 while trying to install WSL2, the system worked perfectly, but when I typed only PS: trying all fixes to the blue screen I could find or the commands here didn't return anything, it's only a symptom of another problem caused by the hyper-V install that somehow halts the BCD being correctly loaded, I only wanted to use WSL2 |
Having the same issue here. |
This also saved my life. |
Things I've tried that haven't worked: OS Name Microsoft Windows 11 Home |
I turned off fast boot option from both Bios and power options now it is working fine. Thanks |
Your Windows build number:
Version 10.0.19536.1000
What you're doing and what's happening: After, Enable the 'Virtual Machine Platform' optional component and make sure WSL is enabled, I can't boot into Windows.
What's wrong / what should be happening instead: I should be able to boot into Windows
Strace of the failing command, if applicable: N/A
For WSL launch issues, please collect detailed logs.
Happy to provide any additional details to troubleshoot but I'm not sure what else to provide at this point in time. I've painstakingly tracked this can't boot issue down to WSL 2 install (6 PM an on in blog post).
The text was updated successfully, but these errors were encountered: