Re: [libvirt] Segmentation Fault while connecting to ESX VMware

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

 



2010/3/11  <blbmdsmith@xxxxxxxxxxx>:
>
> Has anyone had a similar issue while trying to connect to VMware's ESX
> systems?
>
> I am running the following command: libvirt.openAuth("esx://IPADDRESS/ ",
> 1,0)
> From what I have read about connecting to an ESX system, libvirt.openAuth
> calls virConnectOpenAuth which needs three arguments: uri, auth, flags
>
> I am not sure what values I should use for auth and flags.

"esx://IPADDRESS/ " <- There is a space after the last slash in the
URI, this may or may not be a problem, you should remove it.

The flags paramater can be 0, but auth must be a list with a
predefined set of items. See examples/python/esxlist.py for how to use
the openAuth() function correctly.

> When I run my python script I get a segmentation fault.  I have tried to run
> the same script on Fedora11 and CentOS 5.4.
> I get the same result on both systems.  I have googled this issue, which
> returned a possible issue with not having libvirt-bin installed.
> The libvirt on both systems are from the original installation of the OS for
> each system.

You see a segfault because Python bindings for the virConnectOpenAuth
function are missing proper type checking for parameters. I'll fix
this.

If you use the openAuth() function with the correct parameters you
won't get a segfault.

Matthias

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]