Can't run amd64 apptainer in rosetta-mode apple silicon mac #3135
Unanswered
ermaolaoye
asked this question in
Q&A
Replies: 1 comment 5 replies
-
You probably need to tell apptainer the build arch, somehow. If all else fails, by running an arm64 version of the application*. * Normally there is a parameter like --arch or --platform, but some tools fall back to the compile time GOOS and GOARCH... |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently working on setting up a Lima VM using the Apptainer template and encountered an issue that I need assistance with. Below is the command I used to create the VM:
My objective is to build an Apptainer image capable of running x86_64 Linux applications on my Apple Silicon MacBook. Here is the configuration .def file for my Apptainer setup:
However, when I attempt to execute the apptainer build command within the Lima VM, it seems the x86 Docker environments are not functioning as expected. Despite enabling the Rosetta environment, the setup appears to lack support for x86 Docker environments.
I am aware of the slower QEMU-based approach for running the VM, but I would prefer to maintain performance by continuing to use Rosetta and VZ. If anyone could guide me on correctly configuring Lima or modifying my Apptainer definition file to address this issue, it would be greatly appreciated. Thank you for your time and assistance in advance!
Beta Was this translation helpful? Give feedback.
All reactions