WSL: Unable to Recover from Sudden Power Loss and Reopen Custom WSL 2 Gentoo Distribution Installation After Recent Windows 11 Pro 23H2 Updates

Windows Versions

  • Windows 11 Pro 23H2, build 22631.3672 (‘2024-05 Cumulative Update Preview’) (‘Microsoft Windows [Version 10.0.22631.3672’)
  • Windows 11 Pro 23H2, build 22631.3737 (‘2024-06 Cumulative Update’) (‘Microsoft Windows [Version 10.0.22631.3737]’)

WSL Versions

  • 2.1.5.0
  • 2.2.4.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Versions

  • 5.15.146.1-2 (Under WSL v2.1.5.0)
  • 5.15.153.1-2 (Under WSL v2.2.4.0)

Distribution Version

Gentoo (custom installation set up quite some time ago using this guide)

(I’d check for more version information inside a running distribution session, but, per this issue, none will launch.)

Other Software

Nothing applicable that I can think of.

Steps to Reproduce

  1. Be running Windows 11 Pro 23H2, build 22631.3593 (‘2024-05 Cumulative Update.’) (Or earlier?0

  2. Have an existing custom Gentoo WSL 2 distribution set up like in this guide.

         For the purposes of this section, this has presumably simply been named ‘Gentoo;’ adjust other instructions if/as needed.

  3. Set ‘experimental.sparseVhd’ to ‘true’ in your ‘.wslconfig.’

  4. In an administrator PowerShell session, run:

    wsl --manage Gentoo --set-sparse true
    
  5. Enable NTFS compression on the custom WSL 2 Gentoo distribution’s backing VHDX image file. (For me, this is at ‘%LocalAppData%\WSL\Gentoo\ext4.vhdx.’)

  6. Have at least one terminal session instance running for this custom WSL 2 Gentoo distribution.

  7. Have your system running at high load.

  8. Experience a Windows-side system-wide crash which leaves you with a completely frozen system or a blank or black screen which requires you to do a forced hard restart of your system.

         If you’re lucky, you won’t encounter the next step, but it can still happen.

  9. Attempt to launch the WSL 2 distribution in question using any method. (Opening using either a direct invocation of the relevant Windows Terminal profile or by running wsl or wsl --distribution Gentoo from inside a PowerShell session.)

Expected Behavior

The custom Gentoo installation should launch again, bringing me to a ‘bash’ prompt.

Actual Behavior

Distribution launch hangs indefinitely.

Diagnostic Logs

WslLogs-2024-06-05_20-38-59.zip


  1. This started happening some time after my recent update of Windows 11 Pro 23H2 to the 2024-05 Cumulative Update Preview (build 22631.3672.)
  2. I also re-compacted my custom Gentoo installation’s VHDX file recently, but I remember it still working after that but before updating Windows. I can’t remember for sure if the distribution worked at any point after installing that Windows update; sorry.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24

Most upvoted comments

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Diagnostic information
.wslconfig found
Detected appx version: 2.2.4.0