Comments (5)
Hello,
Just to comment that I think I had the same issue today.
I was trying to run a multiarch/debian-debootstrap:mips-wheezy
image with Docker on my Mac but could not get it to work properly:
$ docker run -it --rm multiarch/debian-debootstrap:mips-wheezy uname -m
qemu: uncaught target signal 5 (Trace/breakpoint trap) - core dumped
However this was working fine:
$ docker run -it --rm multiarch/debian-debootstrap:mips-wheezy /usr/bin/qemu-mips-static /bin/uname -a
mips
From @mayeut's comment, it seems that the issue is that the mips/mipsel entry files are overwritten by the mipsn32/mipsn32el ones.
Looking at qemu-binfmt-conf.sh, it seems like the mipsn32* magic values are the same than mips* ones.
Since these files are shared between the host and the containers, I tried to remove them:
# access the Linux VM storing/running the containers on Mac
$ screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
# press enter
# remove the binfmt_misc mipsn32 entry files
$ find /proc/sys/fs/binfmt_misc -type f -name "*mipsn32*" -exec sh -c 'echo -1 > {}' \;
# exit
$ Ctrl-A k
$ y
After that, it was working as expected:
$ docker run -it --rm multiarch/debian-debootstrap:mips-wheezy uname -m
mips
Thank you @mayeut for the issue and writing about your findings :).
from qemu-user-static.
@mayeut sorry for late response.
Can you try to run docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
to run standard mips/mipsel container images?
multiarch/*
images are not required any more to run the arch's image.
I just searched it on DockerHub, then run below command. The uname
command shows x86_64
. I do not know if the result is correct.
https://hub.docker.com/search?q=mipsel&type=image
$ docker run --rm -t japaric/mipsel-unknown-linux-gnu uname -a
Linux 09f593170a06 5.1.18-300.fc30.x86_64 #1 SMP Mon Jul 15 15:42:34 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
from qemu-user-static.
from qemu-user-static.
@timandy make sure to check the workaround provided by @aallrd - it resolved the issue for me
from qemu-user-static.
I belive this issue has been fixed in upstream qemu with the commit "qemu-binfmt-conf.sh: mips: allow nonzero EI_ABIVERSION, distinguish o32 and n32"
https://gitlab.com/qemu/qemu/-/commit/77d119dd335f910c7f953a265726e3753c69a0bb
https://gitlab.com/qemu-project/qemu/-/issues/843
However maybe a forked or old version of qemu-binfmt-conf.sh
is used here? Can someone who know the project advise as to where that file comes from when running register
as per the README?
from qemu-user-static.
Related Issues (20)
- iptables not working on docker arm64 alpine HOT 2
- ldd fails with qemu-aarch64 HOT 6
- Need support for run x86_64 on linux/arm64 HOT 13
- Intermittent exec format error when building linux/arm64 (alpine 3.15+) on amd64 host HOT 1
- speed is slow when use as cross-compile solution HOT 5
- qemu: uncaught target signal 11 (Segmentation fault) - core dumped HOT 1
- Does loong64 and mips/mipsle will be support?
- Where is qemu-$to_arch-static binary files when container whose arch isn't equal to host's one is run? HOT 8
- Undocumented convention: The `--reset` flag must be the first argument
- Mirror docker image to ghcr.io
- node.js 16 build on UBI8 is very slow and fails in GH Actions with ECONNRESET and too many open files errors.
- argv[0] can now be automatically fixed
- need to upgrade to support loongarch64 HOT 8
- [Problem] Can I use it in gitlab runner? HOT 4
- iptables-nft not supported in qemu-aarch64-static HOT 6
- Need pinned Alpine Linux versions, e.g., v3.17 HOT 1
- mount: permission denied (are you root?)
- Is this project still active? HOT 1
- armv7 and a page size of 32K
- Have trouble running quemu-static on arm64 with exec format error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qemu-user-static.