Hey everyone, I'm hoping someone more experience than myself at cloud-init and proxmox can help me out, here. I've got 3 hosts running PVE 6.0 in a cluster with shared NFS storage mounted as "nfs-pve" which supports all storage type (image, iso, snippet, backup, etc).
I'm working on automating my infrastructure with Salt and I'm at a stage where I'd like to simplify the new VM builds. I've created a base install of Debian 9 and installed cloud-init. I tested cloud-init by adding a cloud-init drive through the PVE GUI and the settings were modified as I expected. I then exported those YAML files (qm cloudinit dump {network, meta, user}) and moved them to the 'snippets' folder on nfs-pve.
From there I added the "cicustom" to the config with qm set 9000 --cicustom "user=nfs-pve:snippets/test_u.yaml,network=nfs-pve:snippets/test_n.yaml,meta=nfs-pve:snippets/test_m.yaml". After that I removed the cloud-init drive added through the GUI and started the VM. This caused it to hang at boot and for cloud-init to fail to find any config.
It looks like those snippets are not even being loaded and I'm not sure how to troubleshoot. Is there a way to verify that they were loaded and parsed in some logs somewhere? Or is there something else I've missed as, again, this is my first time working with cloud-init.
I'm working on automating my infrastructure with Salt and I'm at a stage where I'd like to simplify the new VM builds. I've created a base install of Debian 9 and installed cloud-init. I tested cloud-init by adding a cloud-init drive through the PVE GUI and the settings were modified as I expected. I then exported those YAML files (qm cloudinit dump {network, meta, user}) and moved them to the 'snippets' folder on nfs-pve.
From there I added the "cicustom" to the config with qm set 9000 --cicustom "user=nfs-pve:snippets/test_u.yaml,network=nfs-pve:snippets/test_n.yaml,meta=nfs-pve:snippets/test_m.yaml". After that I removed the cloud-init drive added through the GUI and started the VM. This caused it to hang at boot and for cloud-init to fail to find any config.
It looks like those snippets are not even being loaded and I'm not sure how to troubleshoot. Is there a way to verify that they were loaded and parsed in some logs somewhere? Or is there something else I've missed as, again, this is my first time working with cloud-init.