unattended-upgrades package that can install security updates automatically. However, unexpected updates might break running GPU workloads. For this reason, unattended upgrades are disabled by default. We recommend that you check the compatibility of new library versions on a test VM, and then apply the updates manually to all running GPU nodes.
If you do need constant security updates, you can enable unattended-upgrades.
For an existing VM
- Connect to the VM.
-
Check that the updates are enabled in the configuration:
The following values should be equal to 1. If they are set to 0, change them to 1:
-
Start the upgrade services:
-
Check the service status:
Output for active updates should look like the following:
During VM creation
When you create a new VM, you can enable unattended upgrades for the VM in the user data configuration.- Web console
- CLI
- Terraform
On the VM creation page in to the User data section, enable the custom cloud-init configuration. The window below contains the code that specifies users who can connect to the VM. Add the following code to enable updates: