Open reidsneo opened 1 year ago
After running wsl --update
then it promp to update again, (even though yesterday already do update from microsoft store though) later I go to setting > turn windows feature on / off uncheck then check again for Windows Hypervisor Platform reboot
it working again now it seem issue occurred after update WSL
me too
Error code: Wsl/Service/CreateInstance/CreateVm/HCS_E_SERVICE_NOT_AVAILABLE
I had "Virtual Machine Platform" and "Windows Hypervisor Platform" turned off, after checking the boxes and restarting. Its working again
I have the same issue. I cannot resolve. Any help on this?
make sure hyper v, virtual machine platform and virtualization are on. Worked for me.
for Windows 11 Pro v 22H2
Worked for me:-
System info - Windows 11, WSL2, (Ubuntu 18.04).
Step 1: Go to settings > (search) turn windows feature on / off
Step 2: If Windows Hypervisor Platform and Windows Machine Platform is unchecked, please check them, else uncheck and recheck them.
Step 3: Reboot
Step 4: Open the terminal check, run command - wsl -l -v
should result in saying ubuntu is running in version 1/2.
Cheers 🥂
You can try this with CMD or powerShell run as Admin
First Enable the Windows Subsystem for Linux
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Then Enable Virtual Machine feature
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Then restart your PC
You can try this with CMD or powerShell run as Admin
First Enable the Windows Subsystem for Linux
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Then Enable Virtual Machine feature
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Then restart your PC
This fixed my problem after installing 2023-01 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems (KB5022303)
Worked for me:- System info - Windows 11, WSL2, (Ubuntu 18.04).
Step 1: Go to settings > (search) turn windows feature on / off
Step 2: If Windows Hypervisor Platform and Windows Machine Platform is unchecked, please check them, else uncheck and recheck them.
Step 3: Reboot
Step 4: Open the terminal check, run command -
wsl -l -v
should result in saying ubuntu is running in version 1/2.Cheers 🥂
I had the error code Error code: Wsl/Service/CreateInstance/CreateVm/0x800705aa
The above solution immediately fixed the problem.
after solving one problem, another appeared - WslRegisterDistribution failed with error: 0x80370102 enabling/disabling Hyper V didn't help Fix - https://github.com/microsoft/WSL/issues/4626#issuecomment-553416411
I had "Virtual Machine Platform" and "Windows Hypervisor Platform" turned off, after checking the boxes and restarting. Its working again
it worked for me
Complete removal of docker desktop and reinstall helped me..
wsl.exe --shutdown it will off all service then wsl.exe this will solve that issue
Running "Hyper-V Host Compute Service" solved my problem
What a strange problem, I do not understand why it is disabled, in other forums it is to update the wsl with another type of error
Kostakis's solution worked for me.
But I wish the original error were a little more specific regarding which Windows Features need to be enabled :)
"Error: 0x80370114 The operation could not be started because a required feature is not installed."
Should instead say something like: "Error: 0x80370114 The operation could not be started because a required feature is not installed: [Windows Hypervisor Platform, Windows Subsystem for Linux, Hyper-V]"
Enable Hiper V:
To enable Hyper-V on Windows 11, check and enable virtualization on the UEFI (BIOS). Then open Settings > Apps > Optional features > More Windows features. Check the “Hyper-V” item, and click “OK” and “Restart now” to enable the feature.
wsl.exe --shutdown it will off all service then wsl.exe this will solve that issue
lol this worked thank you!
wsl.exe --shutdown it will off all service then wsl.exe this will solve that issue After installed the features VM and Hyper-V the problem continue, but this solution works! thanks!
Hello, I have also encountered similar problems after upgrading win11 to the latest version. Have you solved your problem? If so, how can we solve this problem? Can you tell me how?
My problem is: wsl 服务尚未启动。 Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x80070426
I'm also facing the exact same error.
Hello, I have also encountered similar problems after upgrading win11 to the latest version. Have you solved your problem? If so, how can we solve this problem? Can you tell me how? My problem is: wsl 服务尚未启动。 Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x80070426
I'm also facing the exact same error.
Have you tried this? https://answers.microsoft.com/en-us/windows/forum/all/wsl-fail-to-start-after-upgrade-to-22h2/c3dad74e-ddb3-4fe7-9e85-7e1acb95f9c8
But why WSL just alert that Virtual Machine Platform needs to be enabled, excluding Windows Hypervisor Platform?
Start the Registry Editor (regedit.exe)
Go to the following branch:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache
Double-click “Start” and set its data to 2.
Exit the Registry Editor.
Restart Windows.
After the restart, the DNS Client service should start correctly. This, in turn, should fix the WSL error.```
Hello, I have also encountered similar problems after upgrading win11 to the latest version. Have you solved your problem? If so, how can we solve this problem? Can you tell me how? My problem is: wsl 服务尚未启动。 Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x80070426
I'm also facing the exact same error.
Have you tried this? https://answers.microsoft.com/en-us/windows/forum/all/wsl-fail-to-start-after-upgrade-to-22h2/c3dad74e-ddb3-4fe7-9e85-7e1acb95f9c8
I have the same error, start the service "Windows Defender Firewall" and works for me. So, the error may re-occur if you disabled the windows defender
Sometime CANNOT launch wsl bash report Wsl/Service/CreateInstance/CreateVm/HCS_E_SERVICE_NOT_AVAILABLE
after boot.
Then REBOOT and open terminal often launch wsl success in my case.
wsl.exe --shutdown it will off all service then wsl.exe this will solve that issue
This helped. Initially docker-desktop and docker-desktop-data were both running. This solution helped. Win 11. 23H2.
podman machine init pwsh 15:08:33
Launching WSL Kernel Install...
Elevated process failed with error: Process failed with exit code: 125
Could not install the WSL Kernel. See previous output for any potential failure details.
If you can not resolve the issue, and rerunning fails, try the "wsl --install" process
outlined in the following article:
http://docs.microsoft.com/en-us/windows/wsl/install
Error: Process failed with exit code: 125
touchmii ~ 22.644s⠀ wsl
Windows Subsystem for Linux is now available in the Microsoft Store!
You can upgrade by running 'wsl.exe --update' or by visiting https://aka.ms/wslstorepage
Installing WSL from the Microsoft Store will give you the latest WSL updates, faster.
For more information please visit https://aka.ms/wslstoreinfo
DESKTOP-V2QN3KU:/mnt/c/Users/touchmii$ exit
touchmii ~ 11.783s⠀ wsl.exe --update pwsh 15:11:20
Installing: Windows Subsystem for Linux
Windows Subsystem for Linux has been installed.
touchmii ~ 19.208s⠀ podman machine init pwsh 15:11:46
Error: head request failed: https://github.com/containers/podman-wsl-fedora/releases/latest/download/rootfs.tar.xz: Head "https://github.com/containers/podman-wsl-fedora/releases/latest/download/rootfs.tar.xz": proxyconnect tcp: dial tcp 127.0.0.1:7890: connectex: No connection could be made because the target machine actively refused it.
touchmii ~ 2.637s⠀ podman machine init pwsh 15:11:52
Extracting compressed file: podman-machine-default_fedora-podman-amd64-v39.0.1.tar: done
Importing operating system into WSL (this may take a few minutes on a new WSL install)...
Import in progress, this may take a few minutes.
The operation completed successfully.
Configuring system...
Generating public/private ed25519 key pair.
Your identification has been saved in podman-machine-default
Your public key has been saved in podman-machine-default.pub
The key fingerprint is:
SHA256:/nEHhsASKgQq47NQEGP1MOPKtFTd/OtSkdZxCz+tGKU root@DESKTOP-V2QN3KU
The key's randomart image is:
+--[ED25519 256]--+
|=+o*. + |
|o+o =o = o o |
|+oo.... + o B o |
|*oo. . * E + . |
|.* S + = o |
|. o . o o o |
| . + . . . |
| . o o . |
| . . |
+----[SHA256]-----+
Machine init complete
To start your machine run:
podman machine start
touchmii ~ 39.133s⠀ ```
Resolved for me (after nothing else worked):
bcdedit /set hypervisorlaunchtype Auto
And then restart
Worked for me:- System info - Windows 11, WSL2, (Ubuntu 22.04).
step 1: check whether "C:\Windows\System32\vmcompute.exe" is add in the list as follow (windows 安全中心 -> 应用和浏览器控制 -> 攻击防护设置 -> 程序保护) if no, add it;
step 2: open the CFG.
step 3:exec net start vmcompute in cmd or powershell
Worked for me:- System info - Windows 11, WSL2, (Ubuntu 22.04). step 1: check whether "C:\Windows\System32\vmcompute.exe" is add in the list as follow (windows 安全中心 -> 应用和浏览器控制 -> 攻击防护设置 -> 程序保护) if no, add it;
step 2: open the CFG.
step 3:exec net start vmcompute in cmd or powershell
This works to me bruh. Kinda turned off some strange settings then it appears to shut my WSL down
Worked for me:- System info - Windows 11, WSL2, (Ubuntu 18.04).
Step 1: Go to settings > (search) turn windows feature on / off
Step 2: If Windows Hypervisor Platform and Windows Machine Platform is unchecked, please check them, else uncheck and recheck them.
Step 3: Reboot
Step 4: Open the terminal check, run command -
wsl -l -v
should result in saying ubuntu is running in version 1/2.Cheers 🥂
This work for me , thank you very much
The solution for me was: Windows Security -> App & Browser Control -> Exploit Protection Settings change Control Flow Guard (CFG) to "On" for both:
C:\Windows\System32\vmwp.exe C:\Windows\System32\vmcompute.exe
Windows 10,wsl -- update work for me
Version
Microsoft Windows Version 22H2 (OS Build 226.10.1)
WSL Version
Kernel Version
5.15.57.1
Distro Version
Debian 10
Other Software
WSL version: 0.65.3.0 Kernel version: 5.15.57.1 WSLg version: 1.0.41 MSRDC version: 1.2.3213 Direct3D version: 1.601.0 DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows version: 10.0.22610.1
Repro Steps
Just running wsl command in command line, yesterday just fine but today I cannot start wsl anymore
Expected Behavior
wsl service started normally
Actual Behavior
Diagnostic Logs
No response