dbhi / qus

qemu-user-static (qus) and containers, non-invasive minimal working setups
https://dbhi.github.io/qus
Other
295 stars 17 forks source link

Not able to run x86_64 image on arm32 machine using qus #20

Open ajiteshr7 opened 1 year ago

ajiteshr7 commented 1 year ago

Hi,

I am attempting to run an x86_64 image on an arm32 machine with dbhi/qus. Following the documentation, I ran the command:

docker run --rm --privileged aptman/qus -s -- -p x86_64 but encountered the error: sh: /sbin/modprobe: not found

I then attempted to run our x86_64 image, but received the error: standard_init_linux.go:228: exec user process caused: exec format error

I have tried previously tried multiarch/qemu-user-static as well but it doesn't seems to support arm32 host and was getting similar error.

I would appreciate any assistance in resolving this issue and successfully running the x86_64 image on our arm32 machine using dbhi/qus. And I am open to other suggestions as well in case its not possible with dbhi/qus.

zhjygit commented 1 year ago

师傅,这个问题解决了吗?我想通过树莓派arm架构,运行x86_64的docker,使用这个项目后还是包格式错误。

umarcor commented 1 month ago

Can you show the output of cat /proc/sys/fs/binfmt_misc/qemu-x86_64 after executing docker run --rm --privileged aptman/qus -s -- -p x86_64? Can you also please check which image of aptman/qus did you get? aptman/qus is a manifest that points to different images, depending on the host architecture (see https://hub.docker.com/r/aptman/qus/tags?page=&page_size=&ordering=&name=latest).