<div>Hi,</div>
<div> </div>
<div>Yes 1 more thing that i wanted to add:</div>
<div> </div>
<div>when i tried these commands on a linux machine and tried to connect to libvirtd running on a different remote machine:</div>
<div> </div>
<div><font style="BACKGROUND-COLOR: #ffff66">virt-viewer -c qemu+tcp://FC11-KVM/session 1</font></div>
<div> </div>
<div>and</div>
<div> </div>
<div><font style="BACKGROUND-COLOR: #ffff66">virt-viewer -c qemu://FC11-KVM/session 1</font></div>
<div> </div>
<div>nothing happens and it doesnot give any error also.</div>
<div> </div>
<div>but works fine when i tried</div>
<div><font style="BACKGROUND-COLOR: #ffff66"></font> </div>
<div><font style="BACKGROUND-COLOR: #ffff66">virt-viewer -c qemu+ssh://FC11-KVM/session 1<br></font></div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">the console opens up and i can see view the guest machine.</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">Regards</div>
<div class="gmail_quote">Anuj</div>
<div class="gmail_quote"> </div>
<div class="gmail_quote">On Thu, Sep 24, 2009 at 6:41 PM, anuj rampal <span dir="ltr"><<a href="mailto:rampal.anuj@gmail.com">rampal.anuj@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>Hi,</div>
<div class="im">
<div> </div>
<div><font color="#3366ff">You say above that libvirt "works",</font></div>
<div><font color="#3366ff"></font> </div></div>
<div>Yes, libvirt works.</div>
<div> </div>
<div>By this I mean that I have sucessfully build the libvirt-0.7.0 for windows using mingw.</div>
<div>So now i have libvirt-0.dll and virsh.exe.</div>
<div>Using this dll I can connect to the libvirtd server and call functions successfully.</div>
<div class="im">
<div> </div>
<div><font color="#3366ff">but I want you to try it in a<br>controlled environment.  First off, try some simple virsh commands:<br><br> virsh list<br> virsh -c ... list</font></div>
<div><font color="#3366ff"></font> </div>
<div><font color="#3366ff"><font color="#3366ff">(with various connection strings).</font></font></div>
<div><font color="#3366ff"> </font></div></div>
<div>Even virsh.exe also works fine when connect to TCP connection. and i can call the functions without any issues.</div>
<div> </div>
<div>But with TLS there was some certificate issue but after resolving this issue, im still not able to connect to the libvirt</div>
<div>this is what it says:</div>
<div> </div>
<div><font style="BACKGROUND-COLOR: #ffff66">>virsh.exe -c qemu://FC11-KVM/session</font></div>
<div><font style="BACKGROUND-COLOR: #ffff66">error: unable to connect to libvirtd at 'FC11-KVM': errno=22<br>error: failed to connect to the hypervisor</font></div>
<div> </div>
<div>this is what it says...???? (this is from my vista machine)</div>
<div> </div>
<div>from a different linux machine this works fine... (same uri = <font style="BACKGROUND-COLOR: #ffff66">virsh -c qemu://FC11-KVM/session</font>)</div>
<div> </div>
<div>Other connect strings are not supported on windows (unix, ssh, ext)</div>
<div> </div>
<div><font style="BACKGROUND-COLOR: #ffff66">>virsh.exe -c qemu+ssh://FC11-KVM/session</font></div>
<div><font style="BACKGROUND-COLOR: #ffff66">error: invalid argument in transport methods unix, ssh and ext are not supported<br> under Windows<br>error: failed to connect to the hypervisor</font></div>
<div> </div>
<div>this is what it says.</div>
<div class="im">
<div> </div>
<div><font style="BACKGROUND-COLOR: #3366ff"><font style="BACKGROUND-COLOR: #ffffff" color="#3366ff">Second, set the LIBVIRT_DEBUG environment variable to 1 (I have no<br>idea how you do that in Windows).  Then repeat the above commands.</font><br>
</font></div>
<div> </div></div>
<div>And i dont have to change any configuration on windows because i only have dll and exe thats all....</div>
<div> </div>
<div>every this has to be changed on the libvirt server(linux machine where libvirtd is running).</div>
<div class="im">
<div> </div>
<div><font color="#3366ff">virt-viewer -v -c ... host</font><br></div>
<div> </div></div>
<div>i tried using different connection string on my vista machine</div>
<div> </div>
<div>virt-viewer -c qemu+tcp://FC11-KVM/session gets connected. but hangs and nothing happens.</div>
<div> </div>
<div>virt-viewer -v -c qemu://FC11-KVM/session (i.e. tls) </div>
<div>gives error:</div>
<div><font style="BACKGROUND-COLOR: #ffff66">unable to connect to libvirt qemu://FC11-KVM/session</font></div>
<div> </div>
<div>Regards</div>
<div>Anuj</div>
<div>
<div></div>
<div class="h5">
<div><br> </div>
<div class="gmail_quote">On Thu, Sep 24, 2009 at 1:48 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>On Thu, Sep 24, 2009 at 10:20:32AM +0530, anuj rampal wrote:<br>> yes i cross compiled it from FC11 using mingw.<br>> i have also build libvirt-0.6.2 on the same machine using mingw and it works<br>> fine..... i can call all the function of libvirt from my Vista machine.<br>
><br>> but virt-viewer is not working...<br>><br>> also this only happens when i try to connect using tcp.<br>> with ssh and tls it just says could not connect....??<br><br></div>You say above that libvirt "works", but I want you to try it in a<br>
controlled environment.  First off, try some simple virsh commands:<br><br> virsh list<br> virsh -c ... list<br><br>(with various connection strings).<br><br>Second, set the LIBVIRT_DEBUG environment variable to 1 (I have no<br>
idea how you do that in Windows).  Then repeat the above commands.<br><br>Thirdly, try (with LIBVIRT_DEBUG=1):<br><br> virt-viewer -v -c ... host<br>
<div>
<div></div>
<div><br>Rich.<br><br>--<br>Richard Jones, Emerging Technologies, Red Hat  <a href="http://et.redhat.com/~rjonesvirt-top" target="_blank">http://et.redhat.com/~rjones<br>virt-top</a> is 'top' for virtual machines.  Tiny program with many<br>
powerful monitoring features, net stats, disk stats, logging, etc.<br><a href="http://et.redhat.com/~rjones/virt-top" target="_blank">http://et.redhat.com/~rjones/virt-top</a><br></div></div></blockquote></div><br></div></div>
</blockquote></div><br>