how to check the connection speed for virtio_nic in Linux VM

jagan

Active Member
Feb 11, 2015
93
0
26
india,chennai
Hi,

I have installed a Linux VM with virtio virtual nic. To check the network connection speed I have used ethtool, but the speed it is showing as unknown. When I change the interface model to E1000, the speed it is showing as 1000Mbps.

How do I check the network speed in Linux guest OS for virtio nic interface?

In windows VM in network properties, I can see the speed as 10Gbps for virtio nic and 1Gbps for E1000 nic.
 

t.lamprecht

Proxmox Staff Member
Staff member
Jul 28, 2015
2,132
327
103
South Tyrol/Italy
Hi,

VirtIO has no real fixed speed/bandwidth, any value showing up for the device in the OS is rather "fake".

The virtual NIC is as fast as the system can copy out data from VM to the target, which means it's either limited by the network your Proxmox VE (VM host) is connected too, or the Memory speed if you transmit between VM and Proxmox VE host itself (at least if packets do not get routed out, due to network/address setup).

You can use iperf or iperf3 to get a rough estimate of what bandwidth is available between the VM and another device in the network, e.g., between VM and PVE host:
Code:
# on both (assuming VM is Debian-like)
apt install iperf

# on PVE: start server
iperf -s

# in VM: run test to server
# iperf -c IP-ADDRESS-OF-PVE-HOST
 
  • Like
Reactions: janssensm

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!