[SOLVED] Backup VM from ZFS and Restore

saint_antone

Member
Sep 11, 2021
19
1
8
56
I have a couple of virtual machines running on a ZFS pool. I'd like to convert them to files (qcow, vmdk, etc) so that I can copy them to another PVE host that does not use ZFS.

The PVE hosts are not configured on a cluster and I do not have the PVE backup server.

I tried using backup and restore and move the created vma.gz file, but restoring it on the second host looks for the disks of the first server, which, of course, does not exist on the second PVE host.

Any recommendations to achieve this?
 
you can select a storage when restoring, then the disks will be restored on that storage instead of the (non-existing) original one.
 
Hello @fabian,

Maybe I am doing it the wrong way. I used qmrestore <filename> to do the restoration. Would you be able to provide the correct command I can use to do the restoration where I can also indicate the storage so I do not end up with an error?
 
check out the man qmrestore (or online). The --storage {storage name} parameter is what you want to use to override the target storage where it should be restored to.
 
Hello @aaron
That was very helpful and it worked perfectly well. In case anyone would need this in the future, the full command I used was:
qmrestore <filename.vma> <new_vmid> --storage <storage_name>

Thanks for your help!
 
  • Like
Reactions: aaron