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

Re: [Xen-users] How to know which interface DomU sees the Vif device


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Fajar A. Nugraha" <list@xxxxxxxxx>
  • Date: Fri, 19 Nov 2010 04:04:02 +0700
  • Delivery-date: Thu, 18 Nov 2010 13:06:08 -0800
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

On Fri, Nov 19, 2010 at 12:49 AM, Diego Dias <diego.dias@xxxxxxxxxxx> wrote:
> Is there a way to dinamically know on which network interface domU sees the
> Vif Dom0 "gives" to them.
>
> Ex:
>    on Dom0: Vifname: vif111.0
>    on DomU: vif111.0 on network interface : eth0

On the default setup, it's easy

>    on Dom0: Vifname: vif111.0
>    on DomU: vif111.0 on network interface : eth0

vif111.0 means it's the first interface of a domU with id 111. Run "xm
list" and see which domU has that ID. In the domU side,
vif111.0 will be eth0, vif111.1 will be eth1, and so on.


Another method to look (which is especially useful if you've changed
the interface name) is something like this:
# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  2046     2     r----- 1700592.7
ubuntu-test                                231   128     1     -b----  26724.9

# xm network-list ubuntu-test
Idx BE     MAC Addr.     handle state evt-ch tx-/rx-ring-ref BE-path
0   0  00:16:3E:63:2E:90    0     4      11    1297 /1296
/local/domain/0/backend/vif/231/0

# xenstore-ls /local/domain/0/backend/vif/231/0
(selected output only)
bridge = "br6"
domain = "ubuntu-test"
handle = "0"
frontend = "/local/domain/231/device/vif/0"
vifname = "u-test-eth0"

-- 
Fajar

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