Re: [libvirt] Event on domain state change

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

 



On Sat, 10 May 2008, Daniel P. Berrange wrote:

> I don't believe it is possible to distinguish shutdown vs destroy reliably.

If it was initiated by libvirt itself, I guess we can fire it after we
suddenly miss the domain. Destroy would be a direct miss that isn't marked
as crashed. (directly leads to the question: does libvirt clean up crashed
states?)

> In the absence of this support in libvirt you can infer events by periodically
> sampling  virDomainGetInfo and tracking changes in the state - though of
> course you can miss some intermediate states. This is what virt-manager does
> for event tracking.

I was thinking about implementing this TODO...

With a brainstorm session within our group I also pointed out it would be
pretty hard to find a 'within domain' initialised reboot/shutdown. Do you
have any clues on that one?


Stefan

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