I've currently have a NFS share mounted to my cluster that stores cloud-init ISOs and Scripts(Snippets).
Everything works cool, I can create a template on my main cluster. I'am attaching the vendor script to my template aswell to install qemu-ga on first boot.
The issue is when i for example have my NFS share down, i cannot start the VMs that were previously cloned from my template.
The documentation says:
I do want to clone VMs and have them completely independent.
Everything works cool, I can create a template on my main cluster. I'am attaching the vendor script to my template aswell to install qemu-ga on first boot.
Code:
$qm set 9003 --cicustom "vendor=cloud-init-iso-manager:snippets/qemuagent-onboot.yaml"
#the content of qemuagent-boot.yaml
#cloud-config
runcmd:
- apt update
- apt install -y qemu-guest-agent
- systemctl start qemu-guest-agent
- reboot
ssh_pwauth: True
The issue is when i for example have my NFS share down, i cannot start the VMs that were previously cloned from my template.
The documentation says:
I actually only need this script to run on the first boot. Is there really no workaround to remove the dependency from the snippet and VM? Maybe there is a possibility to include the script inside the template?The custom config files have to be on a storage that supports snippets and have to be available on all nodes the VM is going to be migrated to. Otherwise the VM won’t be able to start. For example:
I do want to clone VMs and have them completely independent.