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

arm: Failed to find binfmt_misc for /usr/bin/qemu-arm-static under /proc/sys/fs/binfmt_misc #302

Open
rendevor opened this issue Sep 11, 2023 · 1 comment

Comments

@rendevor
Copy link

rendevor commented Sep 11, 2023

The issue on Ubuntu under WSL on ARM (Lenovo Thinkpad x13s). No changes on my site: installation from the box without docker.

Environment:
$ packer -v
Packer - 1.9.4
$ uname -a
Linux x13s 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
$ cat /etc/issue
Ubuntu 22.04.3 LTS \n \l
$ sudo apt list --installed qemu*
Listing... Done
qemu-block-extra/jammy-updates,now 1:6.2+dfsg-2ubuntu6.13 arm64 [installed,automatic]
qemu-user-static/jammy-updates,now 1:6.2+dfsg-2ubuntu6.13 arm64 [installed]
qemu-utils/jammy-updates,now 1:6.2+dfsg-2ubuntu6.13 arm64 [installed]

Log:
$ sudo packer build boards/odroid-u3/archlinuxarm.json
...
arm: mounting proc with: [mount -t proc proc /tmp/3675811207/proc]
arm: mounting binfmt_misc with: [mount -t binfmt_misc binfmt_misc /tmp/3675811207/proc/sys/fs/binfmt_misc]
arm: mounting sysfs with: [mount -t sysfs sysfs /tmp/3675811207/sys]
==> arm: Failed to find binfmt_misc for /usr/bin/qemu-arm-static under /proc/sys/fs/binfmt_misc
==> arm: remove /tmp/3675811207/usr/bin/qemu-arm-static: no such file or directory
arm: optional (please ignore) fuser -k failed with exit status 1:

binfmt_misc:
$ sudo ls /proc/sys/fs/binfmt_misc/
WSLInterop qemu-cris qemu-m68k qemu-mips64el qemu-ppc qemu-riscv64 qemu-sparc qemu-xtensa
python3.10 qemu-hexagon qemu-microblaze qemu-mipsel qemu-ppc64 qemu-s390x qemu-sparc32plus qemu-xtensaeb
qemu-alpha qemu-hppa qemu-mips qemu-mipsn32 qemu-ppc64le qemu-sh4 qemu-sparc64 register
qemu-armeb qemu-i386 qemu-mips64 qemu-mipsn32el qemu-riscv32 qemu-sh4eb qemu-x86_64 status

Probably similar to #258

@jayofelony
Copy link

qemu_binary_source_path       = "/usr/libexec/qemu-binfmt/arm-binfmt-P"
qemu_binary_destination_path  = "/usr/libexec/qemu-binfmt/arm-binfmt-P"

This worked for me.

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

No branches or pull requests

2 participants