Comments (8)
Appears to be solved with docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes
from qemu-user-static.
Now better alternative. The binfmt_misc files are updated as flags: OCF
.
$ uname -m
x86_64
$ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes --credential yes
$ cat /proc/sys/fs/binfmt_misc/qemu-aarch64
enabled
interpreter /usr/bin/qemu-aarch64-static
flags: OCF
offset 0
magic 7f454c460201010000000000000000000200b700
mask ffffffffffffff00fffffffffffffffffeffffff
Then run a Debian aarch64 container arm64v8/debian
for testing.
$ docker run --rm -it arm64v8/debian bash
Then below commands work in the container. Though I do not know the warning "/bin/ls: /etc/sudoers: Function not implemented".
# apt-get -y update
# apt-get -y install sudo
# echo "test_user ALL = NOPASSWD: ALL" >> /etc/sudoers
# useradd -m test_user
# su - test_user
$ sudo ls -l /etc/sudoers
/bin/ls: /etc/sudoers: Function not implemented
-r--r----- 1 root root 699 Aug 6 13:01 /etc/sudoers
I close this ticket. But feel free to reopen if you need something.
Thanks.
from qemu-user-static.
The problem is with the registration strings, it is missing the correct flags (POC
, needs to be added as suffix) just as @amon-ra mentions. I have verified that if you use the upstream binfmt configuration script that sudo works on emulated CPUs.
from qemu-user-static.
I just opened a PR (#23) which uses the official script to configure binfmt
from qemu-user-static.
I'm getting this today on version 2.12
from qemu-user-static.
Should this bug be fixed in 2.12?
from qemu-user-static.
I also have this problem. Is there any way we can solve this?
from qemu-user-static.
@amon-ra Could you solve this issue? are you fine to close this ticket?
from qemu-user-static.
Related Issues (20)
- [Feature Request] darwin-arm64 arch support
- bubblewrap does not work in aarch64 container on x86_64 host
- Does it support MacOS with M1? HOT 2
- how to pass --smp option
- 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 HOT 3
- 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
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.