PVE 6.1-11: Impossible to restore VMs from backup files

MartinT

Active Member
Jun 3, 2018
7
0
41
CZ
Hi all.

I did HDD upgrade of two servers with fresh install of PROXMOX and end up with running hypervisors but without VMs. I am unable to restore VM backups from either WebUI or CLI.

WebUI showed me "TASK ERROR: ERROR: couldn't determine format and compression type".

I found this thread and tried restore from CLI, but without success:

Code:
# qmrestore /var/lib/vz/dump/vzdump-qemu-10202002_mat_20200505-201556.vma.lzo 10202002 --storage local --force
ERROR: couldn't determine format and compression type
# cat /var/lib/vz/dump/vzdump-qemu-10202002_mat_20200505-201556.vma.lzo |qmrestore - 10202002 --storage local --force
ERROR: couldn't determine format and compression type

I tried dowgrade qemu-server to 6.1-19 or patch /usr/share/perl5/PVE/QemuServer.pm (more here) - unsuccessfully.

Code:
# pveversion -v
proxmox-ve: 6.1-2 (running kernel: 5.3.18-3-pve)
pve-manager: 6.1-11 (running version: 6.1-11/f2f18736)
pve-kernel-helper: 6.1-9
pve-kernel-5.3: 6.1-6
pve-kernel-5.3.18-3-pve: 5.3.18-3
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.0.3-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
libjs-extjs: 6.0.1-10
libknet1: 1.15-pve1
libproxmox-acme-perl: 1.0.2
libpve-access-control: 6.0-7
libpve-apiclient-perl: 3.0-3
libpve-common-perl: 6.1-1
libpve-guest-common-perl: 3.0-10
libpve-http-server-perl: 3.0-5
libpve-storage-perl: 6.1-7
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.2-1
lxcfs: 4.0.3-pve2
novnc-pve: 1.1.0-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.1-6
pve-cluster: 6.1-8
pve-container: 3.1-4
pve-docs: 6.1-6
pve-edk2-firmware: 2.20200229-1
pve-firewall: 4.1-2
pve-firmware: 3.0-7
pve-ha-manager: 3.0-9
pve-i18n: 2.1-1
pve-qemu-kvm: 4.1.1-4
pve-xtermjs: 4.3.0-1
qemu-server: 6.1-20
smartmontools: 7.1-pve2
spiceterm: 3.1-1
vncterm: 1.6-1
zfsutils-linux: 0.8.3-pve1

I will be grateful for advice, hint or workaround ..

Regards
MartinT
 
I found way, how-to restore at least from CLI with using of patched PVE/QemuServer.pm (qemu-server 6.2-1):

Code:
cp -av /usr/share/perl5/PVE/QemuServer.pm /usr/share/perl5/PVE/QemuServer.pm_ORIG
curl 'https://git.proxmox.com/?p=qemu-server.git;a=blob_plain;f=PVE/QemuServer.pm;hb=ba76fc630bae2b8873acb8079025f7ee44bc21d9' >/usr/share/perl5/PVE/QemuServer.pm
lzop -d -c /var/lib/vz/dump/vzdump-qemu-10202002_mat_20200505-201556.vma.lzo |qmrestore - 10202002 --storage ZFSrpool --force

MartinT
 
your VZDump archives are not named according to the expected naming scheme..
 
I have this issue too but I'm using pipes, can you even name files via pipes ? :oops:

the issue for pipes/STDIN is already fixed in qemu-server >= 6.2-1
 
After upgrade to "qemu-server: 6.2-2", I tested WebUI restore and can confirm - it is working, if filename of backup file complies "naming scheme".

So far, I allways little bit changed name of backup file to reflect name of VM (more helpful for me than ID) - it is not working anymore.

For above mentioned backup file (#1) is necessary to do:

Code:
mv /var/lib/vz/dump/vzdump-qemu-10202002_mat_20200505-201556.vma.lzo /var/lib/vz/dump/vzdump-qemu-10202002-2020_05_05-20_15_56.vma.lzo
 

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!