Linux i915 driver (dkms module) with SR-IOV support for linux 6.8-6.15(-rc5)
30 5 月, 2025 | 添加评论
Linux Guest Installation Steps (Tested Ubuntu 24.04/Kernel 6.8)
We will need to run the same driver under Linux guests.
1.Install build tools
apt install build-* dkms linux-headers-$(uname -r) linux-modules-extra-$(uname -r)
2.Download and install the .deb
wget -O /tmp/i915-sriov-dkms_2025.05.18_amd64.deb "https://github.com/strongtz/i915-sriov-dkms/releases/download/2025.05.18/i915-sriov-dkms_2025.05.18_amd64.deb"
dpkg -i /tmp/i915-sriov-dkms_2025.05.18_amd64.deb
3.Update kernel parameters
nano /etc/default/grub
and change
GRUB_CMDLINE_LINUX_DEFAULT
to
i915.enable_guc=3 module_blacklist=xe
or add to it if you have other arguments there already.
Example:
GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on i915.enable_guc=3 module_blacklist=xe"
4.Once that’s done, update grub and initramfs, then reboot.
update-grub
update-initramfs -u
5.Once the VM is back up again, do
dmesg | grep i915
to see if your VF is recognized by the kernel. You should also check if xe is blacklisted correctly by running
lspci -nnk
to see which driver is in use by the VF.
6.Optionally, install vainfo by running
apt install vainfo
then do
vainfo
to see if the iGPU has been picked up by the VAAPI.
7.If OpenCL is desired:
apt install intel-opencl-icd
apt install clinfo
clinfo