[RPi4] Podman add-on does not work

  • Hi!

    I have installed the podman addon on my raspberry pi 4B. First it didn't work at all because it claimed that /storage/.kodi/addons/service.system.podman/etc/containers/policy.json was missing. After I created that file manually podman pull and podman create worked but I can't start or run any containers because the following error:

    • Error: netavark: failed to start process: fork/exec /storage/.kodi/addons/service.system.podman/bin/netavark: exec format error

    I have checked netavark binary and noticed that it is the x86-64 instead of ARM aarch64

    • /storage/.kodi/addons/service.system.podman/bin/netavark: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=b90cc4c779a4cce1701e6a2071b07d300bc0775b, for GNU/Linux 3.2.0, not stripped

    Can someone please fix this? I would rather use podman instead of docker but currently this addon does not work for aarch64 architecture.

    Thank you :)

  • Fix identified and added

    podman: update to 5.2.2 and addon (1) by heitbaum · Pull Request #9297 · LibreELEC/LibreELEC.tv
    conmon: update to 2.1.12 libassuan: update to 3.0.1 netavark: update to 1.12.2 and fix cross-compile build podman-bin: update to 5.2.2 Fixes [BUG] netavark is…
    github.com
    [le12] podman: update to 5.2.2 and addon (1) by heitbaum · Pull Request #9298 · LibreELEC/LibreELEC.tv
    conmon: update to 2.1.12 libassuan: update to 3.0.1 netavark: update to 1.12.2 and fix cross-compile build podman-bin: update to 5.2.2 Fixes [BUG] netavark is…
    github.com
  • Not sure if podman is a good candidate for libreelec. Besides the /storage/.kodi/addons/service.system.podman/etc/containers/policy.json problem ( easy fix) podman is really resource hungry in both cpu, memory and disk space. I couldn't pull a 2.5GB image without resizing /var tmpfs mount , it was quite slow and crashed libreelec (both nightly LE13 and LE 12) a couple of times (until I increased ram and cores). podman compose doesn't work out of the box, it cant connect to the docker daemon ( Cannot connect to the Docker daemon at unix:///run/podman/podman.sock. Is the docker daemon running? ) . When I finally had the container running it didn't work as expected (a remote flatpak brave browser through web/vnc under alpine) I was seduced by the rootless mode but podman is not there yet on libreelec. Besides that I am not even sure that rootless mode makes sense on libreelec since everything runs under root, right ?