[libvirt] Get IP address of a running domain
camilo at cloudescape.com
Tue Jul 6 19:44:53 UTC 2010
afaik, there is no a direct function to get the domain ip address if the
address is acquired through DHCP
On Tue, Jul 6, 2010 at 3:14 PM, adrian wyssen <wyssenadrian at gmail.com>wrote:
> year, i can find the mac address of the machine with virDomainGetXMLDesc,
> but not the ip. and since the machine is remote, the ip is not in my arp
> cache. is there no other way or can i get the ip out of mac (even if this is
> a "virtual" mac)?
> I must be able to contact the virtual domain via it's IP from within the
> same network.
> thanks for your help!
> 2010/7/6 Camilo Aguilar <camilo at cloudescape.com>
> You should take a look in http://libvirt.org/formatdomain.html and
>> Camilo Aguilar
>> On Tue, Jul 6, 2010 at 2:23 PM, adrian wyssen <wyssenadrian at gmail.com>wrote:
>>> Sorry bothering you again, but I have another question: I did not find
>>> any possibility to get the IP address of a running domain with libvirt. I
>>> can get the domain pointer but I did not find any function in the API
>>> returning my the IP address of the domain. I just can get other information
>>> about the domain with virDomainGetInfo, but no IP. I want to be able to get
>>> either a static assigned IP or a dynamically received IP from a DHCP server.
>>> PS: I use the ESX driver.
>>> Thanks for giving me a hint.
>>> libvir-list mailing list
>>> libvir-list at redhat.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the libvir-list