libvirt Java - vmware (esx driver)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx
Mobile: +40 745 254 657
Linkedin: cazacugmihai 
Skype: cazacugmihai
Twitter: cazacugmihai

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux