Hi buddy,<br>I wanna to monitor a domain's life cycle event, so i register a event an a<br><br> virConnectDomainEventCallback, the code segment is as below:<br><pre>------------------------<br>int DomainEventCallback(virConnectPtr conn,<br>
                        virDomainPtr dom,<br>                     int event,<br>                    int detail,<br>                   void * opaque){<br>       /*My code */<br>       .......<br>}<br><br>int main(){<br><br>  /* .....*/<br>   virDomainPtr dom = domain.getDomains("xp");<br>
   virFreeCallback      freecb    = NULL;<br>   void *opaque      =NULL;<br>   virConnectDomainEventCallback cb     =DomainEventCallback;<br>   virConnectDomainEventRegisterAny(conn, dom, VIR_DOMAIN_EVENT_ID_LIFECYCLE, VIR_DOMAIN_EVENT_CALLBACK(cb),opaque,freecb);<br>
  /* .....*/<br>}<br><br>but such a error happened:<br><span style="color: rgb(255, 0, 0);">libvir: Remote error : this function is not supported by the connection driver: no event support</span><br><br>and the libvirt version is 0.9; the driver is QEMU-KVM ,version is 0.14.0.<br>
<br>I want to know why this Error will happen? Is the QEMU not support the <br>LIFECYCLE Event ? If it is , how can i monitor the domain's life cycle event( such as started,defined and stopped..)<br><br>Pls help~~<br>
</pre>