Creating the overlay for the disk is needed when starting a new VM only.
Additionally for now migration with transient disks is forbidden
anyways.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
qemuProcessAutoDestroyAdd(driver, vm, conn) < 0)
goto cleanup;
- VIR_DEBUG("Setting up transient disk");
- if (qemuSnapshotCreateDisksTransient(vm, asyncJob) < 0)
- goto cleanup;
+ if (!incoming && !snapshot) {
+ VIR_DEBUG("Setting up transient disk");
+ if (qemuSnapshotCreateDisksTransient(vm, asyncJob) < 0)
+ goto cleanup;
+ }
ret = 0;