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

Re: [Xen-users] How to fetch Ip address from dom0 of domU?


  • To: "Arun Sharma" <arunain@xxxxxxxxx>
  • From: "trilok nuwal" <tc.nuwal@xxxxxxxxx>
  • Date: Fri, 21 Dec 2007 12:58:51 +0530
  • Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <Xen-users@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 20 Dec 2007 23:29:44 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=JqlvzmIKZJeQURmiFjgu1cyAqO10Xsk9sDae45acENXN9KmoqjQivFT7evVcCtEBgtCaRJjAj0i/ae/ueOUgB6q+vn3jZramhOxUgzbocO7av2NH5Zzze4JuBz6b/qPvo4HbCgxXozcHhQBSfeT2jmiBgJgyVlROhfSH7EGSKjU=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

I have one solution. Attach a storage to each domain.


1 ) attach a storage of 1G to each domain.
2 ) mount this file to dom0.
3) put dom0 ip into this.

4) In Domu create a init.d script. that ping the dom0 at startup using the dom0 ip at storage location.
5) In dom0  "arp cache u can get the ip of the domU ....u can identify this using the domu mac address.

like
# arp -a | grep -i <domU mac>


Try this looks fine. IF domU reboot then if IP chnages still at bootup init.d script will run and in dom0 aro cache u will get the new ip address.


Thanks,
Trilok



On Nov 27, 2007 4:44 PM, Arun Sharma < arunain@xxxxxxxxx> wrote:

Hello All

How to know the ip of domU , being present in dom0 console.?

Present i am having dom0 and one domU up and running. domU is getting ip address from dhcp.

But my question stays , Is there any way to know the ipaddress of domU without logging into domU.
it will be good if i get any api or command which i can kick in dom0 and get the ip of domU.
--


Regards
Arun Sharma
0-934-829-3810

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
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®.