[libvirt] on shutdown

Martin Kletzander mkletzan at redhat.com
Wed Oct 26 15:04:13 UTC 2016


On Wed, Oct 26, 2016 at 04:40:12PM +0200, Ruben Kerkhof wrote:
>On Thu, Oct 20, 2016 at 7:53 PM, Martin Kletzander <mkletzan at redhat.com> wrote:
>> On Thu, Oct 20, 2016 at 11:26:09AM +0200, Ruben Kerkhof wrote:
>>>
>>> Hi all,
>>>
>>> virsh(1) has this to say about virsh shutdown:
>>> "The exact behavior of a domain when it shuts down is set by the
>>> on_shutdown parameter in the domain's XML definition."
>>>
>>> on_shutdown isn't documented in https://libvirt.org/formatdomain.html
>>>
>>>
>>> Is the virsh(1) manpage wrong?
>>>
>>
>> Yes, it most certainly is.  The element is called <on_poweroff/> [1]
>
>Thanks for your reply Martin.
>Interestingly, I checked some of my xml, and they had <on_shutdown/>
>in there next to <on_poweroff/>
>These vms have been running for years and I might have even migrated
>them from Xen's xm configs to libvirt / kvm at one point.
>
>virsh dumpxml confirms that this element is just ignored, so no harm done.
>

Or have you possibly edited the on-disk saved state of libvirt some time
back instead of using virsh edit? =)

>>
>> Patches welcome O:-)
>
>Will do :)
>

Great!

>>
>> Martin
>>
>> [1] https://libvirt.org/formatdomain.html#elementsEvents
>
>Kind regards,
>
>Ruben
>
>--
>libvir-list mailing list
>libvir-list at redhat.com
>https://www.redhat.com/mailman/listinfo/libvir-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20161026/ac774349/attachment-0001.sig>


More information about the libvir-list mailing list