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

Wsl/Service/CreateInstance/CreateVm/HCS_E_SERVICE_NOT_AVAILABLE #8793

Closed
1 of 2 tasks
KiaWeb opened this issue Sep 4, 2022 · 8 comments
Closed
1 of 2 tasks

Wsl/Service/CreateInstance/CreateVm/HCS_E_SERVICE_NOT_AVAILABLE #8793

KiaWeb opened this issue Sep 4, 2022 · 8 comments

Comments

@KiaWeb
Copy link

KiaWeb commented Sep 4, 2022

Version

Microsoft Windows [Version 10.0.22621.590]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5

Distro Version

Kali Linux Rolling

Other Software

No response

Repro Steps

Enable WSL and try to run wsl.exe with no arguments in the Command Prompt

Expected Behavior

Running the Kali Linux App on Microsoft Store should work and/or wsl.exe should work

Actual Behavior

The operation could not be started because a required feature is not installed.
Error code: Wsl/Service/CreateInstance/CreateVm/HCS_E_SERVICE_NOT_AVAILABLE

Diagnostic Logs

No response

@SFizAlthaf
Copy link

Any update on this? I'm facing the same issue

@normanpoh
Copy link

normanpoh commented Dec 26, 2022

I get the same code but this happens when I issued the following command, trying to change my Ubuntu-22.04 to use wsl2 instead of the default 1.

PS C:\WINDOWS\system32> wsl --set-version Ubuntu-22.04 2
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Conversion in progress, this may take a few minutes.
The operation could not be started because a required feature is not installed.
Error code: Wsl/Service/CreateVm/HCS_E_SERVICE_NOT_AVAILABLE
image

@Biswa96
Copy link

Biswa96 commented Dec 27, 2022

Make sure virtualization is on in bios or uefi settings. And the following command in admin command prompt shows the 'auto' result.

> bcdedit | find /i "hypervisor"
hypervisorlaunchtype    Auto

@wzhy920127
Copy link

wzhy920127 commented Dec 28, 2022

Same problem

>>> wsl --version
WSL 版本: 1.0.3.0
内核版本: 5.15.79.1
WSLg 版本: 1.0.47
MSRDC 版本: 1.2.3575
Direct3D 版本: 1.606.4
DXCore 版本: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows版本: 10.0.22621.963

@wzhy920127
Copy link

同样的问题

>>> wsl --version
WSL 版本: 1.0.3.0
内核版本: 5.15.79.1
WSLg 版本: 1.0.47
MSRDC 版本: 1.2.3575
Direct3D 版本: 1.606.4
DXCore 版本: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows版本: 10.0.22621.963

Check whether the hyper-v function is enabled
Snipaste_2022-12-28_11-16-32

@okibcn
Copy link

okibcn commented Mar 20, 2023

I just got the same issue after upgrading from WSL 1.1.3 to 1.1.5. I never needed Hyper-V feature for running WSL2. Is this a new requirement?

@okibcn
Copy link

okibcn commented Mar 20, 2023

For some reason, Virtual Machine Platform feature was deactivated in my Windows 11 Canary preview. As before Hyper-V is not required for WSl2 to work. The only required feature is the mentioned Virtual Machine Platform. It worked again after re-activating that feature.

Screenshot 2023-03-20 114150

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

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

6 participants