OTA update model
How over-the-air (OTA) updates reach your fleet in stages, and what happens when one fails.
VelaOS updates devices over the air (OTA): nobody has to visit a device. The system updates as a whole, installs beside the running version and goes back to the previous version by itself if the new one doesn't start properly. You decide who gets an update first, and when.
What gets updated?
| Update | What it changes | Where in the console |
|---|---|---|
| Operating system | The whole VelaOS system image | Updates → OS images |
| VelaOS Agent | The agent that connects the device to your console | Updates → Rollouts → Agent updates |
| Apps | One app from the Vela Catalog | Configure → Apps |
Each is separate. A system update doesn't change your apps' versions, and an app update doesn't touch the system.
How does a system update install?
- The device downloads the new version and checks that VelaOS signed it. An image that isn't genuine is refused.
- It installs into the spare copy. A device keeps two copies of the system: the one running and one for the next version. The running system is not changed, so the person at the device can keep working.
- The new version starts at the next restart. By default that is the device's next normal restart. You can instead ask the person at the device to restart, with a deadline after which the device restarts by itself.
- The device checks its own health. After the restart it checks that its protections are on, the VelaOS Agent is running and the screen people use, the sign-in screen or the full-screen app, came up.
- If a check fails, it goes back. The device starts the previous copy again, by itself, and reports that it went back. The device's Issues tab then shows Went back to the previous OS version.
You can also send a device back yourself: open it under Devices, choose Actions, then Go back to previous OS version. In the device list the same item is in each row's menu, and for a selection in the bulk bar under More.
How do you change the version of one device?
In Devices, open a VelaOS device's menu, or select several, and choose Update OS. Change VelaOS version lists every published, signed release and says for each whether it is newer, older or already running. The latest is chosen for you. An older release says how many newer releases' security fixes the devices lose, and you type DOWNGRADE to confirm. Then choose when devices restart: ask the person at the device (they restart by themselves after 8 hours, or the deadline you pick), restart now, or at your organisation's next maintenance window. Devices that are offline get the new version when they come online. Other Linux in the same selection installs its package updates instead; you confirm that next.
A device's page shows OS versions on this device: the version running now, the one that starts after the next restart, and the fallback. The device keeps two versions, in slots A and B, and the new version replaces the fallback. Switching between them needs a restart.
Who gets an update first?
Every device is in one of three update rings. A device takes its group's ring unless you set its own.
- Test gets each update first. Keep a few devices here, ideally the ones your IT team uses.
- Pilot gets it next, once Test is fine. A sample of your real devices.
- Production gets it last, once Pilot is fine. This is the default for new devices.
Set the ring for a whole group under Groups, or for one device on its page. A rollout to your groups then runs ring by ring: Test (5 % of the devices by default), then Pilot (25 %, Test included), then Production, which is everyone else. The next ring starts once 95 % of the devices in the ring have updated. If more than 5 % fail, or too many go back to their previous version, the rollout halts by itself, so the rest of your devices stay on the version that works.
How do you start a system update?
- Open Updates → OS images and choose Update OS.
- Choose the OS image and the groups that get it.
- Keep the rollout waves, or choose All devices at once (emergency fix) for an urgent fix. Even then, each device goes back by itself if its new version fails.
- Optionally set a maintenance window (hours and days), turn on Ask users to restart, and add a reason.
- Choose Review, check the summary and choose Start rollout.
If the image you chose already went back on devices in your organisation, the review warns you, and those devices are skipped. The Rollouts panel on the same page shows each rollout and every device in it: waiting, downloading, staged, restarting, checking health, updated, rolled back, failed or skipped.
Can updates run by themselves?
Yes. Under Settings → Updates, or on each update page, turn on Update automatically for the operating system, the VelaOS Agent, or both. Each new Stable release then rolls out by itself, ring by ring, inside your maintenance window. With a switch off, new versions wait until an admin starts the update. New organisations start with every switch off.
The maintenance window applies to every automatic update. Set its hours in your own time zone; with no window, updates can run at any hour.
How do you stop every update at once?
Choose Emergency stop in the console's top bar and give a reason. VelaOS then sends no new update commands until you lift the stop. Devices that already started an update finish it, and nothing is rolled back. When you lift the stop, the rollouts it paused carry on from where they were.
How do app updates work?
A device gets its apps from its kit. For each app in the kit you choose Latest approved, so devices follow the newest version on the VelaOS mirror, or a version to keep devices on. When a kit changes, every device that uses it gets the change: right away if it's online, or when it's back. Devices that already have the app move to a newer version through a rollout that starts with a few devices and pauses on any failure.
What about Linux computers that run only the agent?
On a Linux computer that keeps its own distribution, VelaOS doesn't replace the system, so there is no image update and no automatic rollback. The console can run the distribution's own package upgrade where it uses dnf, yum or apt. The agent itself updates with signed builds there too.
Not available yet
- Automatic app updates: the switch is saved, but app versions don't roll out by themselves yet.
- Starting an app version rollout from the console.
- Firmware updates through rollouts.
Related
- Boot failure and recovery: what to do when a device went back to an older version.
- Release notes: what changed in each VelaOS release.
- Architecture: how devices and the console fit together.