How can I find the IPs of the VMs using libvirt function? As of now, I'm thinking of using Nmap to get the MAC address and the ARP it to get the IP. Can someone please help me out? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110909/c3fa1de5/attachment.htm>
On 09/09/2011 01:59 PM, PREETHI RAMESH wrote:> How can I find the IPs of the VMs using libvirt function?First: The VM can manage it's IP adress itself: may be static or dynamic. To know the IP adress, I'd sugges to to use the tools you use to use for a "real" network. But, you are lucky on the host you have "iptables". I suggest you to look at the "LOG" target: http://is.gd/TFy6KQ The MAC & IP will then be visible in the logs (syslog, or somewhere else) -- RMA.