Proxmox restore renaming VMID and preserving linked-clones

Joshua M

New Member
Feb 13, 2024
21
3
3
I create a template with VMID 200. Then from this created another template with VMID 201.

From this, I create a VMs with VMID 202, 203, etc. My understanding is that by using these templates in LVM-thin, this saves space as the duplicated parts are not copied but use CoW strategy. Is this correct?

Now, I backed up all these templates/VMs and copied them to a different proxmox server.

I want to restore them, but change the VMID to begin 300 e.g.

qmrestore 300 vmafile

How do I ensure that the clone/template links are preserved?
 
Having read a bit more, it seems it is not possible with vzdump. Is there recommended way to do backups which preserves linked-clone relationships?
 
Having read a bit more, it seems it is not possible with vzdump. Is there recommended way to do backups which preserves linked-clone relationships?
Hi @Joshua M , the application level backup has no view or understanding into underlying blocks organization. There is no way for such backup to restore clone relationship.
It would only be possible if the backup software integrates with _backend_ storage directly, ie LVM. For that it would need to bypass PVE.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
  • Like
Reactions: Joshua M
You could only restore them from orig storage to new (remote) storage with dd (|ssh ...) but not out of a backup software. After that rename them to your new numbering (or rename directly with dd out=... option).
 
Last edited:
  • Like
Reactions: Joshua M