qmrestore / vzrestore failure

CyberWarrior

New Member
May 27, 2014
6
0
1
So i am trying to transfer a win7 VM from one proxmox server to another. I first did a vzdump, and got the file.vma.gz from server 1, then transferred the file to server 2. Both vzrestore and qmrestore will fail to restore the backup image. I have tried both qmrestore and vzrestore and with every variation on the available options for both commands.

My goal is to move one VM from one physical server to another, so maybe i am not using the right process for this. Any help is much appreciated.

Error from qmrestore
Code:
root@proxmox-111:/var/lib/vz# qmrestore vzdump-qemu-108-2014_05_26-01_06_04.vma.gz 108 -storage local -unique
restore vma archive: zcat /var/lib/vz/vzdump-qemu-108-2014_05_26-01_06_04.vma.gz|vma extract -v -r /var/tmp/vzdumptmp371624.fifo - /var/tmp/vzdumptmp371624
CFG: size: 247 name: qemu-server.conf
DEV: dev_id=1 size: 25769803776 devname: drive-ide0
CTIME: Mon May 26 01:06:07 2014
Formatting '/var/lib/vz/images/108/vm-108-disk-1.raw', fmt=raw size=25769803776
new volume ID is 'local:108/vm-108-disk-1.raw'
map 'drive-ide0' to '/var/lib/vz/images/108/vm-108-disk-1.raw' (write zeros = 0)
temporary volume 'local:108/vm-108-disk-1.raw' sucessfuly removed
command 'zcat /var/lib/vz/vzdump-qemu-108-2014_05_26-01_06_04.vma.gz|vma extract -v -r /var/tmp/vzdumptmp371624.fifo - /var/tmp/vzdumptmp371624' failed: unable to write config for VM 108

pveversion -v from server 1
Code:
proxmox-ve-2.6.32: 3.1-109 (running kernel: 2.6.32-23-pve)
pve-manager: 3.1-3 (running version: 3.1-3/dc0e9b0e)
pve-kernel-2.6.32-20-pve: 2.6.32-100
pve-kernel-2.6.32-23-pve: 2.6.32-109
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-1
pve-cluster: 3.0-7
qemu-server: 3.1-1
pve-firmware: 1.0-23
libpve-common-perl: 3.0-6
libpve-access-control: 3.0-6
libpve-storage-perl: 3.0-10
pve-libspice-server1: 0.12.4-1
vncterm: 1.1-4
vzctl: 4.0-1pve3
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-17
ksm-control-daemon: 1.1-1
glusterfs-client: 3.4.0-2


pveversion -v from server 2
Code:
proxmox-ve-2.6.32: 3.1-114 (running kernel: 2.6.32-26-pve)
pve-manager: 3.1-21 (running version: 3.1-21/93bf03d4)
pve-kernel-2.6.32-20-pve: 2.6.32-100
pve-kernel-2.6.32-26-pve: 2.6.32-114
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-2
pve-cluster: 3.0-8
qemu-server: 3.1-8
pve-firmware: 1.0-23
libpve-common-perl: 3.0-8
libpve-access-control: 3.0-7
libpve-storage-perl: 3.0-17
pve-libspice-server1: 0.12.4-2
vncterm: 1.1-4
vzctl: 4.0-1pve4
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-17
ksm-control-daemon: 1.1-1
glusterfs-client: 3.4.1-1
 
do you run a cluster and do you have quorum on the server 2?

post the output of:

> pvecm s
 
Thanks for the response!:D No i do not have clustering setup for these servers (the migration would be a lot easier though).


outpu of pvecm s
Code:
root@proxmox-111:/var/lib/vz# pvecm s
cman_tool: Cannot open connection to cman, is it running ?

that output is the same on both servers.
 
ok, no cluster.

any error in the backup log? I mean you have a restore problem, so fist you need to check if the backup is ok.
 
The backup log looks clean. Yes i have tried different VMID numbers (107, 109, 208), and no luck. I have restarted the server and tried over but same results.

Backup log file.
Code:
May 26 01:06:04 INFO: Starting Backup of VM 108 (qemu)
May 26 01:06:04 INFO: status = stopped
May 26 01:06:04 INFO: update VM 108: -lock backup
May 26 01:06:04 INFO: backup mode: stop
May 26 01:06:04 INFO: ionice priority: 7
May 26 01:06:05 INFO: creating archive '/media/vdrives/backup/vzdump-qemu-108-2014_05_26-01_06_04.vma.gz'
May 26 01:06:05 INFO: starting kvm to execute backup task
May 26 01:06:07 INFO: started backup task 'a7a0e661-b103-4b2c-be10-85e96bee2f29'
May 26 01:06:10 INFO: status: 0% (163446784/25769803776), sparse 0% (90107904), duration 3, 54/24 MB/s
May 26 01:06:14 INFO: status: 1% (262275072/25769803776), sparse 0% (113221632), duration 7, 24/18 MB/s
May 26 01:06:30 INFO: status: 2% (528351232/25769803776), sparse 0% (115830784), duration 23, 16/16 MB/s
May 26 01:06:48 INFO: status: 3% (775421952/25769803776), sparse 0% (118194176), duration 41, 13/13 MB/s
May 26 01:07:05 INFO: status: 4% (1032978432/25769803776), sparse 0% (120348672), duration 58, 15/15 MB/s
May 26 01:07:23 INFO: status: 5% (1288568832/25769803776), sparse 0% (125460480), duration 76, 14/13 MB/s
May 26 01:07:40 INFO: status: 6% (1547042816/25769803776), sparse 0% (126930944), duration 93, 15/15 MB/s
May 26 01:07:59 INFO: status: 7% (1813118976/25769803776), sparse 0% (136847360), duration 112, 14/13 MB/s
May 26 01:08:15 INFO: status: 8% (2079195136/25769803776), sparse 0% (138698752), duration 128, 16/16 MB/s
May 26 01:08:31 INFO: status: 9% (2326528000/25769803776), sparse 0% (141111296), duration 144, 15/15 MB/s
May 26 01:08:43 INFO: status: 10% (2582511616/25769803776), sparse 0% (167211008), duration 156, 21/19 MB/s
May 26 01:09:00 INFO: status: 11% (2850816000/25769803776), sparse 0% (171274240), duration 173, 15/15 MB/s
May 26 01:09:21 INFO: status: 12% (3094085632/25769803776), sparse 0% (172392448), duration 194, 11/11 MB/s
May 26 01:09:35 INFO: status: 13% (3357671424/25769803776), sparse 0% (194215936), duration 208, 18/17 MB/s
May 26 01:09:47 INFO: status: 14% (3626237952/25769803776), sparse 0% (196419584), duration 220, 22/22 MB/s
May 26 01:10:03 INFO: status: 15% (3865706496/25769803776), sparse 0% (199434240), duration 236, 14/14 MB/s
May 26 01:10:15 INFO: status: 16% (4131258368/25769803776), sparse 0% (200351744), duration 248, 22/22 MB/s
May 26 01:10:27 INFO: status: 17% (4382654464/25769803776), sparse 0% (203153408), duration 260, 20/20 MB/s
May 26 01:10:45 INFO: status: 18% (4656332800/25769803776), sparse 0% (204693504), duration 278, 15/15 MB/s
May 26 01:10:58 INFO: status: 19% (4896587776/25769803776), sparse 0% (215277568), duration 291, 18/17 MB/s
May 26 01:11:13 INFO: status: 20% (5170528256/25769803776), sparse 0% (220418048), duration 306, 18/17 MB/s
May 26 01:11:26 INFO: status: 21% (5416419328/25769803776), sparse 0% (224718848), duration 319, 18/18 MB/s
May 26 01:11:43 INFO: status: 22% (5675024384/25769803776), sparse 0% (228737024), duration 336, 15/14 MB/s
May 26 01:11:57 INFO: status: 23% (5933498368/25769803776), sparse 0% (237322240), duration 350, 18/17 MB/s
May 26 01:12:17 INFO: status: 24% (6188171264/25769803776), sparse 0% (238858240), duration 370, 12/12 MB/s
May 26 01:12:33 INFO: status: 25% (6450446336/25769803776), sparse 0% (241324032), duration 386, 16/16 MB/s
May 26 01:12:50 INFO: status: 26% (6712721408/25769803776), sparse 0% (247648256), duration 403, 15/15 MB/s
May 26 01:13:06 INFO: status: 27% (6962413568/25769803776), sparse 0% (250474496), duration 419, 15/15 MB/s
May 26 01:13:21 INFO: status: 28% (7233470464/25769803776), sparse 0% (251957248), duration 434, 18/17 MB/s
May 26 01:13:35 INFO: status: 29% (7480541184/25769803776), sparse 0% (253808640), duration 448, 17/17 MB/s
May 26 01:13:51 INFO: status: 30% (7734296576/25769803776), sparse 0% (255983616), duration 464, 15/15 MB/s
May 26 01:14:00 INFO: status: 33% (8665038848/25769803776), sparse 3% (1019858944), duration 473, 103/18 MB/s
May 26 01:14:03 INFO: status: 37% (9643360256/25769803776), sparse 7% (1892806656), duration 476, 326/35 MB/s
May 26 01:14:09 INFO: status: 38% (9795403776/25769803776), sparse 7% (1902780416), duration 482, 25/23 MB/s
May 26 01:14:21 INFO: status: 39% (10053877760/25769803776), sparse 7% (1908064256), duration 494, 21/21 MB/s
May 26 01:14:25 INFO: status: 43% (11209015296/25769803776), sparse 11% (3002548224), duration 498, 288/15 MB/s
May 26 01:14:28 INFO: status: 45% (11745361920/25769803776), sparse 13% (3470913536), duration 501, 178/22 MB/s
May 26 01:14:34 INFO: status: 46% (11859394560/25769803776), sparse 13% (3472310272), duration 507, 19/18 MB/s
May 26 01:14:47 INFO: status: 47% (12121669632/25769803776), sparse 13% (3474587648), duration 520, 20/19 MB/s
May 26 01:15:05 INFO: status: 48% (12383944704/25769803776), sparse 13% (3477524480), duration 538, 14/14 MB/s
May 26 01:15:24 INFO: status: 49% (12646875136/25769803776), sparse 13% (3487633408), duration 557, 13/13 MB/s
May 26 01:15:39 INFO: status: 50% (12889489408/25769803776), sparse 13% (3492061184), duration 572, 16/15 MB/s
May 26 01:15:57 INFO: status: 51% (13147963392/25769803776), sparse 13% (3501666304), duration 590, 14/13 MB/s
May 26 01:16:13 INFO: status: 52% (13409714176/25769803776), sparse 13% (3503624192), duration 606, 16/16 MB/s
May 26 01:16:26 INFO: status: 53% (13658095616/25769803776), sparse 13% (3507212288), duration 619, 19/18 MB/s
May 26 01:16:43 INFO: status: 54% (13942390784/25769803776), sparse 13% (3511906304), duration 636, 16/16 MB/s
May 26 01:16:53 INFO: status: 55% (14183956480/25769803776), sparse 13% (3513450496), duration 646, 24/24 MB/s
May 26 01:17:07 INFO: status: 56% (14438105088/25769803776), sparse 13% (3523473408), duration 660, 18/17 MB/s
May 26 01:17:17 INFO: status: 57% (14696054784/25769803776), sparse 13% (3523760128), duration 670, 25/25 MB/s
May 26 01:17:26 INFO: status: 58% (14953480192/25769803776), sparse 13% (3529936896), duration 679, 28/27 MB/s
May 26 01:17:40 INFO: status: 59% (15224668160/25769803776), sparse 13% (3548966912), duration 693, 19/18 MB/s
May 26 01:17:48 INFO: status: 60% (15470428160/25769803776), sparse 13% (3606679552), duration 701, 30/23 MB/s
May 26 01:18:02 INFO: status: 61% (15747907584/25769803776), sparse 14% (3617955840), duration 715, 19/19 MB/s
May 26 01:18:10 INFO: status: 62% (15988686848/25769803776), sparse 14% (3837808640), duration 723, 30/2 MB/s
May 26 01:18:14 INFO: status: 63% (16265510912/25769803776), sparse 15% (4114632704), duration 727, 69/0 MB/s
May 26 01:18:18 INFO: status: 64% (16512450560/25769803776), sparse 16% (4361572352), duration 731, 61/0 MB/s
May 26 01:18:21 INFO: status: 71% (18397790208/25769803776), sparse 24% (6246912000), duration 734, 628/0 MB/s
May 26 01:18:24 INFO: status: 85% (21931687936/25769803776), sparse 37% (9780809728), duration 737, 1177/0 MB/s
May 26 01:18:27 INFO: status: 99% (25532825600/25769803776), sparse 51% (13381947392), duration 740, 1200/0 MB/s
May 26 01:18:28 INFO: status: 100% (25769803776/25769803776), sparse 52% (13618921472), duration 741, 236/0 MB/s
May 26 01:18:28 INFO: transferred 25769 MB in 741 seconds (34 MB/s)
May 26 01:18:28 INFO: stopping kvm after backup task
May 26 01:18:32 INFO: archive file size: 4.89GB
May 26 01:18:32 INFO: delete old backup '/media/vdrives/backup/vzdump-qemu-108-2014_05_25-04_15_18.vma'
May 26 01:18:35 INFO: Finished Backup of VM 108 (00:12:31)
 
I ran apt-get upgrade, dist-upgrade, & update before starting this process. As per request i reran all 3 commands, 0 package updated/instlled. So i don't think this will help. I have done another vzdump of the VM and am now in the process of transfering the .vma.gz file to server 2 via scp. I will update when this is done. This will be the fourth .vma.gz image i have made and tried to restore. Thank you again for the help.
 
I ran apt-get upgrade, dist-upgrade, & update before starting this process. As per request i reran all 3 commands, 0 package updated/instlled. So i don't think this will help. I have done another vzdump of the VM and am now in the process of transfering the .vma.gz file to server 2 via scp. I will update when this is done. This will be the fourth .vma.gz image i have made and tried to restore. Thank you again for the help.

Hi, check that you use pve-no-subscription repository. (your packages are proxmox 3.1, it should be able to update to 3.2)
 
ok so the source.list file was wrong it didnt have the pve-no-subscription repositorys. After fixing that and updating the qmrestore worked and restored the VM perfectly, but vzrestore is still failing (weird). Thanks for all the help!:D

Code:
root@promox-111:/var/lib/vz# vzrestore vzdump-qemu-108-2014_05_26-01_06_04.vma.gz 109 -force
you choose to force overwriting VPS config file, private and root directories.
extracting archive '/var/lib/vz/vzdump-qemu-108-2014_05_26-01_06_04.vma.gz'
tar: This does not look like a tar archive
tar: Skipping to next header
Total bytes read: 10240 (10KiB, 174MiB/s)
tar: Exiting with failure status due to previous errors
command 'tar xpf /var/lib/vz/vzdump-qemu-108-2014_05_26-01_06_04.vma.gz --totals --sparse -C /var/lib/vz/private/109' failed: exit code 2
root@promox-111:/var/lib/vz#
 
Last edited:

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!