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 0x80370102 The Virtual machine could not be started because a required feature is not installed .... #436

Closed
SteveALee opened this issue Jun 27, 2019 · 66 comments

Comments

@SteveALee
Copy link

SteveALee commented Jun 27, 2019

Following instructions on https://docs.microsoft.com/en-us/windows/wsl/wsl2-install#feedback with a fairly clean install of Build 18922

  • enabled The VMPlatform, reboot
  • enabled wsl, reboot
  • wsl set-default-verion 2
  • Install Ubuntu from store - https://aka.ms/wslstore as directed by wsl -l -v
  • Launch Ubuntu

Get the above error.

@craigloewen-msft
Copy link
Collaborator

Is virtualization enabled in your BIOS? That could be a quick fix.

We're tracking this issue over in #404 and we can help you troubleshoot there!

@SteveALee
Copy link
Author

Ah, yes. I didn;t check as 0x80370102 is different error number to that listed for that issue. I forgot to enable it as Insiders Machine was not a dev PC. Still getting the error though. Will head over to #404 (a very suitable number) :D

@blackmasks
Copy link

I had a similar problem on when installing on my new system. I checked my BIOS @craigloewen-msft as mentioned. The first time I didn't find anything but after doing a bit more research I tried turning on SVM in the BIOS and it worked. (I also turned on the Windows Hypervisor setting in Windows Features)

(Advanced → CPU Configuration → SVM → Enable)

This is the case for AMD systems. Apparently it is different for Intel based systems.

@MJEND7
Copy link

MJEND7 commented Sep 3, 2020

Hi i am have i BIG issue with getting Kali Linux installed on my Windows 10 PC. i was having a problem with Kali it said that there were unmet dependencies. try 'apt --fix-broken install' with no packages (or specify a solution). and i looked it up and i just could not find anything to fix it so i was like "ok i will just uninstall and try a again later". but when i installed it again it will not even work like at ALL!!
and this is the error (╯°□°)╯︵ ┻━┻
WslRegisterDistribution failed with error: 0x80370102
Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.

but i have all the right "dependencies" #i say with sarcasm, pls pls pls help MeEeeE

@ManoloMoraes
Copy link

Is virtualization enabled in your BIOS? That could be a quick fix.

We're tracking this issue over in #404 and we can help you troubleshoot there!

Thank you, i enable and work.

@ghost
Copy link

ghost commented Sep 22, 2020

Is virtualization enabled in your BIOS? That could be a quick fix.
We're tracking this issue over in #404 and we can help you troubleshoot there!

Thank you, i enable and work.

how did u do it

@ktmn
Copy link

ktmn commented Sep 25, 2020

"The Virtual machine could not be started because a required feature is not installed"

How about make the message say which feature is not installed.

I got Virtualization enabled in BIOS, Windows Subsystems for Linux and Virtual Machine Platform enabled in Windows features, still get the message.
Do I need Hyper-V enabled? Do I need Windows Hypervisor Platform?

Edit: no, enabling these 2 didn't solve it either.

Edit 2: running bcdedit /set hypervisorlaunchtype auto start and reboot seems to have worked for me. So maybe I did need Hyper-V and/or Hypervisor Platform enabled, but it doesn't tell you anything useful.

@kscott5
Copy link

kscott5 commented Sep 27, 2020

Hi @ktmn ,

Windows Subsystem for Linux or #WSL is for me and I'm aware this issue was closed. I got the following error after
Upgrading #WSL Windows Subsystem for #Linux on Windows 10 Professional with only bios #Virtualization and not SLAT.

"#0x80370102 the #virtual #machine could not be started because a required feature is not installed."

C:>wsl --set-default-version 1, Set default version 1, resolves the error on my desktop.

The above resolves the error and got me further. Now...

C:>ubunutu.exe
Prompts with new username and password.

WSL2_Error_0x80370102

@MJEND7
Copy link

MJEND7 commented Sep 28, 2020 via email

@thomas-griffiths
Copy link

"The Virtual machine could not be started because a required feature is not installed"

How about make the message say which feature is not installed.

I got Virtualization enabled in BIOS, Windows Subsystems for Linux and Virtual Machine Platform enabled in Windows features, still get the message.
Do I need Hyper-V enabled? Do I need Windows Hypervisor Platform?

Edit: no, enabling these 2 didn't solve it either.

Edit 2: running bcdedit /set hypervisorlaunchtype auto start and reboot seems to have worked for me. So maybe I did need Hyper-V and/or Hypervisor Platform enabled, but it doesn't tell you anything useful.

This worked for me too. Thank you.

@12729582
Copy link

Hi @ktmn ,

Windows Subsystem for Linux or #WSL is for me and I'm aware this issue was closed. I got the following error after
Upgrading #WSL Windows Subsystem for #Linux on Windows 10 Professional with only bios #Virtualization and not SLAT.

"#0x80370102 the #virtual #machine could not be started because a required feature is not installed."

C:>wsl --set-default-version 1, Set default version 1, resolves the error on my desktop.

The above resolves the error and got me further. Now...

C:>ubunutu.exe
Prompts with new username and password.

WSL2_Error_0x80370102

thank you thank you

@mtshikomba
Copy link

mtshikomba commented Oct 16, 2020

$ wsl --set-default-version 1

This one solved it for me.

Hi @ktmn ,

Windows Subsystem for Linux or #WSL is for me and I'm aware this issue was closed. I got the following error after
Upgrading #WSL Windows Subsystem for #Linux on Windows 10 Professional with only bios #Virtualization and not SLAT.

"#0x80370102 the #virtual #machine could not be started because a required feature is not installed."

C:>wsl --set-default-version 1, Set default version 1, resolves the error on my desktop.

The above resolves the error and got me further. Now...

C:>ubunutu.exe
Prompts with new username and password.

WSL2_Error_0x80370102

This one solved it for me.

@pluc
Copy link

pluc commented Dec 3, 2020

How about you come up with specific, non-stupid error messages so people don't have to go through this thread to identify what was the error?

@WhiteZorin
Copy link

@ktmn - THANK YOU! the below has solved the issue after days of trying random solutions from google/blogs/ms threads...

Edit 2: running bcdedit /set hypervisorlaunchtype auto start and reboot seems to have worked for me. So maybe I did need Hyper-V and/or Hypervisor Platform enabled, but it doesn't tell you anything useful.

Although it doesn't show any Hyper-V or Hypervisor platform to be turned on in "Turn windows features on". And in services.msc the only one working currently is: Hyper-V host compute service...

@ghost
Copy link

ghost commented Dec 15, 2020

I had the same problem and changing the setting in my bios to enable VM fixed this issue, so try that too in case none of the commands above fixed it for you

@DarkChocolate
Copy link

"The Virtual machine could not be started because a required feature is not installed"

How about make the message say which feature is not installed.

I got Virtualization enabled in BIOS, Windows Subsystems for Linux and Virtual Machine Platform enabled in Windows features, still get the message.
Do I need Hyper-V enabled? Do I need Windows Hypervisor Platform?

Edit: no, enabling these 2 didn't solve it either.

Edit 2: running bcdedit /set hypervisorlaunchtype auto start and reboot seems to have worked for me. So maybe I did need Hyper-V and/or Hypervisor Platform enabled, but it doesn't tell you anything useful.

This worked for me as well, thank you!

@imperialguy
Copy link

"The Virtual machine could not be started because a required feature is not installed"
How about make the message say which feature is not installed.
I got Virtualization enabled in BIOS, Windows Subsystems for Linux and Virtual Machine Platform enabled in Windows features, still get the message.
Do I need Hyper-V enabled? Do I need Windows Hypervisor Platform?
Edit: no, enabling these 2 didn't solve it either.
Edit 2: running bcdedit /set hypervisorlaunchtype auto start and reboot seems to have worked for me. So maybe I did need Hyper-V and/or Hypervisor Platform enabled, but it doesn't tell you anything useful.

This worked for me as well, thank you!

None of them worked for me. I am running WSL2 on Windows 10 VM on proxmox with nested virtualization enabled. Task Manager on Windwows does show Virtualization: Enabled. All the program features are enabled as well. And I did all the steps mentioned above. Still doesn't work. Any ideas?

@NvkAnirudh
Copy link

$ wsl --set-default-version 1

This one solved it for me.

Hi @ktmn ,
Windows Subsystem for Linux or #WSL is for me and I'm aware this issue was closed. I got the following error after
Upgrading #WSL Windows Subsystem for #Linux on Windows 10 Professional with only bios #Virtualization and not SLAT.
"#0x80370102 the #virtual #machine could not be started because a required feature is not installed."
C:>wsl --set-default-version 1, Set default version 1, resolves the error on my desktop.
The above resolves the error and got me further. Now...
C:>ubunutu.exe
Prompts with new username and password.
WSL2_Error_0x80370102

This one solved it for me.

This solved my issue too, thanks

@keeganparr
Copy link

I had to enable the "Virtualize Intel VT-x/EPT or AMD-V/RVI" setting in VMware Workstation under Hardware-->Processors.

@dannierl
Copy link

running bcdedit /set hypervisorlaunchtype auto start and reboot

This works for me as well.

@boobytrap
Copy link

Worked for me as well - Thank you.
In my HP laptop, the BIOS option I enabled is called "Virtualization Technology"

@FuzzieKiwi
Copy link

Hi @ktmn ,

Windows Subsystem for Linux or #WSL is for me and I'm aware this issue was closed. I got the following error after
Upgrading #WSL Windows Subsystem for #Linux on Windows 10 Professional with only bios #Virtualization and not SLAT.

"#0x80370102 the #virtual #machine could not be started because a required feature is not installed."

C:>wsl --set-default-version 1, Set default version 1, resolves the error on my desktop.

The above resolves the error and got me further. Now...

C:>ubunutu.exe
Prompts with new username and password.

WSL2_Error_0x80370102

Didn't realize my new mobo had virtualization disabled by default.

@talesmgodois
Copy link

dumb question, in my case, this is happening inside a vm... Can this work?

My scenario: I have a manjaro machine, which uses virtualbox to run a windows machine. I am trying to install a linux subsystem in this vm, should this work? I know that It might be too nestled

@nameldk
Copy link

nameldk commented Feb 12, 2021

Edit 2: running bcdedit /set hypervisorlaunchtype auto start and reboot seems to have worked for me. So maybe I did need Hyper-V and/or Hypervisor Platform enabled, but it doesn't tell you anything useful.

Thanks a lot. It's worked for me.

@Varrions
Copy link

"The Virtual machine could not be started because a required feature is not installed"

How about make the message say which feature is not installed.

I got Virtualization enabled in BIOS, Windows Subsystems for Linux and Virtual Machine Platform enabled in Windows features, still get the message.
Do I need Hyper-V enabled? Do I need Windows Hypervisor Platform?

Edit: no, enabling these 2 didn't solve it either.

Edit 2: running bcdedit /set hypervisorlaunchtype auto start and reboot seems to have worked for me. So maybe I did need Hyper-V and/or Hypervisor Platform enabled, but it doesn't tell you anything useful.

Thank you so much, it worked.

@kelli217
Copy link

kelli217 commented Apr 1, 2021

I am also having this nonspecific error when I try to get WSL working. I've tried several different distros, turned on all the parts of various virtualization features and virtual machines, and it still gives me this problem. I think my computer is just too limited.

Processor Intel(R) Celeron(R) CPU N2930 @ 1.83GHz, 1827 Mhz, 4 Core(s), 4 Logical Processor(s)

I think this processor just doesn't support Hyper-V. The BIOS settings have virtualization turned on, verified repeatedly, and still I get:

Hyper-V - Virtualization Enabled in Firmware No

So at this point, I think it's just because my computer is a low-end machine aimed at the education market and just doesn't have the capability to do this. I guess I'll just stick to switch-booting.

@jfreeman2
Copy link

@gclair no worries...thanks for your help! Going to get in touch with someone at Microsoft to see if they can provide a solution. There's a chance that my specific form of this issue comes from hardware incompatibility, but I have no idea. I'll send a message out to this thread if I can find a solution.

@Dalot
Copy link

Dalot commented Jun 30, 2021

Tried everything above, one by one, nothing worked for me.

@udaybais
Copy link

udaybais commented Jul 8, 2021

Screenshot 2021-07-08 090315
firstly ,

open windows feature turn on or off.
turn of the above two.(hypervisor and virtualizations)
restart device.
again open and turn on both.
restart
It worked in my case.
problem happened because i used BLUESTACKS EMULATOR . emulator is not opening now. emulator of kali
definitely kali is better

@farshidhss
Copy link

"The Virtual machine could not be started because a required feature is not installed"

How about make the message say which feature is not installed.

I got Virtualization enabled in BIOS, Windows Subsystems for Linux and Virtual Machine Platform enabled in Windows features, still get the message.
Do I need Hyper-V enabled? Do I need Windows Hypervisor Platform?

Edit: no, enabling these 2 didn't solve it either.

Edit 2: running bcdedit /set hypervisorlaunchtype auto start and reboot seems to have worked for me. So maybe I did need Hyper-V and/or Hypervisor Platform enabled, but it doesn't tell you anything useful.

This is the only thing that worked for me.

@veekthoven
Copy link

veekthoven commented Jul 16, 2021

This works for me too!

Hi @ktmn ,

Windows Subsystem for Linux or #WSL is for me and I'm aware this issue was closed. I got the following error after
Upgrading #WSL Windows Subsystem for #Linux on Windows 10 Professional with only bios #Virtualization and not SLAT.

"#0x80370102 the #virtual #machine could not be started because a required feature is not installed."

C:>wsl --set-default-version 1, Set default version 1, resolves the error on my desktop.

The above resolves the error and got me further. Now...

C:>ubunutu.exe
Prompts with new username and password.

WSL2_Error_0x80370102

@JacobDrivers
Copy link

wsl --set-default-version 1 Worked for me.
Had this issue. I previously had tried out WSL2, disabled the feature/uninstalled, and wanted to have WSL again, but without enabling hypervisor (Which is required for WSL2) because I use VMware a lot. I guess it had remembered me setting the default to WSL2. So, the fix for me was wsl --set-default-version 1.

They need to add WHY to the error. It would be simple to code in what requirement is missing, or if WSL is set differently. Would help a lot! Thanks.

@Bitcents
Copy link

I faced a similar problem today. I used WSL 2 for a long time, but had to disable SVM and Hyper-V as my work required me to use VMWare for some time. The project was finished yesterday and so I decided to reinstall Ubuntu. This is when the 0x80370102 was thrown. I reactivated Hyper-V, but forgot to re-enable SVM; this obviously led to some headache. Re-enabling SVM, however, fixed the problem. Hope this helps.

@Umisyus
Copy link

Umisyus commented Nov 16, 2021

@Bitcents Hello, what is "svm"? is it a windows feature or a hardware feature? I'm having this issue as above. wsl2 will not work

WslRegisterDistribution failed with error: 0x80370102
Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.
I am believe that I have VT-x Virtualization enabled as Virtualization is showing Enabled in the Task Manager, but there is no option in BIOS for setting that for some reason. Thanks.

@Umisyus
Copy link

Umisyus commented Nov 16, 2021

"Secure Virtual Mode"

@Bitcents
Copy link

@Bitcents Hello, what is "svm"? is it a windows feature or a hardware feature? I'm having this issue as above. wsl2 will not work

WslRegisterDistribution failed with error: 0x80370102
Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.
I am believe that I have VT-x Virtualization enabled as Virtualization is showing Enabled in the Task Manager, but there is no option in BIOS for setting that for some reason. Thanks.

Hey Umisyus. SVM is for AMD as VT-X is for Intel. If you have it enabled, then the problem with wsl may be from some of the other reasons mentioned above. Have you checked if the required Windows features are also installed?

@muradtheOZ
Copy link

Hi @ktmn ,

Windows Subsystem for Linux or #WSL is for me and I'm aware this issue was closed. I got the following error after Upgrading #WSL Windows Subsystem for #Linux on Windows 10 Professional with only bios #Virtualization and not SLAT.

"#0x80370102 the #virtual #machine could not be started because a required feature is not installed."

C:>wsl --set-default-version 1, Set default version 1, resolves the error on my desktop.

The above resolves the error and got me further. Now...

C:>ubunutu.exe Prompts with new username and password.

WSL2_Error_0x80370102

Thanks This works for me also

@Umisyus
Copy link

Umisyus commented Dec 17, 2021

Realized that I needed to update my system and WSL2 started working after updating Windows.

@lesniewskii
Copy link

To enable virtualization on AMD u should do this at BOIS
(Advanced → CPU Configuration → SVM → Enable)

@maysammansoury
Copy link

Hi @ktmn ,
Windows Subsystem for Linux or #WSL is for me and I'm aware this issue was closed. I got the following error after Upgrading #WSL Windows Subsystem for #Linux on Windows 10 Professional with only bios #Virtualization and not SLAT.
"#0x80370102 the #virtual #machine could not be started because a required feature is not installed."
C:>wsl --set-default-version 1, Set default version 1, resolves the error on my desktop.
The above resolves the error and got me further. Now...
C:>ubunutu.exe Prompts with new username and password.
WSL2_Error_0x80370102

Thanks This works for me also

Thanks bro, It works for me as well

@MadinaBonuAlisherova
Copy link

I had a similar problem on when installing on my new system. I checked my BIOS @craigloewen-msft as mentioned. The first time I didn't find anything but after doing a bit more research I tried turning on SVM in the BIOS and it worked. (I also turned on the Windows Hypervisor setting in Windows Features)

(Advanced → CPU Configuration → SVM → Enable)

This is the case for AMD systems. Apparently it is different for Intel based systems.

Hi @ktmn ,

Windows Subsystem for Linux or #WSL is for me and I'm aware this issue was closed. I got the following error after Upgrading #WSL Windows Subsystem for #Linux on Windows 10 Professional with only bios #Virtualization and not SLAT.

"#0x80370102 the #virtual #machine could not be started because a required feature is not installed."

C:>wsl --set-default-version 1, Set default version 1, resolves the error on my desktop.

The above resolves the error and got me further. Now...

C:>ubunutu.exe Prompts with new username and password.

WSL2_Error_0x80370102
Thank you worked for me

@piknik1979
Copy link

piknik1979 commented Feb 19, 2022

Is virtualization enabled in your BIOS? That could be a quick fix.

We're tracking this issue over in #404 and we can help you troubleshoot there!

Hello ! I'm getting the same problem on my Laptop with Windows 10 - however I'm not sure If I can change the virtualisation BIOS. Can you help with it, thanks!

@kirannadimpalli
Copy link

kirannadimpalli commented Mar 3, 2022

For this issue follow these steps 💯
🔢 🥇

  1. go to windows PowerShell and run as administrator
  2. paste this wsl --set-default-version 1
  3. open Ubuntu again and check for error issue is resolved
  4. Thank me later 👍🏻

@numeralz
Copy link

If anyone else is still struggling with this, and are tired of seeing "Enable virtualization in BIOS" because it's enabled:

For me, there was a hunter1.sys driver, which I believe was installed as part of an anti-cheat mechanism from some Steam game I had installed recently.

How I discovered it:
Windows Security > Device Security > Memory Integrity > ON

Gives me some error of a conflicting driver:
hunter1.sys

I found the hunter1.sys, deleted it, rebooted. BINGO. WSL 2 now works as if nothing had ever broke -.-

@ARezaK
Copy link

ARezaK commented Mar 29, 2022

Deleting hunter1.says fixed it (comes from pubg)

@shrujandev
Copy link

Hi @ktmn ,

Windows Subsystem for Linux or #WSL is for me and I'm aware this issue was closed. I got the following error after Upgrading #WSL Windows Subsystem for #Linux on Windows 10 Professional with only bios #Virtualization and not SLAT.

"#0x80370102 the #virtual #machine could not be started because a required feature is not installed."

C:>wsl --set-default-version 1, Set default version 1, resolves the error on my desktop.

The above resolves the error and got me further. Now...

C:>ubunutu.exe Prompts with new username and password.

WSL2_Error_0x80370102

This solution worked for me
For some of the users, the Virtualization is already turned on but still, it gives you an error a simple fix would be to set the wsl version to 1
1: run your powershell in administrator mode
2: run the command wsl --set-default-version 1
3: try running the linux you installed from windows store

@arnabbiswas1
Copy link

arnabbiswas1 commented Sep 23, 2022

$ wsl --set-default-version 1 worked for me. This basically sets the WSL version to 1 instead of 2. There are a few specific scenarios where you might prefer using WSL 1 compared to WSL 2 (Microsoft documentation)

Don't enable Hyper-V unless it's needed, since it has other consequences. For me, when hyper-v is enabled:

  • I was not able to start my Ubuntu VM on Virtual Box
  • My ubuntu distribution on WSL was not getting connected to internet (when behind corporate firewall: ZScaler). See the issue here.

@bogdan-panteleev
Copy link

why the issue is closed? It is not solved and has must not be closed. Only downgrade to WSL 1 worked for me. Please create good error messages

@ssbarnea
Copy link

ssbarnea commented Oct 24, 2022

Any hints on how to enable this on Azure machines?

Update: Apparently only D and V machines starting with v3 have nested virtualization support, and that is not an easy to find information at all.

@Gaurav8604
Copy link

Following instructions on https://docs.microsoft.com/en-us/windows/wsl/wsl2-install#feedback with a fairly clean install of Build 18922

  • enabled The VMPlatform, reboot
  • enabled wsl, reboot
  • wsl set-default-verion 2
  • Install Ubuntu from store - https://aka.ms/wslstore as directed by wsl -l -v
  • Launch Ubuntu

Get the above error.

wsl --set-default-version 1

This worked for me

@sonrad10
Copy link

I was getting this error when trying to install Kali. I found this page which fixed it for me:

https://www.kali.org/docs/wsl/win-kex/

The key commands are:

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

Followed by a restart :)

@LukasJerabek
Copy link

On vmware windows virtual machine I had to go to setting of virtual machine, click on processors and enable Virtualize Intel VT-x/EPT or AMD-V/RVI. After that I could check hyperV in windows features (that were greyed out before). Reboot and than I got rid of the anoying error.

@QuinntonCarter
Copy link

I had a similar problem on when installing on my new system. I checked my BIOS @craigloewen-msft as mentioned. The first time I didn't find anything but after doing a bit more research I tried turning on SVM in the BIOS and it worked. (I also turned on the Windows Hypervisor setting in Windows Features)

(Advanced → CPU Configuration → SVM → Enable)

This is the case for AMD systems. Apparently it is different for Intel based systems.

This worked for me, I run an AMD CPU. Thank you

@NeonWizard
Copy link

Still the same issue 4 years later.

  • SVM enabled
  • Virtualization enabled
  • HyperV installed
  • Virtual Machine Platform installed
  • Windows Hypervisor Platform installed
  • Windows Subsystem for Linux installed
  • Windows updated
  • wsl.exe --install --no-distribution
  • bcdedit /set hypervisorlaunchtype auto start
  • Many reboots

Nothing has worked. This started happening a couple days after I killed a docker backend process because it was memory leaking really bad (20+ GB). Next time I restarted, WSL started giving this error.

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

No branches or pull requests