#215 Suggestion: improve WSL Fedora-42's WSLInterop readiness
Opened by orthogonaleety. Modified

I have experienced a couple of errors when using WSL Interoperability features with it's 'Fedora-42' distribution, out of the box.
This suggestion ticket is only able to hint at the problem, and only able to hint at a solution, not provide a 'proper' remedy.
These remedies were.
sudo mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
and installing package 'xdg-utils'


To demonstrate the feature errors:
- WSL install 'FedoraLinux-42'. (specify a username as normal, set its password)
- An example of a package that uses interoperability is 'azure-cli'. This can be installed using guidance for RHEL 10 https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest&pivots=dnf . (Prior to this preform dnf update)

  • attempt 'az login' . an error is received.
  • preform sudo mount -t binfmt_misc none /proc/sys/fs/binfmt_misc to remedy
  • attempt 'az login' . A different error 'operation not supported' is received
  • install xdg-utils package to remedy.
  • attempt 'az login', the authorization workflow now succeeds in opening a browser session in the Windows host.

My main reason for suggesting this improvement is that I anticipate these WSLInterop features have many uses beyond just azure-cli.
I regret that I cannot comment upon whether more minimal steps would suffice to remedy the problems with WSLInterop, or whether these features are part of a larger package of features for which the above steps are not the most 'complete' solution.


I'm not sure what other WSL distros do, but I would like to see this feature's enabling or disabling prompted either on first run, or even each login.
https://learn.microsoft.com/en-us/windows/wsl/filesystems#interoperability-between-windows-and-linux-commands
https://learn.microsoft.com/en-us/windows/wsl/filesystems#disable-interoperability

Metadata