mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
Fix QEMU domain status after restore.
When doing a restore, we were forgetting to update the state file for the VM. That means that if you do a save/restore, then shut down libvirtd, then start it back up, you'll see the state of the guest as "paused", even though it is really running. We were just forgetting a "virDomainSaveStatus" call in the restor path. Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
f5a8f969dd
commit
cbcf5ba7d4
@ -4098,6 +4098,7 @@ static int qemudDomainRestore(virConnectPtr conn,
|
||||
}
|
||||
VIR_FREE(info);
|
||||
vm->state = VIR_DOMAIN_RUNNING;
|
||||
virDomainSaveStatus(conn, driver->stateDir, vm);
|
||||
}
|
||||
ret = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user