Propagate speed of network interface to VM

Discussions related to using VirtualBox on Linux hosts.
Post Reply
erik.nellessen
Posts: 1
Joined: 19. Nov 2018, 15:08

Propagate speed of network interface to VM

Post by erik.nellessen »

I want to propagate the speed (usually a value of 10Mb/s, 100Mb/s or 1000Mb/s) from my host machine to my virtual machine. I need to do that because I want to track the speed changing actions of a network device connected to the host.

When I tried to do so, the speed change was visible on the host machine. I used

Code: Select all

ethtool eth0
to check the speed. The output was as expected, the speed changed. On the guest machine, the speed did not change.

To reproduce the scenario, you can run

Code: Select all

ethtool eth0
on the guest machine. It will probably say that the speed is 1000Mb/s. You can then change the speed of the network interface on the host machine by running:

Code: Select all

sudo ethtool -s eth0 speed 100 duplex full autoneg on
By running

Code: Select all

ethtool eth0
on the host machine, you can check that the changed speed applies. Now you can run

Code: Select all

ethtool eth0
also on the guest machine. You will see that the speed is still 1000Mb/s.

Does Virtualbox provide a way to propagate the speed change to the guest? Any help is appreciated!

Host system: Ubuntu 18.04.1 LTS
Guest system: Ubuntu 16.04.4 LTS
Virtualbox Version: 5.2.10
No guest add ons installed
Post Reply