-
Notifications
You must be signed in to change notification settings - Fork 235
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
"sh: write error: Invalid argument" errors when register #38
Comments
@heyi-arm hi the behavior you reported is expected behavior. The error message I am not sure which Linux distribution you are using. Here is the way to change
If the environment is really clean without binfmt_misc files. Maybe condition is like this.
I would close this ticket, as it is expected behavior. By the way today we release a new image "multiarch/qemu-user-static" that can build and run standard architecture specific container instead of multiarch compatible imagtes. Like this.
|
The register image is using below QEMU's Below is the logic to add binfmt_misc entry. https://github.com/qemu/qemu/blob/master/scripts/qemu-binfmt-conf.sh#L269-L270
|
@junaruga I'm not sure I follow all of what you said. Could you please expand a little bit on it? My build output can be found here: https://travis-ci.com/hoshsadiq/qemu-testing/builds/124639278 As you can the |
@hoshsadiq in your Travis log, below command outputs error message then finishes with exit status: 0. that is what we have to fix.
That means But in your case I found why the issue happened. Here is my repository forked from your qemu testing repository.
After changing dist from trusty to xenial, you can run it without errors. |
This repository's |
Ah. I was being stupid. I was meant to be using bionic. Seems this is supported on Xenial and above. Thank you! |
echo ":qemu-aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-aarch64-static:F" > /proc/sys/fs/binfmt_misc/register ls /proc/sys/fs/binfmt_misc/qemu-aarch64 But ls /proc/sys/fs/binfmt_misc/qemu-aarch64 cannot set flag with F |
@lugeng I got the same error, did you find a solution? Thanks! |
The F flag is a relatively new feature of the kernel binfmt_misc. Maybe it does not work if the host os kernel version (= |
facing the same issue, kernel is 4.4, OS: Ubuntu 18.04.4 LTS. Tried running both, with and without -p yes, but no progress. Any help is appreciated ? |
must uname -r > 4.8 |
I have similar issue in docker.io/library/docker:19.03.14 container (
Any hints whats the problem and what can I do to fix this issue? My environment is:
|
@gasgithub Your kernel is probably too old. Try to upgrade it. |
|
Hi, on my x86_64 server:
Run the command "docker run --rm --privileged multiarch/qemu-user-static:register" encounters errors:
But run command ""docker run --rm --privileged multiarch/qemu-user-static:register --reset" actually installs all the interpreters successfully:
The text was updated successfully, but these errors were encountered: