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:
Success :
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 :
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.
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 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:
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.