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

RE: [Xen-users] How to tell which tapX interface belongs to which domain...

  • To: "Christian Horn" <chorn@xxxxxxxxxxxx>
  • From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
  • Date: Tue, 9 Oct 2007 12:00:29 +1000
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 08 Oct 2007 19:01:48 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcgJzELDTIX9LpMZTNCgY87GWqWTnQASyulw
  • Thread-topic: [Xen-users] How to tell which tapX interface belongs to which domain...

> On Mon, Oct 08, 2007 at 03:36:39PM +1000, James Harper wrote:
> > I've put together a script to get the traffic counters for a given
> > interface (eg "vmif_traffic <domain> <if index>") and it works great
> > except when the interface backend is ioemu, because all the traffic
> > through the tapX interface instead of the vif interface.
> I'm just doing the same, and besides not getting i/o yet i also miss
> number of tap-interfaces, would fit into 'xm list -l <domain>' output.
> An idea to get the mapping could be to have a look on what
> are in use bevore domain-creation and after, the interfaces in use now
> are the ones belonging to the domain.
> Had a look at the filehandles that are open for /dev/net/tun and the
> qemu-dm processed, and at the logfiles, without better hints.

I noticed that when I do a 'brctl show', the tap interface is on the
line before the vif interface, so I made use of that. Hopefully it's
always true!


Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.