qemu-podman-systemd
QEMU systemd in rootless podman container.
Small PoC to run a Podman systemd container for another architecture.
Using the containers images from Balena including a qemu with a new flag execve
it is possible to containerize a complete system for another architecture in a rootless Podman container.
In this repo a Debian 10 container for armv7hf on x86_64.
build the container
podman build -t localhost/debian-arm .
start systemd in container
podman run --systemd=always --rm --name=debian-arm --entrypoint=/usr/bin/qemu-arm-static -it localhost/debian-arm -execve -0 /sbin/init /sbin/init
run a shell
podman exec -it debian-arm /usr/bin/qemu-arm-static -execve /bin/bash
Type the following to be able to access any command in the shell:
mv /bin/sh.real /bin/sh