Skip to content

[Bug]: Can't run amd64 container machine on Apple Silicon #1843

Description

@wmanth

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

Follow the chapter Bring your own container machine image of container machine documentation with --arch amd64 as parameter:

container build --arch amd64 -t local/ubuntu-machine:latest .
container machine create local/ubuntu-machine:latest --arch amd64 --name ubuntu

Run a command on that machine:

container machine run -n ubuntu uname -a

Problem description

Expected Behavior

The machine information is printed on command line as is with container run local/ubuntu-machine:latest, e.g.:

$ container run --arch amd64 --rm local/ubuntu-machine:amd64 uname -a
Linux 9f6949cd-c2d0-4c47-af46-1b13a33a970e 6.12.28 #1 SMP Tue May 20 15:19:05 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Seen Behaviour

Instead it reports an error:

$ container machine run -n ubuntu uname -a
Error: failed to exec [/sbin.machine/init -s uname] Error Domain=NSPOSIXErrorDomain Code=8 "Exec format error"
Error: failed to start process 66c65e9c-3ae1-429a-9fd0-7c61ad5d0134 in container ubuntu-87d6d8 (cause: "internalError: "failed to start process (cause: "internalError: "startProcess: failed to start process: internalError: "vmexec error: internalError: "failed to exec [/sbin.machine/init -s uname] Error Domain=NSPOSIXErrorDomain Code=8 "Exec format error""""")"")

Environment

- OS: macOS 26.5.1 (25F80)
- Xcode: 26.6 (17F113)
- Container: Container CLI version 1.0.0

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions