exec format error
from linux/arm64
image
#314
Labels
kind/bug
Categorizes issue or PR as related to a bug.
exec format error
from linux/arm64
image
#314
What steps did you take and what happened:
I observed an
exec /manager: exec format error
while setting up my cluster-api infrastructure provider (Proxmox as it happens).I inspected the manifest (using
crane
) and it shows a multi-arch image index:However, upon inspecting each of those, the layer for
manager
executable (invoked as the entrypoint) is the same for bothamd64
andarm64
:Observe the same digest there. Since I'm running this on arm64 (and getting the error), I'm assuming it is likely amd64 (especially considering the GH runner that is doing the build).
What did you expect to happen:
Other than not encountering the
exec format error
in general, I expected the executable to naturally be different between the AMD64/ARM64 images.Anything else you would like to add:
I believe I've seen this behavior in a multi-arch build if the supporting QEMU emulation for the builder is not setup. The painful part is that I believe it will just silently proceed building AMD64 even though you specify the platform as
linux/arm64
(again, because the backing emulation isn't available). Originally I thought GH Actions was being used to conduct the build (in which case there are some additional actions to make sure that buildkit and qemu are configured on the runner), but that doesn't appear to be the case. I'm unsure of whether additional provisions might be needed incloudbuild.yaml
, I've not worked with that before.Environment:
kubectl version
): v1.31.2+k3s1/etc/os-release
): Ubuntu 24.04.1 LTS/kind bug
The text was updated successfully, but these errors were encountered: