Disable cloud-init auto updates inside VM

Oct 2, 2018
Anyone knows if it is possible to disable cloud unit apt auto upgrades inside VMs? I have many Ubuntu 18.04 VMs configured with cloud init in Proxmox, and kernel updates are started automatically, so after a reboot I find a new kernel version. I don't want so because every time I have to recompile some kernel dependencies, manually.
I tried to edit cloud init config but Proxmox overwrite it on VM restart. Is there a way to disable auto upgrades from Proxmox itself for VMs? Or maybe there is a way to make it from inside the VM in a way that Proxmox will not overwrite the configuration?

Thanks in advance
That has nothing to do with cloud init... That would happen with every ubuntu installation.

This is caused by an apt.conf, check
grep -ri unattended /etc/apt/apt.conf.d/
to see where, either add an override ala:

 echo 'APT::Periodic::Unattended-Upgrade "1";' > /etc/apt/apt.conf.d/99-no-auto-upgrade.conf

add the "linux-image*" (kernel) packages to a Unattended-Upgrade::Package-Blacklist { } setting, see
Also, depending on what extra kernel module you use, it could be worth to see if there's a -dkms package, which would handle kernel upgrades automatically.
Thanks for the suggestions, I will try to study in deep the problem. The strange thing is that when I installed Ubuntu 18.04, during install process, I disabled automatic upgrades.


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!