[SOLVED] Migrating VMs from Proxmox 4

axlf

New Member
Sep 4, 2020
3
0
1
43
Hello,

I have an old Server, running an outdated Proxmox 4 Version which I want to upgrade with a new Version. Since the server hardware is changed aswell I would like to start from scratch with a new Proxmox 6.2 installation. One additional difference is, that the new Server uses ZFS.

I'm not sure, how I can successfully migrate the VMs.

The old server is still up and running.

Proxmox 6.2. on the new server is installed.

I transferred all VM Backups from the old Backup Storge to the new Server.


Trying to simply restores a backup fails

Code:
# qmrestore vzdump-qemu-100-2020_08_31-03_15_01.vma 101
restore vma archive: vma extract -v -r /var/tmp/vzdumptmp16743.fifo /root/vzdump-qemu-100-2020_08_31-03_15_01.vma /var/tmp/vzdumptmp16743
CFG: size: 319 name: qemu-server.conf
DEV: dev_id=1 size: 161061273600 devname: drive-ide0
CTIME: Mon Aug 31 03:15:02 2020
no lock found trying to remove 'create'  lock
command 'set -o pipefail && vma extract -v -r /var/tmp/vzdumptmp16743.fifo /root/vzdump-qemu-100-2020_08_31-03_15_01.vma /var/tmp/vzdumptmp16743' failed: storage 'home' does not exist
I assume this is, because I'm using ZFS now.



What now? How to migrate the VMs?

Thank you,
— axlf
 
After sleeping a night, I think I found my problem.

I haven't specified the storage, where the new vm should go
# qmrestore vzdump-qemu-100-2020_08_31-03_15_01.vma 110 --force true --storage local-zfs


For all newbies (like me) — you can use the compressed archive too. No need to extract manually:
# qmrestore vzdump-qemu-100-2020_08_31-03_15_01.vma.lzo 110 --force true --storage local-zfs