-
Notifications
You must be signed in to change notification settings - Fork 142
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
wsl2host service error:failed to get infos: wsl list all failed: wsl -l -v failed: exit status 1 #77
Comments
through powershell excute this command is no problem:
|
我也是这个问题,我写了个bash script来自动更新,试试? |
Wsl2host is broken in latest update of windows 11 (Only work in debug mode, service mode result in wsl -l -v error and cannot obtain ip address of wsl.). I wrote a script in linux to complete the job, see: https://github.com/bayard/WSL2_UPDATE_HOSTS |
see: |
Same here :/ |
I wanted to automate the running of Everything works fine, but a terminal window opens up briefly while |
The systemctl script run upon network interface changes after ip address change. Bash profile only triggers only after you login via ssh/telnet. So systemctl is the best choice. |
@bayard Yes, using a systemd service is a much better idea, but I still cannot use cmdow to hide the It does seem to do it by default when double-clicking the executable, so if anybody could fix that, that would be cool. @bayard I am using your solution now, which works nicely. The only small downside is having to make the hosts file user writable. I have made a PR for a couple of minor changes. Cheers. |
Windows Log -> Application:
failed to get infos: wsl list all failed: wsl -l -v failed: exit status 1
The text was updated successfully, but these errors were encountered: