<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi Matthias,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>Now without making any changes,through virsh hyperv connection is going through.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span>On same setup, but when I am trying to connect using java binding to hyperv , it is throwing ---<br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif;
 background-color: transparent; font-style: normal;"><span>libvir: error : invalid argument: libvirt was built without the 'hyperv' driver<br>exception caught:org.libvirt.LibvirtException: invalid argument: libvirt was built without the 'hyperv' driver<br>level:VIR_ERR_ERROR<br>code:VIR_ERR_INVALID_ARG<br>domain:VIR_FROM_NONE<br>hasConn:false<br>hasDom:false<br>hasNet:false<br>message:invalid argument: libvirt was built without the 'hyperv' driver<br>str1:invalid argument: %s<br>str2:libvirt was built without the 'hyperv' driver<br>str3:null<br>int1:-1<br>int2:-1<br></span></div><div><br></div>I think libvirt is built correctly as virsh is able to connect to hyperv correct me if I am wrong.<br>but using java binding it says "<span>libvirt was built without the 'hyperv' driver".<br>Can you pls. tell what I am missing when I am doing it through java binding or is there any setting/configuration which I am missing.<br>Java code - I am using -<br><br>String
 hypervURI = "hyperv://administrator@SBRWINPR/?transport=http";<br>                ConnectAuth ca1 = new ConnectAuthDefault();<br>                hypervconn = new Connect(hypervURI,ca1,0);<br>                System.out.println("HYPERV:"+hypervconn.getCapabilities());<br><br><br>Regards,<br>Deepak<br><br><br></span>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> D e e p a k <deepakmits@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> Matthias Bolte <matthias.bolte@googlemail.com>;
 "libvirt-users@redhat.com" <libvirt-users@redhat.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, 3 May 2013 9:52 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [libvirt-users] hyperv connection failing with libvirt 1.0.4 virsh.<br> </font> </div> <div class="y_msg_container"><br><div id="yiv0841008612"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div><span>Hi Matthias,</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span>Thanks for your reply. <br></span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">After checking all the required configuration. I found that firewall was not enabled and rules for WMI was not enabled.
 I made these changes.</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">But now I am getting this -</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;
background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">virsh # connect hyperv://172.168.1.111/transport=http<br>Enter username for 172.168.1.111 [administrator]: administrator<br>Enter administrator's password for 172.168.1.111:<br>2013-05-03 09:42:48.387+0000: 7235: info : libvirt version: 1.0.4<br>2013-05-03 09:42:48.387+0000: 7235: error : hypervDebugHandler:1444 : openwsman error: NULL response<br>error: Failed to connect to the hypervisor<br>error: internal error Transport error during enumeration: <span style="font-style:italic;">Could not connect (7)</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york,
 times, serif;background-color:transparent;font-style:normal;">Any idea what is going wrong here .<br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Regards,</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;">Deepak<br><span></span></div><div><br></div>  <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Matthias Bolte
 <matthias.bolte@googlemail.com><br> <b><span style="font-weight:bold;">To:</span></b> D e e p a k <deepakmits@yahoo.com> <br><b><span style="font-weight:bold;">Cc:</span></b> "libvirt-users@redhat.com" <libvirt-users@redhat.com> <br> <b><span style="font-weight:bold;">Sent:</span></b> Wednesday, 1 May 2013 4:41 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [libvirt-users] hyperv connection failing with libvirt 1.0.4 virsh.<br> </font> </div> <div class="yiv0841008612y_msg_container"><br>2013/4/29 D e e p a k <<a rel="nofollow" ymailto="mailto:deepakmits@yahoo.com" target="_blank" href="mailto:deepakmits@yahoo.com">deepakmits@yahoo.com</a>><br>><br>> Trying to use virsh for hyperv and getting this.<br>><br>> virsh # connect hyperv://172.168.1.111:5985/?transport=http<br>> Enter username for 172.168.1.111 [administrator]: administrator<br>> Enter administrator's password for
 172.168.1.111:<br>> 2013-04-29 10:36:48.690+0000: 13991:
 error : hypervDebugHandler:1444 : openwsman error: NULL response<br>> error: Failed to connect to the hypervisor<br>> error: internal error Transport error during enumeration: User, password or similar was not accepted (26)<br>><br>> Using libvirt 1.0.4 from source code.<br>> What is going wrong in this hyperv connection ?<br><br>A bit of a guess, but did you configure your Hyper-V server as described?<br><br><a rel="nofollow" target="_blank" href="http://libvirt.org/drvhyperv.html#auth">http://libvirt.org/drvhyperv.html#auth</a><br><br>--<br>Matthias Bolte<br><a rel="nofollow" target="_blank" href="http://photron.blogspot.com/">http://photron.blogspot.com</a><br><br><br></div> </div> </div>  </div></div></div><br><br></div> </div> </div>  </div></body></html>