Hello everyone,
I started the process of updating my nodes to Debian 12.9 since it got released today.
I first did "apt update" & "apt upgrade -y" on the node and all the VMs the node has. (So that when I apply the update to the node via reboot it also applies it to the VMs since they will be rebooted as well.)
Unfortunately, I noticed that after the node rebooted that the Cloud-Init cicustom script reruns on the VM. (This is a huge issues since it in this case reinstalled DirectAdmin even though is was already installed.)
So just to save me the headache later of having a possible misconfiguration/double installed DirectAdmin VM, I just restored the VM from backup. (One of the many reasons why I alwayssay backups are NOT optional in a producton system.)
Now after restore, I started the VM and the same thing happened. (It also rerun the Cloud-Init cicustom script.)
So it seems like I can rule out the Debian update as the cause of the issue.
I would expect the cicustom script to only run once ever. (Only when I boot the VM after cloning it from the template.)
But this seems not to be the case.
Does anyone know why this happened and of so how to possibly fix it?
Thanks in advance.
cicustom script: Link
VM qm config: (Removed IPs data)
I started the process of updating my nodes to Debian 12.9 since it got released today.
I first did "apt update" & "apt upgrade -y" on the node and all the VMs the node has. (So that when I apply the update to the node via reboot it also applies it to the VMs since they will be rebooted as well.)
Unfortunately, I noticed that after the node rebooted that the Cloud-Init cicustom script reruns on the VM. (This is a huge issues since it in this case reinstalled DirectAdmin even though is was already installed.)
So just to save me the headache later of having a possible misconfiguration/double installed DirectAdmin VM, I just restored the VM from backup. (One of the many reasons why I alwayssay backups are NOT optional in a producton system.)
Now after restore, I started the VM and the same thing happened. (It also rerun the Cloud-Init cicustom script.)
So it seems like I can rule out the Debian update as the cause of the issue.
I would expect the cicustom script to only run once ever. (Only when I boot the VM after cloning it from the template.)
But this seems not to be the case.
Does anyone know why this happened and of so how to possibly fix it?
Thanks in advance.
cicustom script: Link
VM qm config: (Removed IPs data)
agent: enabled=1,fstrim_cloned_disks=1
balloon: 4096
boot: order=scsi0
cicustom: user=local:snippets/directadmin.yaml
cores: 4
cpu: host
ide2: local-zfs:vm-1000-cloudinit,media=cdrom
ipconfig0: ip=**ip**,ip6=**ip**
memory: 16384
meta: creation-qemu=9.0.2,ctime=1735699454
name: DirectAdmin-1
net0: virtio=BC:24:11:EE:14:51,bridge=vmbr0
onboot: 1
ostype: l26
901scsi0: local-zfs:base-1000-disk-0,discard=on,size=50G,ssd=1
scsihw: virtio-scsi-single
serial0: socket
smbios1: uuid=aac7b61d-8215-423a-9a3d-1e09781d0f78
template: 1
vga: serial0
vmgenid: 427c4883-e8ef-4b7e-ab5a-bca5ad5c3172