Your message dated Tue, 10 Dec 2024 14:16:27 -0500
with message-id <b2324a5bd9861c993dd1bf935ccc3...@tauware.de>
and subject line Seems to work now
has caused the Debian Bug report #1088574,
regarding podman does not allow foreign architectures to be run
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1088574: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088574
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: podman
Version: 4.3.1+ds1-8+deb12u1
Severity: normal
X-Debbugs-Cc: juanignacio.cr...@gmail.com

Dear Maintainer,

* What led up to the situation?
I wanted to use podman with foreign architectures (--arch aarch64 for example)
for the cross compilation of my applications.

* What exactly did you do (or not do) that was effective (or ineffective)?
I searched for the error message online but it did not return any hints on how
to solve it. Using other tools like strace did not report in any additional
information.
I tried running the same setup on debian testing where it does work correctly,
although I would like to see the fix implemented on stable where I intend to
run the server.
I also tried updating the kernel to 6.11 but it does not solve the issue
either, so my belief is that the issue is in podman and not in the kernel.
Trying to run a newer version of podman within a container
(incus/podman/docker) does not solve the issue. What I did is, in the debian
stable version, install through incus a arch linux image to get a newer version
of podman and then run it through it, but it results on the same error.

* What was the outcome of this action?
Please find attached the error reported by the software.
```
$ podman run -it --rm --arch aarch64 debian:12 /bin/bash
{"msg":"exec container process (missing dynamic library?) `/bin/bash`: No such
file or directory","level":"error","time":"2024-11-28T12:11:20.494144Z"}
```

* What outcome did you expect instead?
I expected to have the container running through qemu in a foreign architecture
and for it to run correctly.


-- System Information:
Debian Release: 12.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.11.5+bpo-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages podman depends on:
ii  conmon                           2.1.6+ds1-1
ii  crun                             1.8.1-1+deb12u1
ii  golang-github-containers-common  0.50.1+ds1-4
ii  libc6                            2.36-9+deb12u9
ii  libdevmapper1.02.1               2:1.02.185-2
ii  libgpgme11                       1.18.0-3+b1
ii  libseccomp2                      2.5.4-1+deb12u1
ii  libsubid4                        1:4.13+dfsg1-1+b1

Versions of packages podman recommends:
ii  buildah            1.28.2+ds1-3+b1
ii  catatonit          0.1.7-1+b1
ii  dbus-user-session  1.14.10-1~deb12u1
ii  fuse-overlayfs     1.10-1
ii  slirp4netns        1.2.0-1
ii  uidmap             1:4.13+dfsg1-1+b1

Versions of packages podman suggests:
pn  containers-storage  <none>
pn  docker-compose      <none>
ii  iptables            1.8.9-2

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 5.3.1+ds1-1

It is possible that an earlier version of podman already fixed this. Here is what I tested:

siretart@x1:~ $ podman run -it --rm --arch aarch64 debian:12 /bin/bash
Resolved "debian" as an alias (/etc/containers/registries.conf.d/shortnames.conf)
Trying to pull docker.io/library/debian:12...
Getting image source signatures
Copying blob 82312fccb35f done   |
Copying config 995ceb6610 done   |
Writing manifest to image destination
root@835b6941981d:/# uname -a
Linux 835b6941981d 6.11.10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.10-1 (2024-11-23) aarch64 GNU/Linux

siretart@x1:~ $ podman run -it --rm --arch aarch64 debian:12 /bin/bash
root@5f6180138941:/# dpkg --print-architecture
arm64
root@835b6941981d:/#
exit

siretart@x1:~ $ uname -a
Linux x1 6.11.10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.10-1 (2024-11-23) x86_64 GNU/Linux


siretart@x1:~ $ podman info
host:
  arch: amd64
  buildahVersion: 1.38.0
  cgroupControllers:
  - memory
  - pids
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: 'conmon: /usr/bin/conmon'
    path: /usr/bin/conmon
    version: 'conmon version 2.1.12, commit: unknown'
  cpuUtilization:
    idlePercent: 90.39
    systemPercent: 1.58
    userPercent: 8.02
  cpus: 8
  databaseBackend: boltdb
  distribution:
    codename: trixie
    distribution: debian
    version: unknown
  eventLogger: journald
  freeLocks: 2034
  hostname: x1
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
  kernel: 6.11.10-amd64
  linkmode: dynamic
  logDriver: journald
  memFree: 14834204672
  memTotal: 33371926528
  networkBackend: netavark
  networkBackendInfo:
    backend: netavark
    dns:
      package: 'aardvark-dns: /usr/lib/podman/aardvark-dns'
      path: /usr/lib/podman/aardvark-dns
      version: aardvark-dns 1.12.2
    package: 'netavark: /usr/lib/podman/netavark'
    path: /usr/lib/podman/netavark
    version: netavark 1.12.1
  ociRuntime:
    name: crun
    package: 'crun: /usr/bin/crun'
    path: /usr/bin/crun
    version: |-
      crun version 1.18.2
      commit: 00ab38af875ddd0d1a8226addda52e1de18339b5
      rundir: /run/user/1000/crun
      spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +WASM:wasmedge +YAJL
  os: linux
  pasta:
    executable: /usr/bin/pasta
    package: 'passt: /usr/bin/pasta'
    version: |
      pasta 0.0~git20241121.238c69f-1
      Copyright Red Hat
      GNU General Public License, version 2 or later
        <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
  remoteSocket:
    exists: true
    path: /run/user/1000/podman/podman.sock
  rootlessNetworkCmd: pasta
  security:
    apparmorEnabled: false
capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
    rootless: true
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: false
  serviceIsRemote: false
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: 'slirp4netns: /usr/bin/slirp4netns'
    version: |-
      slirp4netns version 1.2.1
      commit: 09e31e92fa3d2a1d3ca261adaeb012c8d75a8194
      libslirp: 4.8.0
      SLIRP_CONFIG_VERSION_MAX: 4
      libseccomp: 2.5.5
  swapFree: 15994449920
  swapTotal: 15997071360
  uptime: 20h 14m 5.00s (Approximately 0.83 days)
  variant: ""
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  search:
  - docker.io
store:
  configFile: /home/siretart/.config/containers/storage.conf
  containerStore:
    number: 6
    paused: 0
    running: 0
    stopped: 6
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /home/siretart/.local/share/containers/storage
  graphRootAllocated: 75698274304
  graphRootUsed: 48969420800
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Supports shifting: "false"
    Supports volatile: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 18
  runRoot: /run/user/1000/containers
  transientStore: false
  volumePath: /srv/scratch/containers-storage/storage/volumes
version:
  APIVersion: 5.3.1
  Built: 1732552003
  BuiltTime: Mon Nov 25 11:26:43 2024
  GitCommit: ""
  GoVersion: go1.23.3
  Os: linux
  OsArch: linux/amd64
  Version: 5.3.1

--- End Message ---

Reply via email to