shayne / go-wsl2-host Goto Github PK
View Code? Open in Web Editor NEWAutomatically update your Windows hosts file with the WSL2 VM IP address
Automatically update your Windows hosts file with the WSL2 VM IP address
Hello,
Using build 19042.610 doesnt work.
Service start but not create my configs at .wsl2hosts inside wsl
Anyone with this problem ?
Windows log events:
failed to write hosts file: failed to open hosts file for writing: open C:/Windows/System32/drivers/etc/hosts
Hi, when I config wsl2hose.exe, Vscode remote_wsl can't be connected anymore, is there any way to solve it?
Service won't start, either with command or doing it through windows services.
HOWEVER, somehow the wsl line appears when executing debug.
Btw, when executing debug, hangs in "starting wslhost service"
and then I have to Ctrl-C
PS C:\Users\lalo> .\wsl2host.exe start
2019/12/14 21:24:38 failed to start wsl2host: could not start service: The service cannot be started due to an error in the login.
PS C:\Users\lalo> .\wsl2host.exe debug
wsl2host.info(1): starting wsl2host service
wsl2host.info(1): wsl2host-0
wsl2host.info(1): wsl2host service stopped
Another question:
In hosts file, does order matter?
because I've a lot of vhosts and I want to alias them all to the same wsl ip.
Looks like the wsl line goes always at the end
My Laptop install Windows 10 Insider Previde Build 18932 and login with microsoft account, so how can i get the real user name? I have try the microsoft account and password and it's not worked.
The default hosts file has a bunch of comments at the top. If these are still present, wsl2hosts will puke.
PS C:\wsl2host> ./wsl2host debug
wsl2host.info(1): starting wsl2host service
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/shayne/go-wsl2-host/pkg/hostsapi.parseHostfileLine(0x15, 0x646fc9, 0x1, 0xcc8, 0x646fc9, 0x1, 0x57fe60, 0xc00005e6e0)
C:/Users/Shayne/Code/go-wsl2-host/pkg/hostsapi/hostsapi.go:35 +0x6bd
github.com/shayne/go-wsl2-host/pkg/hostsapi.(*HostsAPI).loadAndParse(0xc00012bdd0, 0xc00012bdd0, 0x0)
C:/Users/Shayne/Code/go-wsl2-host/pkg/hostsapi/hostsapi.go:81 +0x120
github.com/shayne/go-wsl2-host/pkg/hostsapi.CreateAPI(0x554979, 0x9, 0x1, 0x0, 0x0)
C:/Users/Shayne/Code/go-wsl2-host/pkg/hostsapi/hostsapi.go:112 +0x16c
github.com/shayne/go-wsl2-host/cmd/wsl2host/pkg/service.Run(0x581560, 0xc00005e570, 0x2, 0x0)
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/pkg/service/service.go:36 +0x1bb
github.com/shayne/go-wsl2-host/cmd/wsl2host/internal.(*windowserver).Execute(0x688b80, 0xc00005e590, 0x1, 0x1, 0xc000014240, 0xc0000142a0, 0xc0000125c0)
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/internal/service.go:33 +0x523
golang.org/x/sys/windows/svc/debug.Run(0x5545ff, 0x8, 0x57fea0, 0x688b80, 0x0, 0x0)
C:/Users/Shayne/Code/go-wsl2-host/vendor/golang.org/x/sys/windows/svc/debug/service.go:40 +0x153
github.com/shayne/go-wsl2-host/cmd/wsl2host/internal.RunService(0x5545ff, 0x8, 0xc000010001)
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/internal/service.go:81 +0x1bf
main.main()
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/main.go:42 +0x384
If you remove the goo at the top, it works.
Unfortunately, I've removed the goo at the top, so I can't tell you what it is anymore. :)
It would be helpful to provide uninstall instructions on the project's README or uninstall functionality in code since this service is registered but not removable. So I thought it would be useful to post this recommendation as a # TODO ?
Examples:
Testing wsl2host.exe stop
will cause failed to stop wsl2host: could not access service: The specified service does not exist as an installed service.
Testing wsl2host.exe remove
will cause failed to remove wsl2host: service wsl2host is not installed
But trying to install again wsl2host.exe remove
will cause failed to install wsl2host: SetupEventLogSource() failed: SYSTEM\CurrentControlSet\Services\EventLog\Application\wsl2host registry key already exists
What means the service is still on the system but cannot be removed nor reinstalled.
.\wsl2host.exe install
2020/08/16 18:49:15 failed to install wsl2host: The specified domain either does not exist or could not be contacted.
What I am doing wrong?)
The service can startup, but the hosts file dosen't change at all when wsl shutdown and restart.
The debug info is as follows:
wsl2host.error(1): failed to write hosts file: failed to open hosts file for writing: open C:/Window
s/System32/drivers/etc/hosts: Access is denied.
When I start the service with Admin,it works, thanks.
What's strange is that when i reboot computer and start the service correctly, it doesn't work again.
Hi,
Thanks for sharing this tool.
I try to run using Arch and get this error runing 'debug'
"failed to get IP for distro "Arch": exit status 64"
As I didn't find anyone with the same problem and I don't have the slightest idea of what could be, I decided to open this issue.
Hi, I've followed the guide from https://www.most-useful.com/ubuntu-20-04-desktop-gui-on-wsl-2-on-surface-pro-4.html however no matter what I do, I cant get wsl2-hosts working properly. I have a windows 10 pro 2004, the wsl2host service appears to be running, but (while wsl is running) when I type cat \windows\system32\drivers\etc\hosts
on cmd, the wsl2host ip doesnt appear to be there.
I am a local user, I do not have an account attached to the computer. The distro I'm using is Ubuntu 20.04. I am running the latest version of wsl2-host.
I have tried both logging out and rebooting my computer. I have checked and my hosts file is not read only. On the event viewer I get failed to get infos: wsl list all failed: wsl -l -v failed: exit status 4294967295
. I have tried uninstalling and re-installing the service.
Any and all help would be greately appreciated!
Are you planning to fix this?
when I use admin role to install wsl2-host
in windows registry list it started , but then it stoped , and i check the hosts , there is no new host add to the hosts file ,then I restart the service manually , there is nothing happend to my hosts file.
I check the local security group , it's well as the wiki ,
then I run wsl2host.exe debug , I got the log
G:\DEV>wsl2host.exe debug
wsl2host.info(1): starting wsl2host service
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
github.com/shayne/go-wsl2-host/pkg/hostsapi.parseHostfileLine(0x24, 0x646fe0, 0x1, 0xac0, 0x646fe0, 0x1, 0x57fe60, 0xc0000862c0)
C:/Users/Shayne/Code/go-wsl2-host/pkg/hostsapi/hostsapi.go:35 +0x6bd
github.com/shayne/go-wsl2-host/pkg/hostsapi.(*HostsAPI).loadAndParse(0xc000088300, 0xc000088300, 0x0)
C:/Users/Shayne/Code/go-wsl2-host/pkg/hostsapi/hostsapi.go:81 +0x120
github.com/shayne/go-wsl2-host/pkg/hostsapi.CreateAPI(0x554979, 0x9, 0x4, 0x0, 0x0)
C:/Users/Shayne/Code/go-wsl2-host/pkg/hostsapi/hostsapi.go:112 +0x16c
github.com/shayne/go-wsl2-host/cmd/wsl2host/pkg/service.Run(0x581560, 0xc00003c570, 0x2, 0x0)
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/pkg/service/service.go:36 +0x1bb
github.com/shayne/go-wsl2-host/cmd/wsl2host/internal.(*windowserver).Execute(0x688b80, 0xc00003c590, 0x1, 0x1, 0xc00004c120, 0xc00004c180, 0xc00000a580)
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/internal/service.go:33 +0x523
golang.org/x/sys/windows/svc/debug.Run(0x5545ff, 0x8, 0x57fea0, 0x688b80, 0x0, 0x0)
C:/Users/Shayne/Code/go-wsl2-host/vendor/golang.org/x/sys/windows/svc/debug/service.go:40 +0x153
github.com/shayne/go-wsl2-host/cmd/wsl2host/internal.RunService(0x5545ff, 0x8, 0xc00000c001)
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/internal/service.go:81 +0x1bf
main.main()
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/main.go:42 +0x384
I'm using VSCode Remote WSL. I need to configure proxy both on Windows and in WSL
the setting priority is windows > wsl,
so for example:
windows: http://127.0.0.1:7890
wsl: http://172.21.176.1:7890
so I need manually configure it in every startup.
I found the wsl2 host IP address can be obtained with
wsl hostname -I
and service can be run with admin
is user account really needed?
Environment:
$ wsl -l -v
NAME STATE VERSION
* Debian Stopped 2
Install command in cmd.exe run by Administrator:
$ wsl2host.exe install
2020/06/05 10:11:42 failed to install wsl2host: CreateFile C:\cmd\wsl2host.exe: The
system cannot find the file specified.
Expected to happen:
A service being installed
windows hosts changed(?)
/etc/hosts changed(?)
What happens instead:
It outputs the above error message
More info:
Username is the same for the Debian distro and Windows, passwords differ.
There's never any choice of entering username or password.
This may sound dumb but I have never used Go before, can u pls make an installation & usage guide for dummies? It'll be truly helpfull and apreciated!
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.
Can't see how to actually PM you guys so my apologies for raising an issue.
I've setup Ubuntu Desktop, with LightDM running XDMCP so that I can login and out of the Desktop. I'd been playing with VNC to use the GUI and that worked nicely through 'localhost' on W10.2004. I've found X to run much smoother and quicker using VcXsrv versus VNC. However, XDMCP does not work using localhost.
I think it's a WSL2 issue - in that everything I can see suggests localhost works for TCP connections. There's no mentions of localhost working for UDP connections and XDMCP uses port 177/UDP.
Your addition of the hostname.wsl to system32/drivers/etc/hosts fixes this for me as I can use ubuntu2004.wsl in my XLaunch file.
Thank you for this solution, it works a treat. The only issue is that I had to convert my @outlook.com Microsoft Account into a local account to get it to run as a service. Yours isn't the only program I've had this issue with though and so I'm not fussed :)
Thank you!
Hi,
first of all thanks for this really helpful tool!
I run into a situation where I would like to access a service (postgres) I'm running on the Windows host from within wsl2. My solution would be to patch /etc/hosts with the IP from resolve.conf on every start. But I think it might be way better if you could add this functionality to your service as I have this running anyway.
I'm not sure if this would be the "windows.local" functionality that got removed after 0.2, if so and possible, I'd like to have it back :)
And if I may ask, it possible please add the same alias feature to it that you added for the wsl2 ip address.
Let me know if I can help testing this.
Thanks,
Torsten.
This problem does not always occur. I think it does not occur if my laptop is on battery and goes to standby. It seems to regularly occur if its power connected and going to standby.
After wakeup I can't access my wsl aliases that I defined in .wsl2hosts
anymore. Looking at the Windows hosts file they're gone and only the ubuntu.wsl
address is included. Pinging this one from Windows seems to work.
I stopped the wslhost service and restarted it, but the hosts file didn't change. Then I closed wsl2 with wsl --shutdown
and opened a new terminal to start it up again- this time Windows' hosts file contained all wsl aliases:
172.21.158.73 host.docker.internal # alias: Ubuntu; managed by wsl2-host
172.21.158.73 wsl.local.com # alias: Ubuntu; managed by wsl2-host
172.21.158.73 ubuntu.wsl # managed by wsl2-host
Maybe you could advice a quicker workaround to properly refresh the hosts file, other than closing wsl2 or rebooting Windows?
Wsl2host has proven to be an invaluable tool working with wsl2- thank you so much!
Instructions are for an exe but the software is in go... How do you compile into exe?
service: wsl2host
"This dangerous program executes the commands of the attacker."
Behavior:Win32/CommandAndControl.P!ml
I understand why this happen and I was add it to allowlist. But maybe exists some workaround to prevent such system reaction.
Hi Im using your fix and found it very usefull. but I just want to let you know
that windows defender is blocking it as a threat Program:Win32/Bearfoos.A!ml.
Again thanks for the program very useful
Sup guys,
I've been using wsl2host service for a while to execute my projects in Windows localhost from the WSL2 VM's host, but I don't why it doesn't work since every Windows boot.
Since then, I always need to restart the wsl2 vm with wsl --shutdown
and then start it again to make it happen properly.
Please, if you could help to figure out what I'm missing I'll be thankful.
after installing ping ubuntu1804.ws dont work
C:\Windows\System32\drivers\etc\hosts - nothing new
Debug
C:\wsl>.\wsl2host.exe debug
wsl2host.info(1): starting wsl2host service
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0x50c352]
goroutine 1 [running]:
github.com/shayne/go-wsl2-host/cmd/wsl2host/pkg/service.Run(0x5812a0, 0xc00002e570, 0x2, 0x0)
/workspaces/go-wsl2-host/cmd/wsl2host/pkg/service/service.go:92 +0x742
github.com/shayne/go-wsl2-host/cmd/wsl2host/internal.(*windowserver).Execute(0x687be0, 0xc00002e590, 0x1, 0x1, 0xc00003e180, 0xc00003e1e0, 0xc00000c4c0)
/workspaces/go-wsl2-host/cmd/wsl2host/internal/service.go:33 +0x523
golang.org/x/sys/windows/svc/debug.Run(0x554639, 0x8, 0x57fc20, 0x687be0, 0x0, 0x0)
/go/pkg/mod/golang.org/x/[email protected]/windows/svc/debug/service.go:40 +0x153
github.com/shayne/go-wsl2-host/cmd/wsl2host/internal.RunService(0x554639, 0x8, 0xc00000a001)
/workspaces/go-wsl2-host/cmd/wsl2host/internal/service.go:81 +0x1bf
main.main()
/workspaces/go-wsl2-host/cmd/wsl2host/main.go:42 +0x384
Downloaded 0.11 zip and .exe
Placed in directory on my Win10 system and extracted the zip (extracted files and .exe all in same directory, opened CMD as administrator in directory ran .\go-wsl2-host.exe install and entered my username and password when asked.
Launched Debian WSL2
Opened HOST file no IP added and no wsl.host in list.
Stopped Debian and restarted windows.
Launched Debian, still nothing added to HOST file, running ping wsl.local returns "could not find host!
Did I do something wrong??? I would really like for this to work! updating the HOST file manually every time I reboot is a real pain.
Going to try alpha 0.1.0 now to see if that is any better!
Thank You,
sidgrafix
Hello,
First just want to say that this utility is a real hidden gem in the world of WSL, thanks for your work! I have gotten this successfully setup and installed on 2 pc's so far but I am running into an issue with a third. It seems that the service is crashing on startup. The only real differences I can see between this computer and the other 2 is that:
Here is the output of running wsl2host debug:
wsl2host.info(1): starting wsl2host service
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0x50bd42]
goroutine 1 [running]:
github.com/shayne/go-wsl2-host/cmd/wsl2host/pkg/service.Run(0x581560, 0xc00003a570, 0x2, 0x0)
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/pkg/service/service.go:87 +0x6b2
github.com/shayne/go-wsl2-host/cmd/wsl2host/internal.(*windowserver).Execute(0x688b80, 0xc00003a590, 0x1, 0x1, 0xc000048120, 0xc000048180, 0xc00000c4e0)
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/internal/service.go:33 +0x523
golang.org/x/sys/windows/svc/debug.Run(0x5545ff, 0x8, 0x57fea0, 0x688b80, 0x0, 0x0)
C:/Users/Shayne/Code/go-wsl2-host/vendor/golang.org/x/sys/windows/svc/debug/service.go:40 +0x153
github.com/shayne/go-wsl2-host/cmd/wsl2host/internal.RunService(0x5545ff, 0x8, 0xc00000a001)
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/internal/service.go:81 +0x1bf
main.main()
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/main.go:42 +0x384
Let me know if there is any other information that may be useful.
Thanks!
Hi... Thanks. I downloaded this app and managed to get it running after shortening my password as noted in the other issues here.
Readme talks about connecting from WSL/Linux to Windows/local.host. I have two questions, hopefully for the general benefit of others.
Thanks much.
Ran into this issue when I had the hosts file open in vscode (insiders) to check if wsl2host.exe was working. If the hosts file is open in vscode, then the hostname (ubuntu.wsl) redirects the ip to an akamai technologies server that vscode talks to. but it only redirects the wsl2host hostname, not any manually set hostnames. and the ip in the hosts file doesn't change, it shows the correct wsl2 ip.
Tried in v0.3.2 and v0.3.0. To get service started, I had to set logon to local system account. After starting wsl (ubuntu 18.04 in my case), and trying ping ubuntu1804.wsl
, ping request could not find host. I tried creating an alias wsl.local
in ~/.wsl2hosts
but still no response on ping. Any other diagnostics I can run to debug?
It would be helpful to add the IP of the host to be able to use it within the WSL distro for xdebug.remote_host in php.ini for example.
Example:
My Windows user name is "This PC", and it fails. I've tried wrapping it in double quotes as well, but same result.
version: Windows 10 Professional 20H2。
soft_version: lastest
when i start the app use windows cmd with Administrator. it wrong
PS E:\User\Administrator\Downloads> .\wsl2host.exe install
Windows Username: Administrator
Windows Password: 2021/03/14 15:25:21 failed to install wsl2host: A system shutdown is in progress.
PS E:\User\Administrator\Downloads>
PS E:\User\Administrator\Downloads>
i sure my username and password is correct。
please help me
I'd love it if there was a config file that can be used to create more than one hostname with the ip. Maybe even replace the any existing lines of the hostname with the name ip.
I'm pretty sure that I have done everything right to install the tool. However, the result of this tool seems to be incorrect.
In my wsl2, I run
cat /etc/resolv.conf
then I got message below:
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 172.17.60.225
However, when I check hosts file, the result is
172.17.60.228 ubuntu1604.wsl # managed by wsl2-host
So obviously, 172.17.60.228 is not 172.17.60.225. I think this tool just gives a wrong answer.
my version of go-wsl2-host is v0.3.5.
Hello,
I'm trying to install the service but my username isn't accepted.
I have a microsoft account, and passing my email address gets me a "specified domain doesn't exist".
So I tried to get my local username using "net user" which is "Julien Goux", but as soon as I type it I got the error "invalid username", I can't even type my password.
Maybe it's because I have a space in my username?
I use this application with success so far and it's very helpful.
For better overview of the .wsl2hosts file it could help if it would be possible to write hosts not only in one line separated by a blank space but by breaking spaces too (maybe with additional comments?).
Example how it works now:
test1.tld test2.tld dev1.tld
It would be nice if it would works on this way:
# Some stuff
test1.tld
test2.tld
# Other stuff
dev1.tld
PS C:\Users\***\bin> wsl --list --v
NAME STATE VERSION
* Ubuntu Running 1
PS C:\Users\***\bin> .\wsl2host.exe debug
wsl2host.info(1): starting wsl2host service
wsl2host.info(1): failed to get IP for distro "Ubuntu": exit status 1
wsl2host.info(1): failed to get IP for distro "Ubuntu": exit status 1
wsl2host.info(1): failed to get IP for distro "Ubuntu": exit status 1
wsl2host.info(1): failed to get IP for distro "Ubuntu": exit status 1
wsl2host.info(1): failed to get IP for distro "Ubuntu": exit status 1
wsl2host.info(1): failed to get IP for distro "Ubuntu": exit status 1
wsl2host.info(1): failed to get IP for distro "Ubuntu": exit status 1
wsl2host.info(1): failed to get IP for distro "Ubuntu": exit status 1
wsl2host.info(1): failed to get IP for distro "Ubuntu": exit status 1
wsl2host.info(1): failed to get IP for distro "Ubuntu": exit status 1
wsl2host.info(1): wsl2host-0
wsl2host.info(1): wsl2host service stopped
Maybe it should ignore the version 1 or just use 127.0.0.1
Instructions are for an exe but the software is in go... How do you compile into exe?
Version: 0.3.4
Windows version: 2004 (OS Build 19041.264) - (Insiders: slow)
Hey Shayne,
Installation appeared to work correctly but shortly after the WSL2 Host service starts, its stops.
When I run debug I see the following:
C:\wsl2>.\wsl2host.exe debug
wsl2host.info(1): starting wsl2host service
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0x50bd42]
goroutine 1 [running]:
github.com/shayne/go-wsl2-host/cmd/wsl2host/pkg/service.Run(0x581560, 0xc00002c570, 0x2, 0x0)
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/pkg/service/service.go:87 +0x6b2
github.com/shayne/go-wsl2-host/cmd/wsl2host/internal.(*windowserver).Execute(0x688b80, 0xc00002c590, 0x1, 0x1, 0xc00003c180, 0xc00003c1e0, 0xc00000a540)
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/internal/service.go:33 +0x523
golang.org/x/sys/windows/svc/debug.Run(0x5545ff, 0x8, 0x57fea0, 0x688b80, 0x0, 0x0)
C:/Users/Shayne/Code/go-wsl2-host/vendor/golang.org/x/sys/windows/svc/debug/service.go:40 +0x153
github.com/shayne/go-wsl2-host/cmd/wsl2host/internal.RunService(0x5545ff, 0x8, 0xc000010001)
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/internal/service.go:81 +0x1bf
main.main()
C:/Users/Shayne/Code/go-wsl2-host/cmd/wsl2host/main.go:42 +0x384
I note the comment from this issue #21 and I do have Docker Desktop for Windows installed but not running ...
C:\wsl2>wsl -l -v
NAME STATE VERSION
* docker-desktop-data Stopped 2
docker-desktop Stopped 2
Ubuntu-20.04 Running 2
Is that likely to be the problem ? ... ie do I need to uninstall DD4W (obviously I would prefer not to since I sometimes switch back and forth when I am testing about different run-time environments, but I will if wsl2host absolutely wont work if it is ?)
Great utility BTW :-)
Kind Regards
Fraser.
When I first installed WSL2HOST it worked great. It added the info to the HOSTS file and all was well till I rebooted my Surface Pro 4. Now it won't update the HOSTS file and I keep getting debug error:
wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.info(1): failed to get IP for distro "Ubuntu-20.04": exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
wsl2host.error(1): GetDefaultDistro failed: exit status 4294967295
for eternity even though the service starts. Any help would be greatly appreciated.
I can't successfully install it on a system with an Umlaut in username (ü)
Everything seems to work fine up until port forwarding with my router.
I ran the same code hosting a websocket server on port 8443
, I could easily access it through the port forwarding from my router when I was just running it on windows, however, when running that same code on ubuntu 20.4
with wsl2
, I cannot access to the websocket server on port 8443
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.