virtio network driver info

mikem12

New Member
Feb 24, 2022
20
1
3
34
Hi All,

How can I get valid interface details from a paravirtualized interface within a VM? ethtool doesn't show anything useful with the para driver...

Code:
ethtool  ens19
        Settings for ens19:
        Supported ports: [  ]
        Supported link modes:   Not reported
        Supported pause frame use: No
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: Unknown!
        Duplex: Unknown! (255)
        Auto-negotiation: off
        Port: Other
        PHYAD: 0
        Transceiver: internal
        Link detected: yes

But with a real driver, I get details on speed, duplex, etc...
Code:
ethtool  enp139s0f1
        Settings for enp139s0f1:
        Supported ports: [ TP ]
        Supported link modes:   100baseT/Full
                                1000baseT/Full
                                10000baseT/Full
        Supported pause frame use: Symmetric
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  100baseT/Full
                                1000baseT/Full
                                10000baseT/Full
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 10000Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        MDI-X: Unknown
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x00000007 (7)
                               drv probe link
        Link detected: yes


Thank you for any clarification you can offer.
 
This would be interesting for me too.

We have several applications which would need the link speed inside the VM:

-> Samba ->it would use multiple Streams only with link speeds of 10Gbit/s and up, and the number of streams is dependent of the Link speed

Same for Lustre and Irods.

As it is of course not very useful to get the link speed from a bridged interface, it would be helpful to have parameters in the VM Setup (like the MAC Adress) which would tell the VM a link speed. Would that be possible?
 
IMO software that is just depending on such (fake/useless) information without allowing to override it manually is rather broken.

But still, virtualization is also about allowing such broken software to exist and work, so I'm fine with adding this as advanced option for virtual VM NICs. It'd be great if one of you could open an enhancement request for this over at https://bugzilla.proxmox.com/ to keep track of it.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!