[Libvir] More queries

Richard W.M. Jones rjones at redhat.com
Thu Dec 13 15:44:09 UTC 2007


Richard W.M. Jones wrote:
> Katti, Vadiraj (STSD-Openview) wrote:
>>     4. Can get the ip address of each of the guests with any of the
>> APIs
> 
> No.  Guests can send out packets from their interface using any IP 
> address they want.  By convention it's normally set up so that guests 
> get an IP address from a DHCP server, but that's only a convention, not 
> required.  Imagine rephrasing the question as "Can I get the IP address 
> of each machine on my LAN?".

Actually, if I'd thought about that a bit more, I might have said: look 
in your local ARP table, and compare the MAC addresses with the ones in 
the libvirt domain XML.

It's still true to say that there isn't necessarily a fixed 1-1 
relationship between guests' network cards and IP addresses.

Rich.

-- 
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20071213/ce422e9b/attachment-0001.bin>


More information about the libvir-list mailing list