dracut-install: ERROR: installing 'virtio' might be displayed during UEK R7 installation
In UEK R7, virtio
isn't built as a module, but is built directly into the
kernel. As such, you don't have to specify virtio
in the dracut configuration
file to add it to initramfs. If you previously had dracut configuration that included this
module, attempting to install UEK R7 displays the following dracut error:
dracut-install: ERROR: installing 'virtio'
dracut: FAILED: /usr/lib/dracut/dracut-install -D
/var/tmp/dracut.FOKWjy/initramfs --kerneldir
/lib/modules/5.15.0-0.21.1.el8uek.x86_64/ -m xen_netfront xen_blkfront
virtio_blk virtio_net virtio virtio_pci virtio_balloon hyperv_keyboard
hv_netvsc hid_hyperv hv_utils hv_storvsc hyperv_fb ahci libahci
dracut-install: ERROR: installing 'virtio'
dracut: FAILED: /usr/lib/dracut/dracut-install -D
/var/tmp/dracut.G2XSGh/initramfs --kerneldir
/lib/modules/5.15.0-0.21.1.el8uek.x86_64/ -m xen_netfront xen_blkfront
virtio_blk virtio_net virtio virtio_pci virtio_balloon hyperv_keyboard
hv_netvsc hid_hyperv hv_utils hv_storvsc hyperv_fb ahci libahci
This error is displayed, regardless of whether you use the yum or rpm command to install UEK R7.
To work around the issue, before installing UEK R7, remove the "virtio" text from the dracut configuration file. Make sure to remove only the "virtio" text, leaving all other "virtio_*" entries intact, for example:
cat /etc/dracut.conf.d/01-dracut-vm.conf
add_drivers+=" xen_netfront xen_blkfront "
add_drivers+=" virtio_blk virtio_net virtio virtio_pci virtio_balloon "
add_drivers+=" hyperv_keyboard hv_netvsc hid_hyperv hv_utils hv_storvsc
hyperv_fb "
add_drivers+=" ahci libahci "
Use the following command to verify that
virtio
is built into the kernel:
grep CONFIG_VIRTIO= /boot/config-5.15.0-0.30.4.el8uek.x86_64
If virtio
is built into the kernel, the
output should be as follows:
CONFIG_VIRTIO=y
(Bug ID 33834972)