Cloud-InIt file not working.

ColoredBytes

Member
Dec 20, 2023
9
0
6
34
Michigan, USA
rossjm.dev
Hello All,

I have a script that I use to deploy Cloud init VM's works great cept for one part. Passing a Config file through.

I've followed the docs that are offered and still have an issue.

I did a

Bash:
qm cloudinit dump VMID user

Grabbed that info and then made a file in the snippets

then in the script it does a

Bash:
qm set $VM_ID --cicustom "user=local:snippets/userconfig.yaml"

after the script is finished i check the config and nothing. Unless this is not show in the ui and just copied over the VM. I'm at a loss.

I'm Running 8.2 and then VM's are stored on ZFS. This issue has been here before ZFS as well for me

Any help would be appreciated.
 
The "cloudinit dump" only shows the configuration of the built-in cloud-init configuration. If you add a custom snippet - it will not be shown in that command output.

Before the VM starts the custom file is accessed and placed into an ISO file, which is then fed to the VM as a cdrom.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
The "cloudinit dump" only shows the configuration of the built-in cloud-init configuration. If you add a custom snippet - it will not be shown in that command output.

Before the VM starts the custom file is accessed and placed into an ISO file, which is then fed to the VM as a cdrom.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox

So let me understand this correctly whatever i put in that file then feed to the VM is now showed in the UI but is indeed readable from the cloud-init cdrom. I just want to make sure so im not getting conued when tweaking this.
 
So let me understand this correctly whatever i put in that file then feed to the VM is now showed in the UI but is indeed readable from the cloud-init cdrom. I just want to make sure so im not getting conued when tweaking this.
Yes, you understand correctly. The built-in Cloudinit is limited to basic general user needs. It is integrated with PVE API/GUI/CLI and wired into the "dump" command.

Custom files are snippets that are something you maintain on your own, they are not displayed in VM's configuration. It's an advanced-level configuration. You can't even set it via GUI, but can via API.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox