go-wsl2-host icon indicating copy to clipboard operation
go-wsl2-host copied to clipboard

Doesn't work. Just doesn't do anything.

Open boiimakillu opened this issue 4 years ago • 6 comments

I installed the service. I start my wsl distro (Stock Debian UWP). I have it set to WSL 2, but the service just does nothing. No changes to host file. When I start the exe with the debug argument, all it says is "starting wsl2host service". Nothing else. Can someone please help? I'm really at a loss.

boiimakillu avatar Sep 07 '20 17:09 boiimakillu

me too

jae-jae avatar Sep 10 '20 02:09 jae-jae

@boiimakillu Can you check the Windows Services if the WSL2 Host service is running (WIN-R, type services.msc)?

I had to change my password (local password and connected Windows account) and then enable automatic start.

When running it should change the Windows hosts file in C:\WINDOWS\system32\drivers\etc\hosts

tuhlmann avatar Sep 15 '20 11:09 tuhlmann

Check Event Viewer -> Windows Logs -> System for messages from Service Control Manager.

First my username was wrong, it had a message about it, then it couldn't log on as a service, and also had a message about that.

ktmn avatar Oct 10 '20 07:10 ktmn

i had solved this problem in my computer, i'm not sure it is same helpful for you too ,

open Event Viewer -> Windows Logs -> Application

if error message of wsl2host is "failed to get infos: wsl list all failed: wsl -l -v failed xxxxxx" then remove the wsl2host service and put the exe file into disk C anywhere, reinstall the service and refresh the logs

if error message of wsl2host is "Access Denied" then remove selected status about Read-Only attribute of the folder "C:\WINDOWS\system32\drivers\etc"

Fretice avatar Oct 14 '20 14:10 Fretice

i had solved this problem in my computer, i'm not sure it is same helpful for you too ,

open Event Viewer -> Windows Logs -> Application

if error message of wsl2host is "failed to get infos: wsl list all failed: wsl -l -v failed xxxxxx" then remove the wsl2host service and put the exe file into disk C anywhere, reinstall the service and refresh the logs

if error message of wsl2host is "Access Denied" then remove selected status about Read-Only attribute of the folder "C:\WINDOWS\system32\drivers\etc"

thanks,it works for me : )

ljt92 avatar Oct 28 '20 11:10 ljt92

Have same issue. Moving to C:\ didn't help

artempas avatar Oct 12 '23 11:10 artempas