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

Benjamin Barinka 25 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 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,725 questions
{count} votes

6 answers

Sort by: Most helpful
  1. Steve Watkins 40 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

    8 people found this answer helpful.

  2. 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

  3. #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

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

    Boot into your BIOS and enable virtualization.

    0 comments No comments

  5. Ricardo Dirani 0 Reputation points
    2024-06-29T00:38:13.2266667+00:00

    In my case, the error came after installing Docker Desktop
    I tried every solution and nothing changed.
    Until I uninstalled Docker Desktop. Now my WSL Ubuntu is back.


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.