GNS3 / gns3-server

GNS3 server
GNU General Public License v3.0
799 stars 263 forks source link

QEmu with virtio-net-pci : Speed and Duplex #2236

Closed Raizo62 closed 1 year ago

Raizo62 commented 1 year ago

Hi

On a QEmu device with virtio-net-pci, the linux command ethtool says :

        Speed: Unknown!
        Duplex: Unknown! (255)

In QEmu command, you can set the Linkspeed and duplex settings with -device virtio-net,speed=1000,duplex=full

The idea comes from here in 2018

I believe that the values are fakes. The values can be overwritten later with ethtool.

I have tested with QEmu 7.2.0 and a Debian Linux VM.

grossmj commented 1 year ago

We could certainly hard-code the settings, is this what you are asking for?

Raizo62 commented 1 year ago

We could certainly hard-code the settings, is this what you are asking for?

yes.

Raizo62 commented 1 year ago

Now, i don't need it. But I think that is a plus