Clone and migration templates between nodes in pve cluster

Dec 22, 2023
1
0
1
Hi

We have:
- a few nodes in pve 8.1.3 cluster
- each node has one local storage and mounted iscsi target with lvm on the top of it
dir: local path /var/lib/vz content snippets,backup,images,vztmpl,rootdir,iso prune-backups keep-all=1 shared 1 iscsi: msk-cw-iscsi001 portal 10.0.0.68 target iqn.2023-12.nxlocal:dlp.target01 content none lvm: ilvm vgname i-lvm base msk-cw-iscsi001:0.0.1.scsi-360000000000000000e00000000010001 content images,rootdir shared 1

We need:
- be able to clone templates and migrate VMs located on any node with disk volumes on both local or network storage.


I've perfomed some test and here is results:

Case 1 - Cloning template from node1 with volume located on the local storage to node2 local storage.
Storages marked as shared. On the first video in the attachment we see that it copies VM meta to the node2, copies disk volume to the node1 local storage but doesn't transfer it to node2 local storage. In the result we have broken vm on the node2 and unused disk volume on the node1 local storage.
https://youtu.be/_7g02Ok22qY

Case 2 - Cloning template from node1 with volume located on the network storage to node2 local storage.
Storages marked as shared. On the second video in the attachment we see that it copies VM meta to the node2, copies disk volume to the node1 local storage but doesn't transfer it to node2 local storage. In the result we have broken vm on the node2 and unused disk volume on the node1 local storage.
https://youtu.be/R9Dn8a7wFmQ

Btw if we try to choose local storage as target storage while cloning or migrating it always shows only node1 local storage regardless target node we choose.

Case 3 - Migrarting VM from node1 with volume located on the local storage to node2 local storage.

Storages marked as shared. On the third video in the attachment we see that it transfers VM meta to the node2 and do nothing with disk volume. In the result we have broken vm on the node2 and unused disk volume on the node1 local storage.
https://youtu.be/v2LMrO7jHho

Case 4 - Migrarting VM from node1 with volume located on the local storage to node2 local storage.
Storages unmarked as shared. On the fourth video in the attachment we see that now it works fine and transfers not only meta but also disk volume.
https://youtu.be/Yjk-W9P_aMM

So the question is - which features were made by design and where did I mess up with configuration? Why I can't deploy VM's from templates between nodes?
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!