[pkg-go] Bug#1070727: reportbug: podman does not run wasm/wasi images because of missing crun-wasm - easy fix
Eugen Stan
eugen.stan at netdava.com
Wed May 8 01:10:40 BST 2024
Package: podman
Version: 4.9.4+ds1-1
Severity: important
Dear Maintainer,
I followed the guide to run wasm images on my system and it failed with
errors.
I believe the issue is that podman looks for crun-wasm binary by default.
I failed to configure podman to use crun instead of crun-wasm.
I created a simbolic link named crun-wasm:
sudo ln -s /usr/bin/crun /usr/local/bin/crun-wasm
More details bellow to reproduce:
This is the guide I followed
https://news.opensuse.org/2024/01/19/podman-wasm-
support/
I installed podman, crun and wasmedge packages.
Created a rust package and image with this Containerfile
FROM scratch
COPY target/wasm32-wasi/debug/hello.wasm /
CMD ["/hello.wasm"]
When I ran the image I got this error
podman run --rm hello-wasm
WARNING: image platform (wasi/wasm) does not match the expected platform
(linux/amd64)
Error: requested OCI runtime crun-wasm is not available: invalid argument
After creating the crun-wasm symbolic link I got it working:
podman run --platform wasi/wasm --rm hello-wasm
Hello, world din wasm!
It might be that this bu is fixed by patching crun but I believe the
issue is
happening with podman.
Thanks,
Eugen
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 6.7.12-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=ro_RO.UTF8, LC_CTYPE=ro_RO.UTF8 (charmap=UTF-8), LANGUAGE
not set
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.10+ds1-1+b1
ii containerd.io [runc] 1.6.31-1
ii crun 1.14.4-1
ii golang-github-containers-common 0.57.4+ds1-2
ii libc6 2.38-7
ii libdevmapper1.02.1 2:1.02.196-1+b1
ii libgpgme11t64 1.18.0-4.1+b1
ii libseccomp2 2.5.5-1
ii libsqlite3-0 3.45.3-1
ii libsubid4 1:4.13+dfsg1-4
Versions of packages podman recommends:
ii buildah 1.33.7+ds1-1
ii catatonit 0.1.7-1+b1
ii dbus-user-session 1.14.10-4+b1
ii passt 0.0~git20240426.d03c4e2-1
ii slirp4netns 1.2.1-1+b1
ii uidmap 1:4.13+dfsg1-4
Versions of packages podman suggests:
ii containers-storage 1.51.0+ds1-2
pn docker-compose <none>
ii iptables 1.8.10-3
-- no debconf information
--
Eugen Stan
+40770 941 271 / https://www.netdava.com
More information about the Pkg-go-maintainers
mailing list