From a78ea5dfe950a84586a299e8934a40c463c66701 Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Thu, 20 Aug 2015 09:14:34 +0200 Subject: [PATCH 1/1] fix bug #688: prevent copy unused disks in the config. --- PVE/API2/Qemu.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index c4516de..0dd413b 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -2173,6 +2173,9 @@ __PACKAGE__->register_method({ next if $opt eq 'snapshots' || $opt eq 'parent' || $opt eq 'snaptime' || $opt eq 'vmstate' || $opt eq 'snapstate'; + # no need to copy unused images, because VMID(owner) changes anyways + next if $opt =~ m/^unused\d+$/; + # always change MAC! address if ($opt =~ m/^net(\d+)$/) { my $net = PVE::QemuServer::parse_net($value); -- 2.39.2