balenaOS Hostupdate >v2.99

Hi All,

Previously it was possible to update devices OS versions using:

hostapp-update -r -i resin/resinos:2.99.27_rev2-intel-nuc

The images were available here: https://hub.docker.com/r/resin/resinos/tags which is where you would get the tag version for hostapp-update command.

However I cannot figure out how to update host OS anymore as I cannot find the images.

Specifically I’d like to get v2.83 to v6. Or even v4 to v6 but I cannot find where the images are stored anymore.

Any assistance would be much appreciated.

Cheers,
Chris

Update on progress with this.

balenaOS + openBalena no longer supports host updates via previous method with hostapp-update which will get you to v2.99.

This is primarily because the new balena images are not published to a public docker hub repo but instead private balena cloud repo.

All is not completely lost however because this legend appears to have implemented a work around: able to uggrade hostOS of openBalena-devices by autonoma-official · Pull Request #382 · balena-os/balenahup · GitHub

I will try this and report back how it goes. It’s worth noting though this will require you to build OS image manually.

I guess my general takeaway from this is it appears that while with some hackery it may be possible to make it work it seems even manual host updates are not going to be encouraged/supported via Balena organization. I am making this assessment based on the amount of threads on this topic that have not been able to resolve it and the age of this PR.

Hey @dash , I’m glad you found a workaround!

To clarify where our images are published now, they are on the balenaCloud registry but they are not private. You can pull them like this:

docker pull bh.cr/balena_os/${DEVICE_TYPE}/${OS_VERSION}:latest

Note that the ${OS_VERSION} is preceded by forward slash / and not a : as we have a unique registry structure to allow renaming of applications. The :latest is static and does not affect the version being pulled.

For example:

docker pull bh.cr/balena_os/generic-amd64/6.5.21:latest
latest: Pulling from balena_os/generic-amd64/6.5.21
b89498a0393e: Downloading [==================================================>]  521.6MB/521.6MB

I hope this helps!

1 Like

Thanks @klutchell I have been able to successfully upgrade a device from v4.0.23 to v6.2.23.

Confusion was that hostapp-upgrade script was giving error a weird docker login error when I was trying to use it as it previously worked with resin docker hub images (just the image name and tag).

This worked with full url to image in repo:

hostapp-update -i bh.cr/balena_os/intel-nuc/6.5.23:latest

Thank you for your help - it is much appreciated.