Thank you John and Joe for your help.

On Oct 13, 2009, at 5:51 PM, John Levon wrote:

On Tue, Oct 13, 2009 at 04:08:14PM -0700, Joseph Mocker wrote:

check out the xenstore utilities. It appears that at least some domain
IPs are stored in xenstore

/usr/lib/xen/bin/xenstore-ls | grep 192
  0 = "192.y.x.229"
  0 = "192.y.x.176"

I don't think its recording all the IPs though, we have two interfaces
in each domain, xenstore contains only the front end interface.

The "ipagent" service runs in a Solaris domU, and writes the IP address
of the primary interface to xenstore. So that's where it comes from.

For the use case for me to find the IP address, the primary interface is what is needed. Is the xenstore utility tool a stable tool or something that can be used in a reliable way? I searched around for more information but could not find for xenstore- ls.

using ARP/RARP might be the easiest way, for you to do it in a
guest-neutral way.

Yep. In fact I'd be interested in integrating something like that in the
tool stack, so we can report this uniformly.  Some arping versions can
supposedly "ping" a target MAC, but only by breaking the spec, as far as
I can see. And some OS types like Win XP won't respond. I'm far from a
networking guy, but I don't think ARP can help here.

You could broadcast ICMP to each of the VNICs, possibly, but again
there's no guarantee a guest would respond.


Yeah, I may have to take this route if the xenstore-ls is not a reliable approach.

Thanks,

Sagun

_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to