[SOLVED] Backup VM from ZFS and Restore

saint_antone

Member
Sep 11, 2021
19
1
8
54
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

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!