Skip to content
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

Please add usage example to README #95

Open
HDembinski opened this issue Aug 30, 2023 · 1 comment · May be fixed by #186
Open

Please add usage example to README #95

HDembinski opened this issue Aug 30, 2023 · 1 comment · May be fixed by #186

Comments

@HDembinski
Copy link

It would be great to have a simple example on how to use QEMU in a workflow in the README.

SoloJacobs added a commit to SoloJacobs/setup-qemu-action that referenced this issue Dec 15, 2024
We provide two simple examples of invoking `qemu-{arch}-static` (or more
precisely, we let the kernel do the invocation.)

Closes: docker#95
@SoloJacobs SoloJacobs linked a pull request Dec 15, 2024 that will close this issue
SoloJacobs added a commit to SoloJacobs/setup-qemu-action that referenced this issue Dec 15, 2024
We provide two simple examples of invoking `qemu-{arch}-static` (or more
precisely, we let the kernel do the invocation.)

Closes: docker#95

Signed-off-by: Solomon Jacobs <[email protected]>
@SoloJacobs
Copy link

There were two things that confused me in the beginning, so let me give the information here:

  • This action is named setup-qemu-action, but it only sets up user mode emulation. You can't use qemu-img or any qemu-system-* functionality.
  • No qemu-* binaries added to the path. Instead they are registered with the kernel (using binfmt_misc), and the kernel will invoke the correct qemu-* binary by looking at the first few bytes of an executable. Thus, qemu-aarch64-static hello will fail, but ./hello works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants