Skip to content

Please add usage example to README #95

@HDembinski

Description

@HDembinski

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

Activity

added a commit that references this issue on Dec 15, 2024
bbba737
linked a pull request that will close this issue on Dec 15, 2024
added a commit that references this issue on Dec 15, 2024
d11e328
SoloJacobs

SoloJacobs commented on Dec 15, 2024

@SoloJacobs

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @crazy-max@HDembinski@SoloJacobs

      Issue actions

        Please add usage example to README · Issue #95 · docker/setup-qemu-action