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

RE: [Xen-users] IP of a running VM in XEN



Oh !

 I think we are left with only doing a unicast ping which
 is the only method to get to the Xen machines.

 But I found this which may solve (partially) your issue

 suppose your network is 10.1.1.0/24
 you can do
 nmap -sP 10.1.1.10/24 | grep -iB1  Xen

 this will give all IP addresses and mac address of Xen machines with the
  mac addresses of xen type (again if you chose not to change the default
  mac allocation of domUs)

 with the use of vifX number you can map it to your xen machine
 by looking at the mac address using ifconfig vifX.0

PS: The nmap does a ping sweep so ... expect a lot of icmp packets in your network !

On Thu, 30 Apr 2009, Pallab Chakrabarty wrote:



This would not yield my vm ip 10.1.1.130

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

vif4.0

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


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

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


Pls help ..


- regards
   Pallab



-----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 255.255.255.255
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
18:03:00

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