Hi all,
I am trying to deploy a VM with a custom QCOW2 image in Proxmox and want to use a custom cloud-init user-data file to provision it.
I have created my custom user-data file and uploaded it under the local:snippets storage as userdata.yaml. Then I applied it to the VM using the command:
However, when I run the command to dump the cloud-init user-data, my custom configuration is not reflected:
I saw somewhere that the command qm cloudinit dump prints the auto-generated config, not the custom one you provide via --cicustom. However, my VM is not picking up the custom data when it boots up.
Is there a way to verify the custom data that I provided to ensure it is being applied correctly?
Could someone please advise what I might be missing or how to troubleshoot this issue further? I have ensured the snippet file is readable and correctly placed.
Thanks in advance!
I am trying to deploy a VM with a custom QCOW2 image in Proxmox and want to use a custom cloud-init user-data file to provision it.
I have created my custom user-data file and uploaded it under the local:snippets storage as userdata.yaml. Then I applied it to the VM using the command:
Code:
qm set 999 --cicustom "user=local:snippets/userdata.yaml"
However, when I run the command to dump the cloud-init user-data, my custom configuration is not reflected:
Code:
qm cloudinit dump 999 user
#cloud-config
hostname: rp-cloud-init
manage_etc_hosts: true
fqdn: rp-cloud-init
chpasswd:
expire: False
users:
- default
package_upgrade: true
I saw somewhere that the command qm cloudinit dump prints the auto-generated config, not the custom one you provide via --cicustom. However, my VM is not picking up the custom data when it boots up.
Is there a way to verify the custom data that I provided to ensure it is being applied correctly?
Could someone please advise what I might be missing or how to troubleshoot this issue further? I have ensured the snippet file is readable and correctly placed.
Thanks in advance!
Last edited: