mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
qemu: process: Setup transient disks only when starting a fresh VM
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>
This commit is contained in:
parent
81db8b6d89
commit
06e9b0c28d
@ -7288,9 +7288,11 @@ qemuProcessLaunch(virConnectPtr conn,
|
||||
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user