mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user