error with qmrestore

aclweb

Renowned Member
Mar 11, 2009
10
0
66
Hi all !

I have configured a server with Proxmox PVE 1.9
On this server there is 2 VM under Windows 2008 with same configuration :
- 3 HDD (100 + 300 + 300 Go)

I would like to restore an backup of the first VM (backup created just after install and windows updates done) on a new VM with the command :

Code:
qmrestore mybackup.tgz 500

Where "500" is the number of the new VM
Here is the error message of the console :

Code:
ERROR: restore QemuServer backup 'mybackup.tgz' failed - command 'tar xf 'mybackup.tgz' '--to-command=/usr/sbin/qmrestore mybackup.tgz --extract 500'' failed with exit code 2

I read the list of operations done during the restore and i can read :
Code:
INFO: Formatting '/var/lib/vz/images/vm-500-disk1.raw', fmt=raw size=32768

and after :

Code:
INFO: restore data to '/var/lib/vz/images/500/vm-500-disk-1.raw' (107374182400 bytes)

and just after :

Code:
INFO: gzip: stdin: unexpected end of file
INFO: tar: Unexpected EOF in archive
INFO: tar: Error is not recoverable: exiting now

I think the problem is the program restore a backup disk of 100 Gb in a disk of 32 Gb => is-it true ?

Can you help me to resolve this problem.

note : i really need a partition bigger than 32 Gb for the Windows VM.

Regards,

Pascal
 
I think the problem is the program restore a backup disk of 100 Gb in a disk of 32 Gb => is-it true ?

No, that should not be the problem.

Please check if the tar file is OK - what is the output of:

# tar tf mybackup.tgz
 
Hi,
I try the command "tar tf mybackup.tgz", here is the result :

Code:
qemu-server.conf
vm-disk-ide0.raw

gzip: stdin: unexpected end of file
tar: Fin prématurée rencontrée dans l'archive
tar: Erreur non récupérable : arrêt du traitement
 
looks not good, corrupt tgz file.
 
I think so... I create a new vdzump task without compress argument and restore is ok. I thought i'd give it one last try with compress.
 

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!