-
Notifications
You must be signed in to change notification settings - Fork 387
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
[Error] No sudo in any cross architecture containers #1172
Comments
The same issue occurs on Arch Linux as a host instead of Fedora so it is not caused by Fedora exclusively. |
I think there might be some problems with qemu+podman at this point Can you run:
then install sudo, and (while still running) in another tab do |
Still the same error message. Followed your steps as such:
Still got: OS: Arch Linux
Qemu Version: 9.0.1 |
Seems to me an upstream podman issue then, probably something to do with how the FS is shared with QEMU? |
Looks like this is somewhat intended and there are known workarounds listed in this discussion here. I agree that we can close the issue here. containers/podman#20445 |
Describe the bug
When building an arm container on x86 or an x86 container on arm using Fedora as the host sudo fails
To Reproduce
Expected behavior
sudo works
Desktop (please complete the following information):
podman
4.8.3
1.6.0.1
Fedora 39
dnf install distrobox
also used dnf for qemu, qemu-user-static, qemu-user-binfmt and performed systemd restart systemd-binfmt
I have tried numerous variations and things such as:
--root
--unshare-all
tried disabling selinux completely as well
tried without libpam-systemd
tried with focal instead of bionic at least for aarch64 -> amd64
using podman buildx functionality I can create a container that sudo works, just distrobox is the problem at the moment in this scenario
The text was updated successfully, but these errors were encountered: