qemu-server/PVE
Mira Limbeck e1afab6e28 fix clone_disk with formats other than raw/qcow2
with commit 64d1a6a it's now possible to specify a format other than raw
or qcow2 when creating VMs. This can lead to an error when cloning the
VMs and a cloudinit disk with a different format is attached (e.g.
vmdk).

We use QEMU_FORMAT_RE in drive_is_cloudinit and according to the
QEMU_FORMAT_RE we support 7 different formats.

With this change we add any format other than 'raw' as '.<format>' to the
name and no longer die on any other format. Cloudinit disks with invalid
format are not cloned as the drive is recognized as cdrom, not cloudinit.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
2019-05-16 16:27:07 +02:00
..
API2 fix: #1075: Restore VM template to VM and try to convert to template. 2019-04-24 17:35:32 +00:00
CLI fixup: correct initial prefix 2019-05-13 06:05:51 +00:00
QemuServer followup: fixup comment 2019-05-15 16:33:46 +02:00
VZDump fix #503: print correct offline time for stop mode backups 2019-05-15 16:28:15 +02:00
Makefile add QemuServer::Memory 2016-05-23 10:02:07 +02:00
QemuConfig.pm add correct comment about savevm-start 2019-03-19 09:26:56 +01:00
QemuMigrate.pm migrate: log which local resource causes error 2019-05-07 10:22:12 +00:00
QemuServer.pm fix clone_disk with formats other than raw/qcow2 2019-05-16 16:27:07 +02:00
QMPClient.pm use qemu's blockdev-snapshot functions 2018-09-24 11:12:34 +02:00