use systemd-nspawn to boot raspbian image
The setup is a bit tricky and some things might have to be changed, but it should basically work.
- setup the loopback devive using:
loosetup -f -P <path_to_img>.img
as root and lets assume the output is /dev/loop1. - make sure you have the prerequistes:
- qemu-user-static
- binfmt-support
- run
sudo update-binfmts --enable qemu-arm
or something similar - create a mount point, lets assume mnt in the current directory
- mount the image
mount /dev/loop1p1 mnt
- try to start a chroot using
systemd-nspawn --bind /lib64 --bind /usr/bin/qemu-arm-static -D mnt /bin/bash
as root. if it works you can add the boot option and see if that works as well
On issues check the output of file mnt/bin/bash to see if you use the correct qemu
Update
It seems that systemd-nspawn can despite all this not boot some images, the chroot however should work for all.