[SOLVED] Migrating VMs from Proxmox 4

axlf

New Member
Sep 4, 2020
3
0
1
42
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
 

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!