...
The SR-IOV drivers are implemented in the kernel. The core implementation is contained in the PCI subsystem, but there must also be driver support for both the Physical Function (PF) and Virtual Function (VF) devices. With an SR-IOV capable device one can allocate VFs from a PF. The VFs appear as PCI devices which are backed on the physical PCI device by resources (queues, and register sets).
Prerequisites
Install Linux Vanilla flavor 7.2
- Install SRIOV supported PCI card
- Enable VT-d / IOMMU in BIOS
Configure the Linux Vanilla flavor kernel to support IOMMU.
Expand |
---|
title | Click here for more information... |
---|
|
- Log on to the Host IP as root user.
Locate the grub.cfg configuration file located in /etc/sysconfig or /etc/default/grub. In this example, the grub.cfg file is found in /etc/default/grub directory. Code Block |
---|
cat /etc/default/grub
cat /etc/sysconfig |
Modify the grub.cfg file. Code Block |
---|
vi /etc/default/grub |
Add intel_iommu=on at the end of GRUB_CMDLINE_LINUX and generate the GRUB configuration file. Code Block |
---|
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet intel_iommu=on"
GRUB_DISABLE_RECOVERY="true" |
To generate an updated grub configuration file, execute below command: Code Block |
---|
grub2-mkconfig -o /boot/grub2/grub.cfg |
Code Block |
---|
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-514.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-514.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-5766a48bb7bf4084832185345c6dcaa7
Found initrd image: /boot/initramfs-0-rescue-5766a48bb7bf4084832185345c6dcaa7.img |
- Reboot the system.
To verify whether intel_iommu=on is added to the grub file, execute below command: Code Block |
---|
cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.10.0-514.el7.x86_64
root=UUID=9cfce69c-8519-4440-bc06-5a6e4f7f2248 ro crashkernel=auto rhgb
quiet LANG=en_US.UTF-8 intel_iommu=on |
|
...