Virtio driver is not functional in rocky9

Hi,

I am migrating my KVM VM from CentOS 7 to Rocky 9.3

I have two driver for use: e1000e and virtio

After migration, e1000e is working fine. But virtio driver, it is not working.

Fail Situation:

image

image

Success :

image

image

Can someone help me to fix this issue. ? I suspect there is a configuration issue that brings Virtio is not properly functioning.
This is the driver modules details :

-Thanks

How did you install the Rocky9 server? Sounds to me you are missing some packages, I have a Rocky 9 server running as KVM and all my VM’s with virtio network work fine.

Mine was installed using:

dnf group install "Virtualization Host"

I’d suggest running that command to ensure you have all appropriate packages installed, and then try to use virtio network again.

Hi,

dnf group install “Virtualization Host” - This tools are there.
Can you point the package which is specific to virtio driver.?
(e1000e working fine)

I don’t know, since I don’t have this problem as already said all my VM’s with virtio work fine :slight_smile: I find it weird though it’s not working for you. Hence my suggestion of ensuring you had installed it correctly.

One more thing, did you just copy the xml files for the VM or did you recreate them? Just wondering if perhaps you have old format xml files that worked on CentOS 7 that have something specific here.

I’d be tempted to create a new VM, but instead of installing, just select the qcow2 image that has the existing VM installed in it. That way, we at least know it will be a fresh xml file.

In my VM xml config, the network section looks something like this:

    <interface type='bridge'>
      <mac address='xx:xx:xx:xx:xx:xx'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>

just in case you want to compare it with your old xml VM config file.

Hi,

The ethtool utility is not working properly in Rocky 9.
The most trusted ethtool is giving Speed: unknown result.

Is there a via I can link my NIC to ethtool ?

ethtool will not report the speeds of a virtio interface on a VM.

[root@xmpp01 boot]# ethtool enp1s0
Settings for enp1s0:
        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
[root@xmpp01 boot]# ip a s enp1s0
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 52:54:00:14:9c:39 brd ff:ff:ff:ff:ff:ff
    inet 10.100.0.30/24 brd 10.100.0.255 scope global noprefixroute enp1s0
       valid_lft forever preferred_lft forever
    inet6 2001:470:2903:2002::30/64 scope global noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::5054:ff:fe14:9c39/64 scope link noprefixroute
       valid_lft forever preferred_lft forever

The driver is aware that it’s not a physical device, hence, no speed is reported and there is no need to set an arbitrary speed limit on a virtual interface.

1 Like