Hi,<br>    In the following libvirt API calling sequence, I always get an error "no domain with matching uuid"<br>        Connect _conn = new Connect("qemu:///system", false);<br>         _conn.domainDefineXML(kvm_guest_xml);<br>
         Domain dm = _conn.domainLookupByName(kvm_guest_name);<br>         dm.create();<br><br>         /* stop, undefine, and re-start the vm*/<br>         dm.shutdown();<br>         dm.undefine();<br>         dm.domainDefineXML(kvm_guest_xml);<br>
         /****A****/<br>         Domain dm = _conn.domainLookupByName(kvm_guest_name); <br>         dm.create()  /********Error!!!!**/<br><br>       if I close the connection, and re-connect qemu at the end of /****A****/, then everything is OK.<br>
       From the log, seems that uuid is not updated immediately, for this connection, the uuid is in the stale state? <br>       I am using libvirt 0.6.3, if it's a bug, does it fixed in the latest code? or Have I need to close the connection for each vm shutdown/re-define?<br>
       I am a newbie in this API, any help are appreciated.<br>