Virtio HDs and NICs

Cybodog

New Member
May 8, 2009
24
0
1
When making KVMs there is a Virtio option for both HDs and NICs.

I am slightly aware of the KVM efforts to develop virtio devices.

1.What is your recommended device for a HD if the KVM is Linux and the recommended device for a NIC?

2. Same if question only running Windows.
 
When making KVMs there is a Virtio option for both HDs and NICs.

I am slightly aware of the KVM efforts to develop virtio devices.

1.What is your recommended device for a HD if the KVM is Linux and the recommended device for a NIC?

modern Linux Kernels include virtio block and network drivers and this is the preferred way.


2. Same if question only running Windows.

for network, e1000 (with drivers from intel website) and IDE for disks. there are new virtio block and net driver in development and also in beta but not available for public. due to the fact that redhat 5.4 will include official support for windows KVM guests I expect theses drivers will be release together with redhat 5.4 - but I do not know under which license.
 
modern Linux Kernels include virtio block and network drivers and this is the preferred way.

With vanilla KVM, yes.

But Proxmox patches to KVM (fairsched patch to be exact) currently break guests running virtio_net (and guests become slow after some time).

So from experience, I'd recommend running e1000, until at least it's possible not to use fairsched/cpuunits for KVM guests.
 
I have a little question / don't want to start a whole new topic on it /. Today me and some frineds are starting a Counter Strike server ;), but I am not sure what type of virtual NIC to use. The guest os will be Windows XP SP3.
 
I have a little question / don't want to start a whole new topic on it /. Today me and some frineds are starting a Counter Strike server ;), but I am not sure what type of virtual NIC to use. The guest os will be Windows XP SP3.

use e1000 with latest drivers from www.intel.com.
 
if one creates a KVM for Linux guest using IDE can it be switched to virtio disk later?
 
if one creates a KVM for Linux guest using IDE can it be switched to virtio disk later?

Sure, you will have to edit grub/lilo & fstab accordingly on the guest.
Shutdown the guest, on the host edit the corresponding file in /etc/qemu-server/103.conf (sample conf file obviously) and exchange
Code:
bootdisk: ide0
ide0: vm-103-disk.qcow2
to
Code:
bootdisk: virtio0
virtio0: vm-103-disk.qcow2
And start your guest.

Of course the linux guest must have all the virtio drivers available ...
 
With vanilla KVM, yes.

But Proxmox patches to KVM (fairsched patch to be exact) currently break guests running virtio_net (and guests become slow after some time).

So from experience, I'd recommend running e1000, until at least it's possible not to use fairsched/cpuunits for KVM guests.


Is this still the case with using virtio_net under linux? My kvm's are using both virtio for disk and network. They are running Ubuntu as the OS. I have not seen any issues in the last few days. I am curious to know if using virtio_net will still cause issues.

- Garrett
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!