-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better documentation on how does it work #25
Comments
The point you are missing is you can register interpreters with binfmt_misc by having them loaded into memory, using This repository showcases multiples ways to register QEMU interpreters, most of them do use the Find further references in https://dbhi.github.io/qus/references.html, e.g. https://lwn.net/Articles/679308/ and https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=948b701a607f123df92ed29084413e5dd8cda2ed.
See https:/qemu/qemu/blob/master/scripts/qemu-binfmt-conf.sh. That's the script used to register QEMU interpreters through binfmt_misc. In essence, it's just writting a magic string to |
Hello,
I'm trying to understand how the mechanism works, but I'm stuck.
My ultimate goal is to use box64 instead of qemu to get more performance on my Raspi 4, so I'd like to understand how does qus register qemu, but I can't understand one thing.
Where is the binary?
docker image ls -a
does not show anything related to qus.I found the binary in docker internal folders:
I tried creating a container and inspecting, but no volumes are used and i couldn't see anything relevant.
So I do not understand: How does docker "apply" the
/qus/bin/qemu-x86_64-static
in the way that the binfmt_misc system can read from that path, while not apparently appearing anywhere? Because (supposedly) the kernel does not know anything about docker, so it should just try to read it from the host path (?). Or, if it tries to read it from the namespaced path, than the emulator should exist inside the container.What am I missing?
(how can I make docker use my binary (box64) to transparently run x86_64 container on arm64 like qus does?).
The text was updated successfully, but these errors were encountered: