balenaos-in-container icon indicating copy to clipboard operation
balenaos-in-container copied to clipboard

Unable to use this on a linux/arm64/v8 OS

Open Thijzzie opened this issue 4 years ago • 6 comments

All the images available are for linux/amd64. Is there a way available to run BalenaOS in Docker on a linux/arm64/v8 OS?

Thijzzie avatar Feb 04 '21 14:02 Thijzzie

I'm actually running using "armbian debian" last stable version on AML905x board without problems. And you must install docker and this balenaOS in container . After that you can run a Generic AARCH64 instance using a command like this: ./balenaos-in-container.sh --config ./Your-Donwload.config.json --image resin/resinos:2.12.4_rev1-generic-aarch64

manuti avatar Feb 25 '21 16:02 manuti

@manuti I am running this on the Apple Silicon M1 and, although working fine, just noticed it is actually running simulated.

Schermafbeelding 2021-06-29 om 12 45 34

FRVisser avatar Jun 29 '21 10:06 FRVisser

Looking into it, forcing it doesn't help. Seems the aarch64 image actually is amd64.

docker: Error response from daemon: image with reference resin/resinos:2.12.4_rev1-generic-aarch64 was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64.

FRVisser avatar Jun 29 '21 10:06 FRVisser

I have the same message but my board is an Android TV box with Linux Armbian sideloaded. So, no Rosetta involved in the docker capabilities and I think is impossible to run images from one architecture in other type (maybe Apple M1 can do using Rosetta).

manuti avatar Jul 01 '21 15:07 manuti

hay @FRVisser I started the box after several weeks offline. Despite the updates running, as you can see everything is running under aarch64 architecture. balenaos-androidtvbox-001 balenaos-androidtvbox-002

manuti avatar Jul 01 '21 15:07 manuti

Yes, you are right! It works now. But only when you stick to v0.5.3 of balenaos-in-conainer. I made the mistake to pull the latest changes in the hope it was fixed. But the new version complete changed, and I spend hours on trying to get the latest version to work 🙄

FRVisser avatar Sep 24 '21 15:09 FRVisser