Intel Acceleration Stack Quick Start Guide: Intel FPGA Programmable Acceleration Card D5005

ID 683394
Date 7/09/2021
Document Table of Contents

7.1. Updating Settings Required for VFs

To use SR-IOV and pass a VF to a virtual machine, you must enable the Intel IOMMU driver on the host. Complete the following steps to enable the Intel IOMMU driver:

  1. Add intel_iommu=on to the GRUB_CMDLINE_LINUX entry by updating the GRUB configuration file.
  2. GRUB reads its configuration from either the /boot/grub2/grub.cfg file on traditional BIOS-based machines or from the /boot/efi/EFI/redhat/grub.cfg file on UEFI machines. Depending on your system, execute one of the instructions below:
    • BIOS based machine:
      grub2-mkconfig -o /boot/grub2/grub.cfg
    • UEFI based machine:
      grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
  3. Restart to apply the new GRUB configuration file.
  4. To verify the GRUB update, run the following command:
    cat /proc/cmdline
    The sample output below shows intel_iommu=on on the kernel command line.

    Sample output:

    root=/dev/mapper/cl_<server_name>-root ro intel_iommu=on 
    crashkernel=auto<server_name>/root<server_name>/swap rhgb quiet