Instructions to disable floppy driver on RHEL/CentOS VMs.

The floppy driver is enabled on some of the RHEL/CentOS Marketplace images and the following error message will show up in the console log:

blk_update_request: I/O error, dev fd0, sector 0

In order to avoid this message, blacklist the driver by adding blacklist floppy to the modprobe configuration:

echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf

Remove the driver and rebuild initramfs:

sudo rmmod floppy
sudo dracut -f -v

After rebooting the VM you should not see that error message anymore.