Hi Matthias,
Thanks for your reply.
After checking all the required configuration. I found that firewall was not enabled and rules for WMI was not enabled. I made these changes.
But now I am getting this -

virsh # connect hyperv://172.168.1.111/transport=http
Enter username for 172.168.1.111 [administrator]: administrator
Enter administrator's password for 172.168.1.111:
2013-05-03 09:42:48.387+0000: 7235: info : libvirt version: 1.0.4
2013-05-03 09:42:48.387+0000: 7235: error : hypervDebugHandler:1444 : openwsman error: NULL response
error: Failed to connect to the hypervisor
error: internal error Transport error during enumeration: Could not connect (7)

Any idea what is going wrong here .

Regards,
Deepak


From: Matthias Bolte <matthias.bolte@googlemail.com>
To: D e e p a k <deepakmits@yahoo.com>
Cc: "libvirt-users@redhat.com" <libvirt-users@redhat.com>
Sent: Wednesday, 1 May 2013 4:41 PM
Subject: Re: [libvirt-users] hyperv connection failing with libvirt 1.0.4 virsh.

2013/4/29 D e e p a k <deepakmits@yahoo.com>
>
> Trying to use virsh for hyperv and getting this.
>
> virsh # connect hyperv://172.168.1.111:5985/?transport=http
> Enter username for 172.168.1.111 [administrator]: administrator
> Enter administrator's password for 172.168.1.111:
> 2013-04-29 10:36:48.690+0000: 13991: error : hypervDebugHandler:1444 : openwsman error: NULL response
> error: Failed to connect to the hypervisor
> error: internal error Transport error during enumeration: User, password or similar was not accepted (26)
>
> Using libvirt 1.0.4 from source code.
> What is going wrong in this hyperv connection ?

A bit of a guess, but did you configure your Hyper-V server as described?

http://libvirt.org/drvhyperv.html#auth

--
Matthias Bolte
http://photron.blogspot.com