[libvirt-users] libvirt Java - vmware (esx driver)

Mihai Cazacu cazacugmihai at gmail.com
Mon Apr 14 06:45:22 UTC 2014


Hi,

I'm trying to connect to a VMware vCenter Server (Version 5.0.0 Build
1300600) using this code:

class CustomConnectAuth extends ConnectAuth {
>     CustomConnectAuth() {
>
        // credType = ...

        // ...
>     }
>     @Override
>     int callback(Credential[] cred) {
>         // ...
>         return 0
>     }
> }
>


ConnectAuth auth = new CustomConnectAuth()
> Connect conn = new Connect("esx://USERNAME@HOSTNAME/sdk?no_verify=1",
> auth, 0)


and I've got this error message:

libvirt:  error : unsupported configuration: *libvirt was built without the
> 'esx' driver*



If I use the vijava client, the connection works fine.

ServiceInstance serviceInstance = new ServiceInstance(new URL("
> https://HOSTNAME/sdk"), USERNAME, PASSWORD, true)

...



Some environment info:

os: Ubuntu 13.10
> jdk: 1.7.0_51-b13
> Java client: org.libvirt:libvirt:0.5.1



Can you help, please?

Thanks,
Mihai


-- 
Mihai Cazacu
Software Engineer
E-mail: cazacugmihai at gmail.com
Mobile: +40 745 254 657
Linkedin: cazacugmihai <http://www.linkedin.com/in/cazacugmihai>
Skype: cazacugmihai
Twitter: cazacugmihai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20140414/c51f1ab5/attachment.htm>


More information about the libvirt-users mailing list