Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error code: Wsl/Service/CreateInstance/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED #10332

Open
1 of 2 tasks
bebablub opened this issue Jul 25, 2023 · 19 comments
Open
1 of 2 tasks

Comments

@bebablub
Copy link

Windows Version

Microsoft Windows [Version 10.0.22631.2050]

WSL Version

WSL version: 1.3.14.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Kernel version: 5.15.90.3-1

Distro Version

Ubuntu-20.04

Other Software

No response

Repro Steps

It worked a few weeks ago so I installed Ubuntu 20.04 distro. But now i am getting
`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...

[process exited with code 4294967295 (0xffffffff)]
You can now close this terminal with Ctrl+D, or press Enter to restart.`

After trying to start the distro within Windows Terminal 1.17.11461.0

Expected Behavior

Ubuntu WSL starts

Actual Behavior

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

[process exited with code 4294967295 (0xffffffff)]
You can now close this terminal with Ctrl+D, or press Enter to restart.`

Diagnostic Logs

I am running on a a pretty new AMD Ryzen 9 7940HS based ASUS ROG Zephyrus G14 (GA402XZ-NC021W).

SMT is enabled at BIOS, enable or disable Secure Boot does not seem to have any effect

I tried with no effect:

Enabled core isolation (memory integrity & Kernel mode enforced hardware stack)

Checked that file system is uncompressed

wsl --update

wsl --update
wsl --shutdown
wsl

netsh winsock reset

DISM /online /disable-feature /featurename:VirtualMachinePlatform /norestart
DISM /online /disable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart
then reboot and
DISM /online /enable-feature /featurename:VirtualMachinePlatform /norestart
DISM /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /norestart

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

Manually starting the LXSSMANAGER and validating that HV Host Service is running

Validated service logs (which were clean)

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

Does anyone has an idea? Thank you!

@ghost
Copy link

ghost commented Jul 25, 2023

/logs would be appreciated

@microsoft-github-policy-service
Copy link
Contributor

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

Thank you!

@bebablub
Copy link
Author

Hello,

thank you for reply. I have executed the script as administrator in a powershell and tried to start wsl within my terminal. Logs are attached

WslLogs-2023-07-26_03-10-04.zip

thx!

@bebablub
Copy link
Author

Does anyone have an idea?.... :/ Otherwise will do a clean Windows install....

@NeonWizard
Copy link

NeonWizard commented Nov 6, 2023

Same issue here. Not able to find any solutions online. Just randomly started happening, I haven't changed anything.

@AskAlice
Copy link

AskAlice commented Nov 16, 2023

Same issue here. Not able to find any solutions online. Just randomly started happening, I haven't changed anything.

check msconfig and ensure you are in normal startup mode, and your boot services aren't cherry-picked

@NeonWizard
Copy link

Same issue here. Not able to find any solutions online. Just randomly started happening, I haven't changed anything.

check msconfig and ensure you are in normal startup mode, and your boot service aren't cherry-picked

You are literally a godsend. I was in selective startup for some reason, switching to normal startup fixed it.

@snhok
Copy link

snhok commented Nov 17, 2023

For me, I had recently updated my bios and the Intel Virtualization Technology became disabled. After I reenabled it, WSL2 was working again.

@AskAlice
Copy link

Same issue here. Not able to find any solutions online. Just randomly started happening, I haven't changed anything.

check msconfig and ensure you are in normal startup mode, and your boot service aren't cherry-picked

You are literally a godsend. I was in selective startup for some reason, switching to normal startup fixed it.

lol I would say the same to you. When you mentioned you weren't able to find any solutions having tried the ones above, I thought about what i changed when i migrated my windows install to a VM with gpu passthrouh on linux, and realized I disabled the hypervisor in startup settings. I thought it was weird that the windows bootloader UI looked like windows 7 and there was no automatic timer and I had to press enter every time I wanted to boot into a different bcdedit entry...

@jafber
Copy link

jafber commented Dec 4, 2023

Had the same problem, could not start Docker Desktop (and curiously also not install WSL 2). Turning the Hyper-V Windows feature off and on again solved it for me. So:

  1. Control Panel > Programs > Turn Windows features on or off > Untick Hyper-V > Ok > Restart

  2. Control Panel > Programs > Turn Windows features on or off > Tick Hyper-V > Ok > Restart

@prokopis3
Copy link

WslLogs-2023-07-26_03-10-04.zip
same problem here i just upload the logs file of our system
any thoughts

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

Thank you!

@sergiopvilar
Copy link

Same issue here. I have everything enabled on the windows and on my BIOS as well. Not sure why I'm getting this since I had WSL 2 running a while ago on the same machine.

@NeonWizard
Copy link

Same issue here. I have everything enabled on the windows and on my BIOS as well. Not sure why I'm getting this since I had WSL 2 running a while ago on the same machine.

Did you give AskAlice's solution a try? If WSL gets in a bad state Windows apparently can automatically disable its bootup processes in msconfig. I think this happened to me when Docker Desktop had a really bad memory leak inside WSL2

@yeremi01
Copy link

aqui esta mi solucion https://www.youtube.com/watch?v=QW2DgEzb3Vc

@xiurenfuwo
Copy link

xiurenfuwo commented Jan 15, 2024

check msconfig and ensure you are in normal startup mode, and your boot services aren't cherry-picked

Thanks, it effects.

@prokopis3
Copy link

The wrong drivers were installed in the motherboard. My problem fixed

@misft55
Copy link

misft55 commented Jan 19, 2024

Hello,
I don't know if your wsl --install issue was resolved, I will put this out there JIC.
My issue was resolved differently than prokopis3.
I was working on MacOS/VirtualBox Win 11install and in a "how to" related to Win11Vming in Windows Security I changed two Core Isolation options to off.

  • Memory Integrity
  • Kernel-mode Hardware-enforced Stack Protection

I turned them back on, restarted and Ubuntu fired right up.

  • Ubuntu 22.04.3 LTS (GNU/Linux 5.15.133.1-microsoft-standard-WSL2 x86_64)
  • wsl 2
  • Processor 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz 3.00 GHz
  • System type 64-bit operating system, x64-based processor
  • Edition Windows 11 Home
  • Version 23H2
  • OS build 22631.3007
  • Experience Windows Feature Experience Pack 1000.22681.1000.0

@goodpersons
Copy link

bcdedit /set hypervisorlaunchtype auto
之前使用模拟器 提示让我禁用 Hyper-V , 之后我进行了 Hyper-V 的重启 试过上面的所以的方法都没有效果,在最后
执行了 如上指令 在重启电脑 得到了解决 希望可以帮助到你

@CalvinXu17
Copy link

bcdedit /set hypervisorlaunchtype auto 之前使用模拟器 提示让我禁用 Hyper-V , 之后我进行了 Hyper-V 的重启 试过上面的所以的方法都没有效果,在最后 执行了 如上指令 在重启电脑 得到了解决 希望可以帮助到你

This is useful!! Thanks bro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests