Activate IOMMU and iGPU to Passthrough PCI into VM/CT. It will include a guide to split the iGPU into two parts for those who needed.
nano
function or using SFTP.1nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT
in the configuration file and edit it. The default config looks like this:1GRUB_CMDLINE_LINUX_DEFAULT="quiet"
1GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on i915.enable_gvt=1 iommu=pt pcie_acs_override=downstream,multifunction video=efifb:off video=vesa:off vfio_iommu_type1.allow_unsafe_interrupts=1 kvm.ignore_msrs=1 modprobe.blacklist=radeon,nouveau,nvidia,nvidiafb,nvidia-gpu"
1GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction initcall_blacklist=sysfb_init video=simplefb:off video=vesafb:off video=efifb:off video=vesa:off disable_vga=1 vfio_iommu_type1.allow_unsafe_interrupts=1 kvm.ignore_msrs=1 modprobe.blacklist=radeon,nouveau,nvidia,nvidiafb,nvidia-gpu,snd_hda_intel,snd_hda_codec_hdmi,i915"
grub
configuration file and update the grub
file1update-grub
modules
file1nano /etc/modules
1# Modules required for PCI passthrough
2vfio
3vfio_iommu_type1
4vfio_pci
5vfio_virqfd
6
7# Modules required for Intel GVT-g Split. Do not add if you do not split iGPU
8kvmgt
modules
file will look like this1update-initramfs -u -k all
1dmesg | grep -e DMAR -e IOMMU
DMAR: IOMMU enabled
look like this.With only 4 steps you have successfully activated IOMMU and can passthrough PCI to VM.
In my case, Which PCI do I passthrough in each VM/CT ? I will show you in the next article.
The image below is one of my practice.