How to solve Wsl/Service/CreateInstance/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED

Benjamin Barinka 40 Reputation points
2023-07-25T15:59:53.27+00:00

Hello,

after some while i tried to start my already installed wsl based Ubuntu 20.04 and it crashes with:

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: Wsl/Service/CreateInstance/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED Press any key to continue...

It ran a few weeks ago without any problems. I am owner of a pretty new AMD Ryzen 9 7940HS based Asus Rog G14 laptop (ASUS ROG Zephyrus G14 (GA402XZ-NC021W). SMT and Secure Boot are enabled at BIOS. Core isolution (memory integrity & Kernel mode enforced hardware stack) is enabled. Running on Windows 11:

PS C:\WINDOWS\system32> wsl -l Windows Subsystem for Linux Distributions: Ubuntu-20.04 (Default) PS C:\WINDOWS\system32> wsl -v WSL version: 1.3.14.0 Kernel version: 5.15.90.3-1 WSLg version: 1.0.55 MSRDC version: 1.2.4419 Direct3D version: 1.608.2-61064218 DXCore version: 10.0.25880.1000-230602-1350.main Windows version: 10.0.22631.2050 PS C:\WINDOWS\system32>

Already googled some hours and tried:

wsl --update

or

wsl --update
wsl --shutdown
wsl

already read

https://learn.microsoft.com/de-de/windows/wsl/troubleshooting

folders are uncompressed...

or

netsh winsock reset

or

DISM /online /disable-feature /featurename:VirtualMachinePlatform /norestart
DISM /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart

reboot

DISM /online /enable-feature /featurename:VirtualMachinePlatform /norestart
DISM /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart

or

reinstalling hyper visor plattform and virtual machine plattform through software control panel

or

manually starting the LXSSMANAGER and validating that HV Host Service is running....

and validated service logs (were no errors are inside)

or created a new user at system... which ended up in same problems

All without any help :(

Does anyone have an idea what i could try?

Thank you very much!

Best regards

Windows for business Windows Client for IT Pros User experience Other
{count} votes

9 answers

Sort by: Most helpful
  1. Steve Watkins 60 Reputation points
    2024-02-02T22:09:11.08+00:00

    This solved it for me,
    from https://learn.microsoft.com/en-us/windows/wsl/troubleshooting#installation-issues

    You can validate this by running (elevated powershell): bcdedit /enum | findstr -i hypervisorlaunchtype

    If you see hypervisorlaunchtype Off, then the hypervisor is disabled. To enable it run in an elevated powershell: bcdedit /set hypervisorlaunchtype Auto

    12 people found this answer helpful.

  2. Kinstray 15 Reputation points
    2024-08-04T08:11:31.89+00:00

    Thanks for your help. Reformatting it to make it easier to Copy/Paste.

    This solved it for me too from https://learn.microsoft.com/en-us/windows/wsl/troubleshooting#installation-issues

    You can validate this by running (elevated Powershell or Command Prompt):

    bcdedit /enum | findstr -i hypervisorlaunchtype
    

    If you see hypervisorlaunchtype Off, then the hypervisor is disabled.

    To enable it run in an elevated Powershell or Command Prompt:

    bcdedit /set hypervisorlaunchtype Auto
    
    3 people found this answer helpful.

  3. Thierry Estrada 0 Reputation points
    2024-01-19T11:28:46.62+00:00

    Hi, Just had this problem in a VM. Solved using command on host: Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true as suggested in https://learn.microsoft.com/en-us/windows/wsl/troubleshooting#installation-issues

    0 comments No comments

  4. #ELROY LIANG BO JUN# 0 Reputation points
    2024-01-19T11:52:00.94+00:00

    Issue for me was Virtualization was disabled. I followed this article to enable it at BIOS. https://www.simplilearn.com/enable-virtualization-windows-10-article

    0 comments No comments

  5. Okechukwu Okafor 0 Reputation points
    2024-06-27T07:53:11.9233333+00:00

    Boot into your BIOS and enable virtualization.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.