libvirt + ESX (HTTP response code 400 for call to 'Login')

Posted by Coops on Server Fault See other posts from Server Fault or by Coops
Published on 2011-02-28T15:04:30Z Indexed on 2011/02/28 15:26 UTC
Read the original article Hit count: 353

Filed under:
|

I'm trying to connect to a vSphere cluster using the information from the libvirt documentation.

$ virsh -c "vpx://[email protected]/dc1/dc1-cluster-e01/dc1-vsphere-e04/?no_verify=1"
Enter root's password for 10.51.4.11: 
error: internal error HTTP response code 400 for call to 'Login'
error: failed to connect to the hypervisor

I seem to be able to establish a connection, but it fails with a "HTTP code 400". If I provide the incorrect password it fails with a 'login credentials' error, so it looks like I am getting a connection, but it's failing for another reason.

Wireshark is no help as it's all done over SSL/TLS.

Any thoughts folks?

UPDATE: 15:21 28/02/11

FYI - I'm running libvirt-0.8.3 (the Ubuntu package recompiled with the ESX flag enabled).

When I put virsh into debug mode it returns this:

[snip]
Enter root's password for 10.51.4.11: 
15:19:09.011: debug : do_open:1249 : driver 3 ESX returned ERROR
15:19:09.011: debug : virUnrefConnect:294 : unref connection 0x98aa8f8 1
15:19:09.011: debug : virReleaseConnect:249 : release connection 0x98aa8f8
error: internal error HTTP response code 400 for call to 'Login'
error: failed to connect to the hypervisor

© Server Fault or respective owner

Related posts about vmware

Related posts about libvirt