You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was evaluating ways to fix #3268 and it has become complicated. To understand the actual setting of running WSL2 kernel one needs to execute over kernel (to get info on the current networking setup), to get a gateway to host machine the most reliable way is to execute command inside WSL2 distro. The problem is that it the moment, where proxy settings has to be decided the distribution is not yet running and executing the command in it will start it (the systemd will kick in, probably PAM and may be something else). Which creates a race like situation with a startup sequence executed by limactl.
The simple fix would be to have a service companion distribution, where it is safe to execute commands w/o affecting provisioned machines. With WSL 2.4.0+ supporting distributions entirely packaged in a single tgz archive it is more approachable to build one. This could also allow bundling additional tooling, which are useful for Lima.
Good things about it:
full control of the distribution and it contents, it could be checked for version, etc.
feature complete Unix tools - prominent example is mux support in OpenSSH (not available in OpenSSH for Windows or cygwin/msys2), I used this to create a prototype for running QEMU under Windows
native support for arm64 Windows, cygwin/msys2 doesn't support arm64 natively. Git shell might actually support this
Downsides:
it is an additional part obviously
The text was updated successfully, but these errors were encountered:
Description
I was evaluating ways to fix #3268 and it has become complicated. To understand the actual setting of running WSL2 kernel one needs to execute over kernel (to get info on the current networking setup), to get a gateway to host machine the most reliable way is to execute command inside WSL2 distro. The problem is that it the moment, where proxy settings has to be decided the distribution is not yet running and executing the command in it will start it (the systemd will kick in, probably PAM and may be something else). Which creates a race like situation with a startup sequence executed by limactl.
The simple fix would be to have a service companion distribution, where it is safe to execute commands w/o affecting provisioned machines. With WSL 2.4.0+ supporting distributions entirely packaged in a single tgz archive it is more approachable to build one. This could also allow bundling additional tooling, which are useful for Lima.
Good things about it:
native support for arm64 Windows, cygwin/msys2 doesn't support arm64 natively.Git shell might actually support thisDownsides:
The text was updated successfully, but these errors were encountered: