[libvirt] Interface driver and ESX support

Shahar Klein shaharklein at yahoo.com
Tue Sep 8 14:26:26 UTC 2009


mmm

I would like to get host(i.e. node) interface info
as well as domain(guest) network/interface info

I will probably would like to set/manipulate the node and domains as well
but it is simpler to start with the get functions - isn't it?

Did I totally misunderstood the architecture?

shahar





________________________________
From: Daniel Veillard <veillard at redhat.com>
To: Shahar Klein <shaharklein at yahoo.com>
Cc: libvir-list at redhat.com
Sent: Tuesday, September 8, 2009 5:20:34 PM
Subject: Re: [libvirt] Interface driver and ESX support

On Tue, Sep 08, 2009 at 06:56:10AM -0700, Shahar Klein wrote:
> I'm trying to get a feel of the python binding and the esx driver
> 
> Trying to get the number of interfaces hit(as anticipated) a non-support wall:
> 
> Traceback (most recent call last):
>   File "test.py", line 362, in ?
>     vmm.refresh()
>   File "test.py", line 189, in refresh
>     print self.conn.numOfDefinedInterfaces()
>   File "/usr/lib/python2.4/site-packages/libvirt.py", line 1347, in numOfDefinedInterfaces
>     if ret == -1: raise libvirtError ('virConnectNumOfDefinedInterfaces() failed', conn=self)
> libvirt.libvirtError: this function is not supported by the hypervisor: virConnectNumOfDefinedInterfaces
> 
> 
> I'm wondering how to fix it

  /**
  * virConnectNumOfDefinedInterfaces:
  * @conn: pointer to the hypervisor connection
  *
  * Provides the number of defined (inactive) interfaces on the
  * physical host.
  *
  * Returns the number of defined interface found or -1 in case of
  * error
  */

*on thephysical host*

ESX only support remote access basically, so the whole set of Interface
functions are moot. I think it's not what you're looking for anyway.

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090908/43b3db15/attachment-0001.htm>


More information about the libvir-list mailing list