virtio NIC looses connectivity under linux

casalicomputers

Renowned Member
Mar 14, 2015
91
4
73
Hello,
I'm experiencing an annoying issue with virtio networking under linux guests (mostly CentOS 6, 7 and RHEL derivates such as Oracle Linux 6).

It happens that after a while (even days) the vm is up and running, it looses connectivity to the network and I need to change NIC to e1000 and then to virtio again on management console to get it working again.

e1000 does not suffer of this problem, but due to performance needs, I would like to use virtio.
Anyway, it looks like to be a known bug: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1325560


Do you have the same issue? Is there any workaround?


Thanks,
Michele
 
do you run latest version, please post your:

> pveversion -v
 
Here's pveversion's output:
Code:
proxmox-ve-2.6.32: 3.4-163 (running kernel: 2.6.32-41-pve)
pve-manager: 3.4-9 (running version: 3.4-9/4b51d87a)
pve-kernel-2.6.32-41-pve: 2.6.32-163
pve-kernel-2.6.32-37-pve: 2.6.32-150
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.7-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.10-3
pve-cluster: 3.0-19
qemu-server: 3.4-6
pve-firmware: 1.1-4
libpve-common-perl: 3.0-24
libpve-access-control: 3.0-16
libpve-storage-perl: 3.0-33
pve-libspice-server1: 0.12.4-3
vncterm: 1.1-8
vzctl: 4.0-1pve6
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 2.2-11
ksm-control-daemon: 1.1-1
glusterfs-client: 3.5.2-1
 
your system is up2date.
 
that's fine, but I think the issue is more related to running kernel in VMs...
Is there any way to recompile virtio modules with newer versions?

My VMs are currently running latest available kernel from repositories.


Regards,
Michele
 
I am not aware of virtio issue with latest RHEL6 or RHEL7 based (and clones) distributions, so I doubt that this is the cause of your problem.
 
At this time I've been forced to switch back to E1000 which works all the time despite its performance.
Anyway, I don't really know how to troubleshoot this issue. Any suggestion?

Thanks
 
I'm having this happen with a "Rockstor" appliance that seems to be based around centos7, usually when the Virt-Net is under high load.

Currently there is a lot of network traffic between my VM's because I'm trying to use Virtualbox to convert a 200GB vhd file for a ubuntu VM into something proxmox/kvm can use (Because its's a VHD and not VHDX qemu-convert truncates it after 127GB), the VM itself doesn't have enough storage space to store this image so it's downloading/uploading it to the "rockstor" VM with does.