apply_updates
Installs official security or all updates on a Proxmox VM or container after taking a snapshot, while skipping unsupported packages and reporting failures.
Instructions
Install updates on a guest (requires tag 'pvewarden-update'). Can take 10-20 minutes. Only the distribution's official archives are used: mode='security' installs security updates, mode='all' also regular updates. Third-party repositories and held packages are never installed; updates that would need them are skipped. No release upgrades. May auto-remove unused old kernels. If nothing is pending for the mode, returns nothing_to_install=true without a snapshot. 'planned' lists the packages it set out to install. Takes a snapshot first and aborts if that fails: then tell the user, do not retry with snapshot=false on your own. snapshot=false asks the user to confirm in the client. Refused while Proxmox locks the guest (e.g. during a backup). Does not reboot. If the result has still_running=true, the update goes on in the guest: call update_result. Report 'newly_failed_services' if not empty. Full output is in the file in 'log', a path on the pvewarden server (its container), not on the Proxmox host or the guest.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'security': security updates only; 'all': also regular updates. | security |
| vmid | Yes | Proxmox VMID of the guest, e.g. 101 (see list_guests). | |
| snapshot | No | Take a snapshot first. Keep true; false needs the user's consent. |