VM configuration file not found

Edwardjjj

New Member
Jun 2, 2021
2
0
1
34
Greetings, everyone. I'm running a test setup of 3-node proxmox cluster with ceph as backend storage. My cluster worked fine so far, VM migration and HA are all working. But I just encountered some weird behavior when creating VM from a cloud-init template.

Followings are my steps:
1. create cloud-init template on node pve00:
Code:
qm create 9000 --name "ubuntu-2004-cloudinit-template" --memory 2048 --net0 virtio,bridge=vmbr1
qm importdisk 9000 focal-server-cloudimg-amd64.qcow2 HDD_POOL
qm set 9000 --scsihw virtio-scsi-pci --scsi0 HDD_POOL:vm-9000-disk-0
qm set 9000 --ide2 HDD_POOL:cloudinit
qm set 9000 --boot c --bootdisk scsi0
qm template 9000
where HDD_POOL is my rbd storage

2. create VM on the target node pve01:
qm clone 9000 300 --name my-virtual-machine

The commend did not proceed with the following error message:
unable to find configuration file for VM 9000 on node 'pve01'

Is this behavior by design or I'm doing it the wrong way. Please advice.

Thank you!
 
hi,

qm clone 9000 300 --name my-virtual-machine
you can add --target pve01 if VM disk is on shared storage. (but you run this from pve00)
 
hi,


you can add --target pve01 if VM disk is on shared storage. (but you run this from pve00)
Thank you for reply. So for ansible/terraform operations, it is best practice to put all templates on one node?

Best,
Edward