From: Peter Krempa Date: Tue, 29 Sep 2015 16:13:06 +0000 (+0200) Subject: qemu: Perform the disk WWN check only on fresh starts X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=199d17de325b67c86cd65a31fe0e7e58fd158e37;p=libvirt.git qemu: Perform the disk WWN check only on fresh starts Since we'd disallow migration of a guest that would have possibly invalid config but still be able to work, relax the WWN check to be performed only on new starts of the VM. --- diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index f2586a1832..9c107bd528 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -4628,7 +4628,8 @@ int qemuProcessStart(virConnectPtr conn, goto cleanup; } - if (virDomainDefCheckDuplicateDiskWWN(vm->def) < 0) + if (!migrateFrom && !snapshot && + virDomainDefCheckDuplicateDiskWWN(vm->def) < 0) goto cleanup; /* "volume" type disk's source must be translated before