Re: Guest interface info under ESX driver

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

 



Thanks for the speedy replies guys, much appreciated.

On Tue, Feb 1, 2011 at 12:45 AM, Matthias Bolte
<matthias.bolte@xxxxxxxxxxxxxx> wrote:
> Currently libvirt doesn't provide a function to get the IP address of
> a domain's network interface.
>
> Might be a useful addition as libvirt can know/determine the IP
> address in several cases.

It'd be an useful addon to libvirt, as at the moment there are not
many mature Python interface libraries for ESX.

> The domain XML doesn't contain the IP address (yet).
>
> With VMware tools installed in the guest it might be possible to
> obtain the IP address via the vSphere API, I didn't test this yet.

Yes VMware Tools need to be deployed within the guest OS for the IP to
be visible even to ESX itself.

I think I'll resort to using ESX's own API interface to query this
piece of info (possibly via pywbem). An example of such use is
available @ http://www.linuxdynasty.org/howto-list-virtual-machines-using-python-and-cim-part-2.html

Regardless will keep using libvirt for the remainder of functionality
I'm after.

> But libvirt doesn't have a function to expose this information yet.
>
>
> virInterface is for the host network interfaces, this is not what
> you're looking for.
>
> This matrix is quite outdated, and needs to be updated :(
>
> Matthias

-- 
sengork


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

  Powered by Linux