Hello Mihailik,
Are you running any other type-2 hypervisors like VMware or VirtualBox? Earlier this conflicted and led to the errors you reported. However, VMWare and VirtualBox has released versions that support Hyper-V and WSL2.
- If you have 3rd party hypervisors installed (Such as VMware or VirtualBox) then please ensure you have these on the latest versions which can support HyperV (VMware 15.5.5+ and VirtualBox 6+).
- Ensure virtualization technology (VTx) is enabled at the BIOS level.
- Goto Windows Programs and Features > Turn Windows Features on or off > Ensure Virtual Machine Platform is enabled.
- If not - enable it.
- If already showing enabled and still getting error - remove the feature, reboot your PC, enable the feature again.
- Also check hypervisor launch is enabled in your boot configuration.
- bcdedit /enum | findstr -i hypervisorlaunchtype
- If showing hypervisorlaunchtype Off or no results, run the below command to enable the hypervisor.
- bcdedit /set hypervisorlaunchtype Auto
- Run wsl --install -d <distro_name>. It should start installation and launch it your distro.
Ref and more info: Troubleshooting Windows Subsystem for Linux | Microsoft Learn