Re: on shutdown

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

 



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@xxxxxxxxxx> 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

Attachment: signature.asc
Description: Digital signature

--
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]