Felix Schwarz
2010-Mar-20 13:32 UTC
[CentOS] How to add virtio modules automatically to initrd in CentOS4?
Hi, I migrated a physical CentOS 4.8 server into a VM on a CentOS 5 KVM host. Everything works fine, I even can use the paravirt drivers for network and disk. However the required kernel modules are not put into initrd somehow. Of course I can call "mkinitrd --with virtioblk ..." manually but that's too easy to forget. I searched the web but I didn't find any similar reports... I found some references to /etc/sysconfig/mkinitrd/ but this doesn't work for me. So how can I make sure that the initrd always includes the virtio stuff? fs
Alexander Dalloz
2010-Mar-20 15:12 UTC
[CentOS] How to add virtio modules automatically to initrd in CentOS4?
Am 20.03.2010 14:32, schrieb Felix Schwarz:> Hi, > > I migrated a physical CentOS 4.8 server into a VM on a CentOS 5 KVM host. > Everything works fine, I even can use the paravirt drivers for network and disk. > > However the required kernel modules are not put into initrd somehow. Of course > I can call "mkinitrd --with virtioblk ..." manually but that's too easy to forget. > > I searched the web but I didn't find any similar reports... I found some > references to /etc/sysconfig/mkinitrd/ but this doesn't work for me. > > So how can I make sure that the initrd always includes the virtio stuff? > > fsCreate the recommended /etc/modprobe.conf entry alias scsi_hostadapter${NUM} virtio_blk and virtio_blk.ko will be picked up automatically. Not sure where virtio_pci is a module dependency of virtio_blk. Please see too http://wiki.libvirt.org/page/Virtio http://kbase.redhat.com/faq/docs/DOC-25441 Alexander
Apparently Analagous Threads
- module kernel for adaptec 2110s in CenOS 4.2
- Could not mount SATA disk as module scsi_hostadapter is not loaded, although present in modules.conf
- Migration from VMWare to HP Blade
- Xen 3.3 unstable on OpenSUSE 10.3 - initrd problem
- Xen 3.0.2 on AMD64 - and initrd fun :)