Questions about restoring/migrating VM with pve-zsync

mailinglists

Renowned Member
Mar 14, 2012
643
70
93
Hi,

after using pve-zsync to copy data over to other server, it is time to run a (LXC) VM from it.
At first I wanted to create a new VM using the GUI with the same characteristics as old one and then zfs send | zfs receive the syced data to it's disk, but then I found out, that there is config for the VM also backed up in: /var/lib/pve-zsync/backups. So my questions are:

1. Can i just copy this config file from /var/lib/pve-zsync/backups to /etc/pve/lxc/$firstFeeVMid.conf? And system will recognize it as a new LXC VM?

2. Do i have to update "rootfs" parameter from LXC config before I move it to /etc/pve/lxc, so it does not conflict / overlap with possible existing VM disk definitions from other VMs, or can I do it after copying but before starting?

2. Can i just rename synced ZVOL (eg. zfs rename rpool/syncano/subvol-100-disk-1 rpool/data/subvol-100-disk-1) instead of sending / copying it to the new dest (eg. zfs send rpool/syncano/subvol-100-disk-1 | zfs receive pool/data/subvol-100-disk-1)?

Tnx for your input.
 
1. Yes, that should be possible.
2. Don't think it is necessary to change it before you copy it.
3. Might work, perhaps just test it?
 
Last edited by a moderator:
dlimbeck, thank you for your reply.
I have nowhere to test a.t.m.
Hopefully someone else can chip in.