]> git.proxmox.com Git - qemu-server.git/commit
sync_disks: Always set 'snapshots' for qcow2 and vmdk volumes
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 9 Mar 2020 12:24:50 +0000 (13:24 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 9 Mar 2020 18:36:45 +0000 (19:36 +0100)
commit5eca0c3643bd22d01557e10062e685a905ef9583
treec51413d4f3c8425097a3b1df89e71402b39f61c4
parentb2d27b3242cc10a898cf9bf294d3c3e6f6f28dc2
sync_disks: Always set 'snapshots' for qcow2 and vmdk volumes

This fixes an issue when migrating a VM with an unused volume with format
qcow2 or vmdk. Since 'snapshots' wasn't set, storage_migrate wanted to
export/import with format raw+size instead. Therefore it used (instead of
just 'dd') 'qemu-img convert', which fails when its output leaves through
a pipe. Upon importing, a second error is present, because the format from
the volume ID doesn't match the format of the stream and there is no
conversion yet.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
LGTM-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/QemuMigrate.pm