<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div class="im" style="font-family: arial, sans-serif; font-size: 21px; color: rgb(80, 0, 80); background-color: rgb(255, 255, 255); ">Hi libvirt team,</div><div class="im" style="font-family: arial, sans-serif; font-size: 21px; color: rgb(80, 0, 80); background-color: rgb(255, 255, 255); ">    I suffered some troubles. Could you please give me some advices?</div><div class="im" style="background-color: rgb(255, 255, 255); "><font color="#500050" face="arial, sans-serif"><span style="font-size: 21px;">    Our team plan to control more then 100 android emulators, however, we failed</span></font><br><font color="#500050" face="arial, sans-serif"><span style="font-size: 21px;"> to connect to the local android emulators by libvirt. Now we have tested 2 ways.</span></font><br><font color="#500050" face="arial, sans-serif"><span style="font-size: 21px;"> 1. Converting from QEMU args to domain XML. It's a right way to</span></font><br><font color="#500050" face="arial, sans-serif"><span style="font-size: 21px;"> control the local QEMU built manually. But the android emulator based</span></font><br><font color="#500050" face="arial, sans-serif"><span style="font-size: 21px;"> on QEMU modified its command a lot, so we cancelled the way.</span></font><br><font color="#500050" face="arial, sans-serif"><span style="font-size: 21px;"> 2. Using libvirt hypervisor driver for QEMU. Actually we think the URI</span></font><br><font color="#500050" face="arial, sans-serif"><span style="font-size: 21px;"> ---"qemu+tcp://</span></font><a href="http://127.0.0.1:5555/system" target="_blank" style="color: rgb(17, 85, 204); font-family: arial, sans-serif; font-size: 21px; ">127.0.0.1:5555/<wbr>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 color="#500050" face="arial, sans-serif"><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 class="im" style="background-color: rgb(255, 255, 255); "><font color="#500050" face="arial, sans-serif"><span style="font-size: 21px;">error: failed to connect to the hypervisor". We don't figure the reason out now.</span></font></div><div class="im" style="font-family: arial, sans-serif; font-size: 21px; color: rgb(80, 0, 80); background-color: rgb(255, 255, 255); ">   </div><div class="im" style="font-family: arial, sans-serif; font-size: 21px; color: rgb(80, 0, 80); background-color: rgb(255, 255, 255); ">Concerning about such problmes above, I have some questions?</div><div class="im" style="font-family: arial, sans-serif; font-size: 21px; color: rgb(80, 0, 80); background-color: rgb(255, 255, 255); ">   1.Can the libvirt connect to local hypervisors by "qemu+tcp" as described above?</div><div class="im" style="font-family: arial, sans-serif; font-size: 21px; color: rgb(80, 0, 80); background-color: rgb(255, 255, 255); ">   2.If we can't do by "qemu+tcp", could you please give us some suggestoins?</div><div class="im" style="font-family: arial, sans-serif; font-size: 21px; color: rgb(80, 0, 80); background-color: rgb(255, 255, 255); ">   Thanks a lot!</div><div class="im" style="font-family: arial, sans-serif; font-size: 21px; color: rgb(80, 0, 80); background-color: rgb(255, 255, 255); "><br></div><div class="im" style="font-family: arial, sans-serif; font-size: 21px; color: rgb(80, 0, 80); background-color: rgb(255, 255, 255); "><br></div><div class="im" style="font-family: arial, sans-serif; font-size: 21px; color: rgb(80, 0, 80); background-color: rgb(255, 255, 255); "><br></div>                                        </div></body>
</html>