From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacek Konieczny Subject: [BUG] libxenstore and xentop confused by renamed VIF interfaces Date: Wed, 21 May 2014 09:52:18 +0200 Message-ID: <537C5B32.7050109@jajcus.net> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Mariusz Mazur List-Id: xen-devel@lists.xenproject.org Hi, I have noticed a strange behaviour on 'xl top' =96 it would show no network statistics for some of my domU. It turned out that 'xl top' shows no network ('NETS', 'NETTX(k)', 'NETRX(k)' all '0') when the domU VIF has been renamed by using the 'vifname' option in its xl.cfg file. The 'vifname' option is very useful to have predictable interface names for firewall configuration or network monitoring. The problem is libxenstore under Linux parses /proc/net/dev to extract 'vif.${domid}.*' interfaces, which won't be there, when the interfaces have been renamed. I think the solution would be to look-up the actual interface name or index in sysfs, e.g. under /sys/devices/vif-${domind}-*. Greets, Jacek