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
seems to state that commenting a line in /usr/lib/systemd/system/systemd-binfmt.service.d/wsl.conf allows binfmt to work, and it's apparently Ubuntu's fault? If so I'd like to track the issue here, or continue the discussion there.
The text was updated successfully, but these errors were encountered:
I was able to reproduce the issue and the proposed workaround noted in that comment following their steps. However, doing so seems to break Windows interoperability. For example, code . will no longer work from inside WSL, nor will notepad.exe.
Interestingly, if you apply the workaround (commenting out /usr/lib/systemd/system/systemd-binfmt.service.d/wsl.conf) and restart WSL completely, Ubuntu WSL will work in all cases, including Windows binaries and other architecture Linux binaries. It's only when you restart binfmt with systemctl restart systemd-binfmt that Windows interoperability breaks once again.
Seems to be that there is something during the setup of the instance that allows everything to work, but the same setup is not applied when restarting binfmt manually.
While ubuntu/WSL#512 is a representative
issue, I've seen similar complains in the upstream repository about
binfmt_misc registration mediated by systemd not working. I've also seen
a bunch of other complains in the past about WSL binary interoperability
not working because of some surprising interaction with
`systemd-binfmt.service`.
This explanation page aims to eliminate (or at least decrease the amount
of) surprises by:
- Explaining power users why we chose to disable that service
- Giving them knowledge to do the opposite and deal with potential
consequences
I have high hopes (based on conversations I already had with upstream)
that we'll see strong improvements in this area still in the WSL 2.5.x
release series.
---
UDENG-6366
microsoft/WSL#11946 (comment)
seems to state that commenting a line in /usr/lib/systemd/system/systemd-binfmt.service.d/wsl.conf allows binfmt to work, and it's apparently Ubuntu's fault? If so I'd like to track the issue here, or continue the discussion there.
The text was updated successfully, but these errors were encountered: