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/
Home Products Support Community News


Re: [Xen-users] Obtaining IP address of a DomU

To: jd <jdsw2002@xxxxxxxxx>
Subject: Re: [Xen-users] Obtaining IP address of a DomU
From: Nico Kadel-Garcia <nkadel@xxxxxxxxx>
Date: Wed, 07 Nov 2007 08:48:16 +0000
Cc: XenUsers <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 07 Nov 2007 00:47:33 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=qiVmjYSy+qTimWEzpbcZgMIvcVlo1p7CJE6HzzTy6bo=; b=WFx8numQVSossvlJdbdrj12CK2j8SQvW2su6KQplqZanL9UHozzTRQOwjtjLCiPfwG+TZdF9AFwWosoQgZVzJPZ/pL09jIr/7NaHJC/JYcd2I54/JGTYmeKRyyc/fcVTeL3nABkZCTf+/Z70muYx5yHIM/agFo9g/pLZNKGVj0E=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=aNl20DfXgpzDIL6FLEeNjUjVloIVWRWYMSd5/4wDnmwQ0ABRf7NIZ9+LIlyPTKps0tBbAAw461gNlmOGPZhPl9GzZ+DSaibIBTNWvf0dy0axQQ6O/CAWf6i4KULxL+jllzwMA1BTTZAOfgIsuzkUdWL0tI+/4TCVnsDd5dSuDww=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <427462.58027.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <427462.58027.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird (Windows/20070809)
jd wrote:
   Is there anyway to get the IP address of the DomU
through xml-rpc ? OR any other means ?
You could do "xm console DOMAIN" for the DOMAIN, and log in.

If it's using DHCP, or has a previous and successfully installed network setup, you can scan the available address space or send broadcast packets to the relevant subnet and look for what MAC address matches it in your arp tables.

Also, I tried using the 'IP' directive and 'extra'
param to specify IP for a domU. But it still seems to
use the dhcp. Can anyone throw bit light on how this
works (are these passed as kernel args) ? or have a
working example of setting ip / gateway/ netmask
Your Xen guest domain is resetting it with DHCP. I think you can't override that from Xen, you need to get into the client to reset this behavior.

But if you're using DHCP, why not set your Xen guest domain to have a static MAC address, and hardcode the DHCP results for it?

Xen-users mailing list

<Prev in Thread] Current Thread [Next in Thread>