balena-os / balenaos-in-container

Run balenaOS as a docker container
https://www.balena.io/os/
Apache License 2.0
49 stars 14 forks source link

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

Open Thijzzie opened 3 years ago

Thijzzie commented 3 years ago

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

manuti commented 3 years ago

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

FRVisser commented 3 years ago

@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 commented 3 years ago

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.

manuti commented 3 years ago

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 commented 3 years ago

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

FRVisser commented 3 years ago

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 🙄