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@lists.xensource.com http://lists.xensource.com/xen-users
Henning Sprang
2007-Nov-27 11:57 UTC
Re: [Xen-users] How to fetch Ip address from dom0 of domU?
Arun Sharma wrote:> [...] > 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.No. There is nothing like that, as long as you don''t hard-set the ip to a static value when creating the domU. There is intentionally no connection between the two in such a way. You have not more ways to get to know the IP adresse of the running domU as you would have from any other host in the same physical network segment / hanging on the same router/switch/bridge. What exactly is the problem you are trying to solve this way? Maybe you need a more generic management solution? Henning _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sadique Puthen
2007-Nov-27 13:31 UTC
Re: [Xen-users] How to fetch Ip address from dom0 of domU?
Arun Sharma 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.Is there anyway to know the ip address assigned to a physical system by the dhcp server without logging into that system? There are ways, snoop the bridge while starting the domu and find out the ip. But that is very harder than logging in to the domu and running ifconfig. --Sadique> 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@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Christian Horn
2007-Nov-27 19:16 UTC
Re: [Xen-users] How to fetch Ip address from dom0 of domU?
On Tue, Nov 27, 2007 at 07:01:42PM +0530, Sadique Puthen wrote:> > There are ways, snoop the bridge while starting the domu and find out > the ip. But that is very harder than logging in to the domu and running > ifconfig.Also dhcpd can directly log the assignment, and the arp-cache should also contain the ip/mac. Christian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Andy Smith
2007-Nov-28 12:47 UTC
Re: [Xen-users] How to fetch Ip address from dom0 of domU?
Hi, On Tue, Nov 27, 2007 at 04:44:07PM +0530, Arun Sharma wrote:> Hello All > > How to know the ip of domU , being present in dom0 console.?Why not assign the IPs yourself either statically in the domU config or by static DHCP allocation, and then use ebtables rules to prevent domU changing its MAC or IP address(es)? Otherwise since root in the domU can change MAC and IP addresses, you are going to have a hard time being sure. Cheers, Andy _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Arun Sharma
2007-Nov-28 13:34 UTC
Re: [Xen-users] How to fetch Ip address from dom0 of domU?
Hello Is there any way to use XEN API (In Xen 3.1), which provides me function to get IP address of domU. By providing (domU UUID, ID , or domU name) parameter and get the IP address.. Not sure. The idea is to be present in dom0 and fetch the information of domU''s ipaddress (domU getting the ip address from dhcp) :) Regards Arun On Nov 28, 2007 12:46 AM, Christian Horn <chorn@fluxcoil.net> wrote:> On Tue, Nov 27, 2007 at 07:01:42PM +0530, Sadique Puthen wrote: > > > > There are ways, snoop the bridge while starting the domu and find out > > the ip. But that is very harder than logging in to the domu and running > > ifconfig. > > Also dhcpd can directly log the assignment, and the arp-cache should > also contain the ip/mac. > > Christian >-- Regards Arun Sharma 0-934-829-3810 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Stefan de Konink
2007-Nov-28 13:38 UTC
Re: [Xen-users] How to fetch Ip address from dom0 of domU?
On Wed, 28 Nov 2007, Arun Sharma wrote:> Hello > > Is there any way to use XEN API (In Xen 3.1), which provides me function to > get IP address of domU. > By providing (domU UUID, ID , or domU name) parameter and get the IP > address.. Not sure. > > The idea is to be present in dom0 and fetch the information of domU''s > ipaddress (domU getting the ip address from dhcp) :)Just like the MAC fetch from the API this is from the static information you have put in the configuration file. It is *NOT* updated. Stefan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
trilok nuwal
2007-Dec-21 07:28 UTC
Re: [Xen-users] How to fetch Ip address from dom0 of domU?
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@gmail.com> 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@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users