WSL: Windows Subsystem for Linux error

DarrellR2

Bit poster
Is it possible to run Windows 10 with WSL on a Parallels vm?
I'm running Windows 10 and Ubuntu Linux as separate virtual machines already on my iMac 5k 2015 quad-core i7 4 GHz 32 Gb with half of the resources for the vm. The error message below suggests I enable virtualization in the BIOS? Google search for explanation suggests I run the PowerShell command that does not exist?
wsl --install
<reboot vm>
Ubuntu: Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.

Suggested Fix to problem 1 command not found
Set-VMProcessor -VMName Win10_2016 -ExposeVirtualizationExtensions $true

Suggested Fix to problem 2 didn't work either from admin PowerShell prompt
Install-WindowsFeature -Name Hyper-V -IncludeAllSubFeature -IncludeManagementTools -Restart
 
hi,
just for the record: execute the command below in PowerShell to enable the Windows Subsystem for Linux feature in Windows:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
 
I did what Mikhail said. That works. Thank you.

A few notes: after doing this, you still need to:
  • reboot
  • from PowerShell, run "wsl.exe --install" again.
otherwise, if you try to launch wsl, it will just close.
 
Back
Top