[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: jd <jdsw2002@xxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

jd wrote:
Hi
   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
example.
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
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.