WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

RE: [Xen-devel] [libvirt] Using libvirt to obtain ip address ofvirtual d

To: "ranjan188" <ran_foru@xxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [libvirt] Using libvirt to obtain ip address ofvirtual domain
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: 2010年2月19日 17:49:01 +1100
Cc:
Delivery-date: 2010年2月18日 22:49:51 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <27634126.post@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <27634126.post@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcqxLcgOaN//+2c0SDWfJf571zvwdAAAFUPA
Thread-topic: [Xen-devel] [libvirt] Using libvirt to obtain ip address ofvirtual domain
>
> Is there any way to get the ip address ??
You could make the DomU write it's IP address to xenstore via a script.
Under Debian you might do this in an 'up' script in
/etc/network/interfaces, for a static IP, and in one of the DHCP hooks
for DHCP. Remember that it could have more than one address, and you
might want the IPv6 address too. I don't know how easy it is to make the
userspace xenstore tools work under DomU but I assume it isn't too
hard...
arpwatch can listen on Dom0's network interface and figure out what MAC
address matches up with what IP address, and log them to syslog. You
could write some packet sniffing magic to do the same thing too. It
would be subject to poisoning via malicious packets though.
The DomU could register its name in DNS and you could look it up that
way (assuming you know the DNS name...)
The DomU could send an SNMP trap or otherwise communicate its address to
Dom0 via the network, assuming it is accessible.
I like the first option. It means that Dom0 could 'watch' for changes,
and it could be extended to provide other info too...
James
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] [libvirt] Using libvirt to obtain ip address of virtual domain , ranjan188
Next by Date: RE: [Xen-devel] Re: PoD issue , Ian Pratt
Previous by Thread: Re: [Xen-devel] [libvirt] Using libvirt to obtain ip address of virtual domain , ranjan188
Next by Thread: [Xen-devel] [PATCH] hvmloader: fix vgatype detecting issue , Noboru Iwamatsu
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /