V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
flewover
V2EX  ›  问与答

Xen 虚拟机网卡信息查询

  •  
  •   flewover · 2015-04-22 12:09:17 +08:00 · 2358 次点击
    这是一个创建于 3310 天前的主题,其中的信息可能已经有所发展或是发生改变。

    想查看 XenServer6.2 下边的虚拟机 Ubuntu14.04 的网卡速率等信息,使用 ethtoolmii-tool 等工具都不能返回与普通物理网卡相同的信息。有什么其他的办法么?
    例如使用 ethtool:

    ➜  sudo ethtool eth0
    Settings for eth0:
    Link detected: yes
    
    ➜  sudo ethtool -i eth0
    driver: vif
    version:
    firmware-version:
    bus-info: vif-0
    supports-statistics: yes
    supports-test: no
    supports-eeprom-access: no
    supports-register-dump: no
    

    driver "vif" means it's a Xen Virtual Interface paravirtualized driver.

    普通物理网卡返回

    [apple@localhost ~]$ sudo ethtool em1
    Settings for em1:
        Supported ports: [ FIBRE ]
        Supported link modes:   1000baseT/Full
                                10000baseT/Full
        Supports auto-negotiation: No
        Advertised link modes:  10000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Speed: 10000Mb/s
        Duplex: Full
        Port: Direct Attach Copper
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: off
        Supports Wake-on: g
        Wake-on: d
        Current message level: 0x00000000 (0)
        Link detected: yes
    

    使用 mii-tool

    ➜  sudo mii-tool eth0
     SIOCGMIIPHY on 'eth0' failed: Operation not supported
    
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1595 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 23:59 · PVG 07:59 · LAX 16:59 · JFK 19:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.