verifyWSLUserModeCompat returns error for unprivileged user in some cases #21428
Labels
kind/bug
Categorizes issue or PR as related to a bug.
machine
remote
Problem is in podman-remote
stale-issue
Issue Description
Basic issue is when I call
podman machine set --user-mode-networking=true
I got error:I have installed and updated wsl by another privileged user and work from unprivileged one, but apparently it has error on
wsl --version
This bug is described here: microsoft/WSL#10693
As I found
IsWSLInstalled
method fromwutil.go
calls onlywsl --version
: https://github.com/containers/podman/blob/7ed4478c087303b58c082188088a03e2c533d796/pkg/machine/wsl/wutil/wutil.go#L51C1-L51C42Anyway another commands are running well, so I suggest to make another call after that to verify if it really have no issues with that, for instance
wsl --status
if first one (wsl --info
) had returned an error.Steps to reproduce the issue
Steps to reproduce the issue
podman machine set --user-mode-networking=true
for instanceDescribe the results you received
Error:
Describe the results you expected
I expect podman to work because I have last wsl version and supported windows version
podman info output
Podman in a container
Yes
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
wsl --version
Windows version:
Microsoft Windows [Version 10.0.19044.3324]
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: