commit c0dfe248d0645ae2c5169ee042968aea7d3a5144 parent 79f8de0d06e0148d61620fcb684d49bd94ebdf01 Author: Andreas Gruhler <agruhl@gmx.ch> Date: Thu, 4 Aug 2022 21:13:21 +0200 docs: binfmt and qemu-user-static Diffstat:
M | README.md | | | 9 | ++++++++- |
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md @@ -80,11 +80,18 @@ go build cp packer-builder-arm .. && cd - ``` -Install the statically linked qemu (emulator) binary: +Install the statically linked qemu (emulator) binary. On Debian/Ubuntu: ```bash sudo apt-get install qemu-user-static ``` +For other distributions, a [recent `qemu-arm-static` binary can be downloaded](https://github.com/multiarch/qemu-user-static/releases/download/v7.0.0-7/qemu-arm-static) and moved to the proper location for [`binfmt_misc`](https://en.wikipedia.org/wiki/Binfmt_misc) to pick it up: +```bash +curl -LO https://github.com/multiarch/qemu-user-static/releases/download/v7.0.0-7/qemu-arm-static +chmod +x qemu-arm-static +sudo mv qemu-arm-static /usr/bin/qemu-arm-static +``` + Run packer with a value file to build an image for one host: ```bash sudo packer build -var-file=hosts/pi0.json hashi-pi.json