At the end of the day, Proxmox is based on Debian. So, it is nothing more than Debian underneath the hood. This means you can usethe unattended-upgrade process to automatically update your host with security updates. However, Proxmox-specific packages should not be updated automatically to avoid breaking your setup. Also, this could lead to unexpected reboots.
Let's see how to update and still exclude Proxmox specific updates for stability.
1. Why Use unattended-upgrades on Proxmox?
✅ Keeps your system up-to-date with Debian security patches
✅ Reduces the risk of security vulnerabilities
✅ Automatically installs safe updates while blocking Proxmox-specific upgrades
🚨 Why exclude Proxmox packages?
Proxmox updates often include kernel changes, requiring a reboot. Updating them automatically would not be desirable since all your VMs/containers would go down unexpectedly.
2. Install unattended-upgrades
Run the following commands to install the package for unattended-upgrades:
Then, we need to enable it:
Select Yes to enable automatic updates.
3. Configure your update rules
Edit the configuration file:
Modify the Allowed-Origins section of this file to include only security updates:
ย
What this does:
- Allows only Debian security updates
- Blocks Proxmox-specific updates that may require reboots
4. Enable Auto-Upgrades
Now, we can configure auto-upgrades to run daily:
Add:
5. Test & Monitor Updates
Run a dry-run test to see what would be installed:
See what was updated:
Email Notifications
If you want email alerts when updates are applied we can do this by installing the mailutils package:
Then edit:
Add your email:
Final Thoughts
Yes, we can keep Proxmox server hosts updated, but care needs to be given to which updates you apply and avoiding unexpected reboots of the server host. By specifically configuring which updates to apply, this allows you to keep security updates applied and hold off on Proxmox specific and kernel updates that might reboot your host
If you have any questions or want to share what you do for unattended updates with Proxmox, please join the discussion!