Jump to content
Posted (edited)

Before I start, please note that I have done everything that people normally suggest when I search or AI ask this question.

 

Brief version of the question: How do I get WSL2 to work again after it stopped working and complains about Virtual Machine Platform not being enabled when it is enabled.


History:
One day, about 1 year ago I suddenly got a BSOD on my windows and then it really took off. Basically I would get 1 BSOD per 20 minutes logged into my computer UNLESS (this is really mindboggling) I had a game started. Then it worked perfectly. I checked the minidumps and see that the different BSOD is all over the place. Hypervisor broken, reading memory that cannot be read, writing memory that is already allocated, kernal crash, important process crashed etc. Also Dropbox and WSL started randomly crashing between the BSOD.
After updating and re-installing the graphics drivers the problem went away for about 8 months. Then it came back again with a vengence.
I really didn't want to reinstall my computer back when it started, I really don't want to now.
So the problem re-appeared. Using AI and the minidump files chatgpt points me in the direction of a broken driver (it did back when I started this journey and it did again now when the problem re-appeared).
Finally one day when I couldn't be on the computer for more than 5 minutes before it BSOD like 5 or 6 times the same day I gave up. I booted into safe mode and just started uninstalling every single driver that I could uninstall. Remove everything.

And it friggin WORKED!!! No more BSOD! It now works perfectly! Woohoo I'm so happy!
I can now work with the computer in desktop mode for weeks without a reboot and play games when I want to etc. etc. No more BSOD.

**BUT** no more WSL.
And I live for WSL.
I started using Unix in 1987 (yes, I'm old) and I know a gazillion Unix/Linux commands so ingrained in my brain that I can write then when I'm asleep. I *need* WSL.

To my actual question:
When I try to start WSL2 I get the following message:

"WSL2 is not supported with your current machine configuration.
Please enable the "Virtual Machine Platform" optional component and ensure virtualization is enabled in the BIOS.
Enable "Virtual Machine Platform" by running: wsl.exe --install --no-distribution
For information please visit https://aka.ms/enablevirtualization
Error code: Bash/Service/CreateInstance/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED


Press Enter or Esc to exit..."

I have uninstalled the hypervisor only, booted, reinstalled it, booted NO DICE.
I have uninstalled WSL only booted, reinstalled it, booted NO DICE.
I have uinstalled both booted, reinstalled, booted NO DICE.
I have uninstalled them (one by one and together) booted and tested then NO DICE.
I have triple and quadrouple checked that Virtualization is enabled in bios it is - disabled it to be sure NO DICE.
Re-enabled Virtualization in Bios - NO DICE.
I have run all the commands that you should run when you get this problem NO DICE.
( which is:
* dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

* dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
* dism.exe /online /enable-feature /featurename:Microsoft-Hyper-V-All /all /norestart

* wsl --install
* wsl --install --no-distribution
* wsl --status (doesn't say anything about any errors)

)

I have done the above commands with hypervisor in windows enabled, disabled, with WSL enabled and disabled NO DICE
I have done the above commands with bios Virtualization turned off NO DICE
... with Virtualization turned on NO DICE.
I have downloaded all drivers from the motherboard manufacturer and installed them again and done all of the above with all drivers installed NO DICE.

... Help!

Edited by Anders Q Liden
Issue was solved. No need to read it.

// Anders Q Liden

Gothenburg, Sweden

Link to comment
https://linustechtips.com/topic/1615352-solved-wsl-not-able-to-launch/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×