Hello,
(tl;dr: vma create creates unusable vma files)
I run a VMWare ESXi- and an proxmox cluster. For exchanging virtual machines between these systems I tried the proxmox tool vma.
Extracting raw disks from proxmox backups and converting them with qemu-img to vmdk files works, the raw disks boot in ESXi when used in a newly created vm.
For transfering ESXi vms to proxmox I converted the vmdk with qemu-img zu a raw image and tried to create a vma file from this and a qemu-server.conf file. I always ended with an error when I tried to use qmrestore to create a new vm from this file.
To reproduce:
Freshly taken backup:
Now you have an extracted vma file, recreate it:
Now, list the new vma file
What has changed? Look at 'devname'... A restore fails now:
Do I do something wrong, or is the tool buggy?
Regards,
Edi
(tl;dr: vma create creates unusable vma files)
I run a VMWare ESXi- and an proxmox cluster. For exchanging virtual machines between these systems I tried the proxmox tool vma.
Extracting raw disks from proxmox backups and converting them with qemu-img to vmdk files works, the raw disks boot in ESXi when used in a newly created vm.
For transfering ESXi vms to proxmox I converted the vmdk with qemu-img zu a raw image and tried to create a vma file from this and a qemu-server.conf file. I always ended with an error when I tried to use qmrestore to create a new vm from this file.
To reproduce:
Freshly taken backup:
Code:
root@pve02# vma list vzdump-qemu-108-2015_04_15-09_59_54.vma
CFG: size: 319 name: qemu-server.conf
DEV: dev_id=1 size: 34359738368 devname: drive-virtio0
CTIME: Wed Apr 15 09:59:56 2015
root@pve02# vma extract vzdump-qemu-108-2015_04_15-09_59_54.vma vm108
root@pve02# ls -l vm108/
total 30237016
-rw-r--r-- 1 root root 34359738368 2015-04-16 15:13 disk-drive-virtio0.raw
-rw-r--r-- 1 root root 319 2015-04-16 15:01 qemu-server.conf
Now you have an extracted vma file, recreate it:
Code:
root@pve02:vm108/# vma create vm108.vma -c qemu-server.conf disk-drive-virtio0.raw
Now, list the new vma file
Code:
root@pve02:vm108/# vma list vm108.vma
CFG: size: 319 name: qemu-server.conf
DEV: dev_id=1 size: 34359738368 devname: disk0
CTIME: Fri Apr 17 18:39:38 2015
What has changed? Look at 'devname'... A restore fails now:
Code:
root@pve02:vm108/# qmrestore vm108.vma 112
restore vma archive: vma extract -v -r /var/tmp/vzdumptmp104866.fifo /mnt/pve/Backup01/vm108.vma /var/tmp/vzdumptmp104866
CFG: size: 319 name: qemu-server.conf
DEV: dev_id=1 size: 34359738368 devname: disk0
CTIME: Fri Apr 17 18:39:38 2015
command 'vma extract -v -r /var/tmp/vzdumptmp104866.fifo /mnt/pve/Backup01/vm108.vma /var/tmp/vzdumptmp104866' failed: archive does not contain data for drive 'virtio0'
Do I do something wrong, or is the tool buggy?
Regards,
Edi
Last edited: