Have you tried <br><br>qemu:///system . If that works then there is problem with tcp. You might not have enabled tcp setting in libvirtd.conf<br><br><div class="gmail_quote">On Fri, Aug 3, 2012 at 2:58 PM, 何鑫 <span dir="ltr"><<a href="mailto:wherethriving@hotmail.com" target="_blank">wherethriving@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr"><div style="color:rgb(80,0,80);font-size:21px;font-family:arial,sans-serif">Hi libvirt team,</div><div style="color:rgb(80,0,80);font-size:21px;font-family:arial,sans-serif">    I suffered some troubles. Could you please give me some advices?</div>
<div style><font face="arial, sans-serif" color="#500050"><span style="font-size:21px">    Our team plan to control more then 100 android emulators, however, we failed</span></font><br><font face="arial, sans-serif" color="#500050"><span style="font-size:21px"> to connect to the local android emulators by libvirt. Now we have tested 2 ways.</span></font><br>
<font face="arial, sans-serif" color="#500050"><span style="font-size:21px"> 1. Converting from QEMU args to domain XML. It's a right way to</span></font><br><font face="arial, sans-serif" color="#500050"><span style="font-size:21px"> control the local QEMU built manually. But the android emulator based</span></font><br>
<font face="arial, sans-serif" color="#500050"><span style="font-size:21px"> on QEMU modified its command a lot, so we cancelled the way.</span></font><br><font face="arial, sans-serif" color="#500050"><span style="font-size:21px"> 2. Using libvirt hypervisor driver for QEMU. Actually we think the URI</span></font><br>
<font face="arial, sans-serif" color="#500050"><span style="font-size:21px"> ---"qemu+tcp://</span></font><a href="http://127.0.0.1:5555/system" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:21px" target="_blank">127.0.0.1:5555/<u></u>system</a><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:21px">"(the IP and port is given by android </span><font face="arial, sans-serif" color="#500050"><span style="font-size:21px">emulator) -- is theoretically available, also, we could connect to the IP successfully by socket's program, but the result is "error: server closed connection: </span></font></div>
<div style><font face="arial, sans-serif" color="#500050"><span style="font-size:21px">error: failed to connect to the hypervisor". We don't figure the reason out now.</span></font></div><div style="color:rgb(80,0,80);font-size:21px;font-family:arial,sans-serif">
   </div><div style="color:rgb(80,0,80);font-size:21px;font-family:arial,sans-serif">Concerning about such problmes above, I have some questions?</div><div style="color:rgb(80,0,80);font-size:21px;font-family:arial,sans-serif">
   1.Can the libvirt connect to local hypervisors by "qemu+tcp" as described above?</div><div style="color:rgb(80,0,80);font-size:21px;font-family:arial,sans-serif">   2.If we can't do by "qemu+tcp", could you please give us some suggestoins?</div>
<div style="color:rgb(80,0,80);font-size:21px;font-family:arial,sans-serif">   Thanks a lot!</div><div style="color:rgb(80,0,80);font-size:21px;font-family:arial,sans-serif"><br></div><div style="color:rgb(80,0,80);font-size:21px;font-family:arial,sans-serif">
<br></div><div style="color:rgb(80,0,80);font-size:21px;font-family:arial,sans-serif"><br></div>                                          </div></div>
<br>_______________________________________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br></blockquote></div><br><br clear="all"><br>-- <br><div>Thanks </div><div><br></div>
Vipul Borikar <br><div>"Our task must be to free ourselves...by widening our circle of compassion to embrace all living creatures and the whole of nature and its beauty."</div><br>