<div><div><br><div class="gmail_quote">On Fri, Aug 3, 2012 at 9:49 AM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[please don't top-post on technical lists]<br>
<div class="im"><br>
On 08/03/2012 09:02 AM, Harish Patil wrote:<br>
> Thanks Michal.<br>
> Yes I do not have a screen, the host and the guests are running on an<br>
> embedded device.<br>
> The real requirement is:<br>
> Is there a way that I can register with libvirt for the state change<br>
> notifications in the guest OS?<br>
> Is it possible?<br>
> I need to take some actions in the host based on the guest OS state change.<br>
<br>
</div>How would you do this in a network of bare metal machines?  You may be<br>
better served by setting up actions based on network messages sent by<br>
the guest, the way you would with one bare-metal machine reporting to<br>
another.  Also, this sounds more like something that a guest agent would<br>
have to coordinate at a higher level than libvirt, as there is nothing<br>
inherent in running qemu that tells libvirt what the guest inside the<br>
qemu process is doing.  virt-dmesg' ability to peek at guest memory is<br>
about the best you will be able to do through libvirt.<br>
<br>
>><br></blockquote><div>Thanks Eric. Understand that there is no such facility at the libvirt level. Do you know whether such notification can be received/trapped at the qemu level itself ? I had once checked that QEVENT_RESET event is emitted when the guest OS reboots. </div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>> 1: <a href="http://people.redhat.com/~rjones/virt-dmesg/" target="_blank">http://people.redhat.com/~rjones/virt-dmesg/</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Eric Blake   <a href="mailto:eblake@redhat.com">eblake@redhat.com</a>    <a href="tel:%2B1-919-301-3266" value="+19193013266">+1-919-301-3266</a><br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</font></span></blockquote></div><br></div></div>