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

Re: [libvirt] libvirt accidentally destroys guests after being restarted



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


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