Re: Get IP address of a running domain

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

 



Hi Adrian,

afaik, there is no a direct function to get the domain ip address if the address is acquired through DHCP

regards, 

Camilo Aguilar

On Tue, Jul 6, 2010 at 3:14 PM, adrian wyssen <wyssenadrian@xxxxxxxxx> 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!
adrian

2010/7/6 Camilo Aguilar <camilo@xxxxxxxxxxxxxxx>

You should take a look in http://libvirt.org/formatdomain.html and http://libvirt.org/html/libvirt-libvirt.html#virDomainGetXMLDesc

regards, 
Camilo Aguilar

On Tue, Jul 6, 2010 at 2:23 PM, adrian wyssen <wyssenadrian@xxxxxxxxx> wrote:
Hi,
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.
Adrian

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



--
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]