ryankurte / docker-rpi-emu

QEMU and helper scripts in a docker container for emulating a raspberry pi environment
MIT License
109 stars 34 forks source link

Can't run docker-rpi-emu on Ubuntu 17.10 #13

Closed babelouest closed 5 years ago

babelouest commented 6 years ago

I know this problem has been mentioned in #6 and #10 but I couldn't find in those issues a solution for me so I'm trying by opening a new one.

I can't run docker-rpi-emu on my Ubuntu Artful 17.10, nor with jessie or stretch images, all I get is the following error mesage:

$ docker run -it --rm --privileged=true -v $PWD/images:/usr/rpi/images -w /usr/rpi ryankurte/docker-rpi-emun/bash -c './run.sh images/2016-05-27-raspbian-jessie-lite.img'
Attempting to mount images/2016-05-27-raspbian-jessie-lite.img to /media/rpi
Attached base loopback at: /dev/loop0
Located partitions: p1 (/boot) at 8192 and p2 (/) at 137216
Closed loopback /dev/loop0
Mounted to /media/rpi and /media/rpi/boot
Bootstrapping Qemu
chroot: failed to run command 'bin/bash': No such file or directory

Wether I use the docker image from hub.docker.com or rebuild it from the github project.

Is there anything that's missing on my side?

I use the following docker version Docker version 1.13.1, build 092cba3

ryankurte commented 6 years ago

Hmm, have you installed qemu-user-static?

(Aside, all these scripts should all work on native linux, no docker required)

ryankurte commented 5 years ago

closing for inactivity, feel free to re-open if you still have this issue ^_^

jgillis commented 3 years ago

Installing qemu-user-static on the host fixed this for me