Re: libvirt accidentally destroys guests after being restarted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

We finally found the cause of this problem.

When we use "virsh reboot domain", it is actually two calls
qemuMonitorSystemPowerdown() and qemuProcessFakeReboot().

Inside the first call domain stateReason is set to
VIR_DOMAIN_SHUTDOWN_UNKNOWN and then virDomainSaveStatus() is called.

Inside the second call domain stateReason is set to
VIR_DOMAIN_RESUMED_UNPAUSED but domain configuration is not saved into
XML.

After restart of libvirtd domain stateReason SHUTDOWN_UNKNOWN is
restored and domain is automatically shutdown.

In the attached files there are shell log, qemu log, libvirtd log and
proposed patch.

wbr,
Sergey.

Attachment: bug.log
Description: Binary data

Attachment: qemu.log
Description: Binary data

Attachment: libvirtd.log
Description: Binary data

Attachment: 0001-qemu-save-domain-state-to-XML-after-reboot.patch
Description: Binary data

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]