Page 1 of 1

How do I set up VirtIO drivers in Centos 5.2?

Posted: 4. May 2010, 11:01
by UglyPercy
Sorry to ask the question, but I've Googled and Googled, and just cannot find out how to set up VirtIO networking drivers in my 64-bit CentOS 5.2 (Linux 2.6.18) guest so that I can set the VM interfaces to "virtio" and have it work. If someone could please just point me to a document, or just tell me where I find the VirtIO drivers (are they already present in CentOS 5? Are they ISO's or RPM's somewhere? Downloaded separately or part of some larger package like KVM?), I would really appreciate it. Thanks....

UP

Re: How do I set up VirtIO drivers in Centos 5.2?

Posted: 4. May 2010, 14:51
by Perryg
http://www.linux-kvm.org/page/Virtio

This question should be asked in the CentOS forums so you have the proper answer of what to do and how.

Re: How do I set up VirtIO drivers in Centos 5.2?

Posted: 4. May 2010, 20:47
by fixedwheel
UglyPercy wrote:or just tell me where I find the VirtIO drivers (are they already present in CentOS 5?
yes, set the adapter to virtio-net if you want

Code: Select all

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-164.15.1.el5 #1 SMP Wed Mar 17 11:30:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# ifconfig eth0
eth0      Link encap:Ethernet  Hardware Adresse xx:xx:xx:xx:xx:xx  
          inet Adresse:___.___._.___  Bcast:___.___._.___  Maske:255.255.255.0
          inet6 Adresse: ????::???:????:????:????/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2087 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1344 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000 
          RX bytes:2707309 (2.5 MiB)  TX bytes:160969 (157.1 KiB)

[root@localhost ~]# lsmod|grep virt
virtio_net             47297  0 
virtio_pci             41545  0 
virtio_ring            37441  1 virtio_pci
virtio                 39365  2 virtio_net,virtio_pci

Re: How do I set up VirtIO drivers in Centos 5.2?

Posted: 4. May 2010, 22:07
by fixedwheel
JFTR just switched my CentOS 4.8 to virtio-net :mrgreen:

Code: Select all

[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.9-89.0.23.EL #1 Wed Mar 17 06:22:05 EDT 2010 i686 i686 i386 GNU/Linux
[root@localhost ~]# lsmod|grep virt
virtio_net             10945  0
virtio_pci              8385  0
virtio_ring             4033  1 virtio_pci
virtio                  5445  2 virtio_net,virtio_pci

Re: How do I set up VirtIO drivers in Centos 5.2?

Posted: 5. May 2010, 00:19
by UglyPercy
Well, one issue is pretty easy to resolve, once you know it: I didn't have KVM installed, and apparently VirtIO is considered part of KVM....

UP

Re: How do I set up VirtIO drivers in Centos 5.2?

Posted: 5. May 2010, 00:23
by fixedwheel
UglyPercy wrote:I didn't have KVM installed,
i dont have KVM installed either, its the kernel modules of the standard (edit: backports patched by RHEL...) kernel ...