[CentOS-virt] virtio drivers for Centos 5.8

Benjamin Franz

jfranz at freerun.com
Mon Apr 30 14:23:24 UTC 2012

On 04/30/2012 07:09 AM, aurfalien wrote:
> Hi,
> That didn't work.
> I did mkinitrd --with virtio_blk initrd-2.6.18-308.4.1.el5.img 2.6.8-308.4.1.el5
> It boots fine as long as I leave the dik bus at IDE.
> I even changed the fstab to use /dev/vda# rather then the labels.

Try this:

mkinitrd --with virtio_pci --with virtio_blk -f /boot/initrd-$(uname 
-r).img $(uname -r)

That is what I used when I switched to using virtio for both disk and 

Also, make sure you got the Virtio declaration correct:

<target dev='vda' bus='virtio'/>

Benjamin Franz

More information about the CentOS-virt mailing list