I have been working on my process of spinning up new templates/instances from cloud images for various distros. All is going good so far. Where I am struggling is with the --cicustom switch when applying to a VM instance, it appears I am not able to seed the user-data and the network config for the same target VM. I'm sure it's just user error...
I need to pass it the user-data as well as the network config, I have tried it two ways, with both on the same line like:
and as separate lines:
# SET cicustom settings on vm
If I include the network config, for some reason the user-data settings are not applied. So I have it working with only the user-data - and setting the basic IP with --ipconfig0 ip=192.168.0.43/24,gw=192.168.0.1 as a band-aid for now.
Ultimately, I would like the seed the network config from the cloud-init yaml file as this streamlines the automated provisioning process a bit.
Followed this as a guide: https://pve.proxmox.com/wiki/Cloud-Init_Support
"They can all be specified together or mixed and matched however needed."
Trying to figure out what I am doing wrong while applying both the user and network settings. Individually they work, but not both when applied to the same instance. Thought I would post here and see if anyone has had luck getting both user and network settings seeded to the VM instance. Probably just a syntax goof on my part.
Hope everyone is having a wonderful holiday season!
I need to pass it the user-data as well as the network config, I have tried it two ways, with both on the same line like:
Code:
qm set <vmid> --cicustom "user=local:snippets/user-data.yaml,network=local:snippets/v1-network.yaml"
and as separate lines:
# SET cicustom settings on vm
Code:
qm set <vmid> --cicustom "user=local:snippets/user-data.yaml"
qm set <vmid> --cicustom "network=local:snippets/v1-network.yaml" # for some reason breaks above user-data settings...
If I include the network config, for some reason the user-data settings are not applied. So I have it working with only the user-data - and setting the basic IP with --ipconfig0 ip=192.168.0.43/24,gw=192.168.0.1 as a band-aid for now.
Ultimately, I would like the seed the network config from the cloud-init yaml file as this streamlines the automated provisioning process a bit.
Followed this as a guide: https://pve.proxmox.com/wiki/Cloud-Init_Support
"They can all be specified together or mixed and matched however needed."
Trying to figure out what I am doing wrong while applying both the user and network settings. Individually they work, but not both when applied to the same instance. Thought I would post here and see if anyone has had luck getting both user and network settings seeded to the VM instance. Probably just a syntax goof on my part.
Hope everyone is having a wonderful holiday season!