Automatic updates (LXC OS + community-scripts apps)¶
Every Proxmox VE node updates its own containers every night, unattended, with the
community-scripts tools. Set up by ansible-playbook playbooks/auto_update.yml
(role pve_auto_update).
| Timer | Time | What it runs |
|---|---|---|
update-lxcs.timer |
04:00 (+ up to 10 min) | update-lxcs: apt dist-upgrade / apk upgrade / ... in every LXC on the node. Stopped containers are started for the update and shut down again. Templates are skipped. |
update-apps.timer |
04:30 (+ up to 10 min) | update-apps: the app's own updater in every running LXC tagged community-script or proxmox-helper-scripts |
Settings (roles/pve_auto_update/defaults/main.yml):
- no backup before an app update (
pve_update_apps_backup: "no") - no automatic container reboots (
pve_update_apps_auto_reboot: "no"). Containers that need one are listed at the end of the log. - a failed app update does not stop the run (
var_continue_on_error=yes) - exclude containers with
pve_update_exclude, either a list for every node or per node:{node05: [128]}
Both jobs download the current script from community-scripts on every run.
Logs and manual runs¶
journalctl -u update-lxcs -u update-apps --since today # on a node
systemctl start update-apps # run now
systemctl list-timers 'update-*'
var_dry_run=yes /usr/local/sbin/update-apps-daily # which apps have updates, changes nothing
dependency-check hookscript¶
The pve_auto_update role also keeps the local:snippets/dependency-check.sh hookscript off
every LXC and the pve-auto-hook watcher (which re-added it to new CTs) disabled, so the
unattended updates can restart containers without being blocked.