setup-qemu-action icon indicating copy to clipboard operation
setup-qemu-action copied to clipboard

Please add usage example to README

Open HDembinski opened this issue 2 years ago • 2 comments

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

HDembinski avatar Aug 30 '23 12:08 HDembinski

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.

SoloJacobs avatar Dec 15 '24 10:12 SoloJacobs

Also it almost looks like the /var/run/docker.sock is hardcoded where does this come from?

DaanSelen avatar Jul 23 '25 14:07 DaanSelen