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] IP of a running VM in XEN

To: "'Bhasker C V'" <bcv@xxxxxxxxx>
Subject: RE: [Xen-users] IP of a running VM in XEN
From: "Pallab Chakrabarty" <pchakrabarty@xxxxxxxxxxxxxxx>
Date: Thu, 30 Apr 2009 02:40:29 -0500 (CDT)
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 30 Apr 2009 00:41:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.DEB.1.10.0904300840530.21419@xxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <EMEWEMEW2_DELIMl3Y1aY95478fea1c064724e8ced2, pchakrabarty@xxxxxxxxxxxxxxx, DDBB90D12B1A4DD4AF> <alpine.DEB.1.10.0904300840530.21419@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcnJXv+mSOygNWMeRbuurkuhre8LiQAB0IAg

This would not yield my vm ip

Even arp -n don?t print about the bridge it uses..

phy2:~ # brctl show
bridge name     bridge id               STP enabled     interfaces
eth0            8000.0014c2e50258       no              peth0


phy2:~ # arp -n
Address                  HWtype  HWaddress           Flags Mask
Iface               ether   00:1O:09:D5:24:C8   C
eth0                 ether   00:09:B7:3D:9A:C6   C
eth0                ether   00:0F:29:85:82:8D   C
eth0                ether   00:1S:09:D4:A4:FC   C
eth0                ether   00:13:22:B1:1F:5B   C

You see there's no iface peth0 or vif4.0 got printed with arp ..

But my vm is running in phy2 machine with ip..

Pls help ..

- regards

-----Original Message-----
From: Bhasker C V [mailto:bcv@xxxxxxxxx]
Sent: Thursday, April 30, 2009 1:15 PM
To: Pallab Chakrabarty
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] IP of a running VM in XEN

Classic question.

The DomUs are like machines in the network and it is not
easy to find the IP of the domU machines.

Most of the times, the DomUs are connected to physical ethernet
of Dom0 via bridge. So arp on the bridge must show the ip
addresses in that machine.

I usually do a

ping -b
which will make all the machines to reply. Once this is done, within a
short period if we try to do a arp information

arp -n

you will get a list of ip addresses. The only problem is to sort out
which IPs belong to the DomUs and which are from the other machines
in the network. This is easily done by doing a grep for
the MAC prefix of the xen MAC addresses (if you have used automatic
allocation of MAC addresses to the network cards of domUs )

On Thu, 30 Apr 2009, Pallab Chakrabarty wrote:

> Hi,
> I want to know the IP of a running VM in XEN.. Is there any way to have
> this without login to that VM..
> Any XEN tools ?
> - regards
>    Pallab

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.238 / Virus Database: 270.12.9/2087 - Release Date: 04/29/09

Xen-users mailing list

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