Run this script using su instead of sudo. The ">" redirects of echo will not work otherwise.
intel_iommu=on (or) amd_iommu=on
rd.driver.pre=vfio-pci
kvm.ignore_msrs=1
MODULES="vfio_pci vfio vfio_iommu_type1 vfio_virqfd"
FILES="/usr/bin/vfio-pci-override.sh"
Hooks="... vfio ...."