[Rocky Linux 10] How to build and install with DKMS #350
[Rocky Linux 10] How to build and install with DKMS #350
https://github.com/strongtz/i915-sriov-dkms/issues/350
silviuchingaru opened on Sep 24 · edited by silviuchingaru I build on Rocky Linux 10 host and guest with DKMS with steps below. I’ve disabled GVT because it won’t compile on Rocky 10 with it and, as far as I’ve understood, it is deprecated in newer kernels like 6.12.
My enviroment:
Rocky Linux release 10.0 (Red Quartz) Kernel 6.12.0-55.32.1.el10_0.x86_64 12th Gen Intel(R) Core(TM) i7-12700H PC: NUC12SNKi72 Version: M82271-501 On both, host or guest Run the following:
Install DKMS:
dnf install -y epel-release dnf install -y gcc make binutils dkms kernel-devel-$(uname -r) kernel-headers-$(uname -r) elfutils-libelf-devel perl git
Test installation:
dkms –version rpm -q kernel kernel-devel-$(uname -r)
cd /usr/local/src/
git clone https://github.com/strongtz/i915-sriov-dkms.git &&
cd i915-sriov-dkms &&
git checkout 2025.07.22
Get and apply the patch:
curl -LO https://github.com/user-attachments/files/22499662/0001-Rocky-10.patch git am 0001-Rocky-10.patch
Check status before:
dkms status
Build and install with dkms:
PKG=$(awk -F" ‘/^PACKAGE_NAME=/{print $2}’ dkms.conf) VER=$(awk -F" ‘/^PACKAGE_VERSION=/{print $2}’ dkms.conf) dkms add . dkms build $PKG/$VER dkms install $PKG/$VER
Check status after:
dkms status
Info on installed module, should say :
modinfo -n i915
Remove related loaded module(s):
lsmod | egrep ‘^(i915|drm_kms_helper|drm|snd_hda_intel)\b’ modprobe -r snd_hda_intel modprobe -r i915
Load builded module:
modprobe -v i915 modinfo -n i915
Check kernel messages:
dmesg -T
If everything is fine, rebuild init:
dracut -f On a guest machine: Poweroff
poweroff And from host passtrough one or more GPU VF to it with something like:
virsh edit
Inside ... section, probably right after </video>, add:
save, exist and start the guest
virsh start
[root@guest ~]# dmesg | grep i915 [ 1.846086] i915: loading out-of-tree module taints kernel. [ 1.846114] i915: module verification failed: signature and/or required key missing - tainting kernel [ 2.064604] i915: You are using the i915-sriov-dkms module, a ported version of the i915 module with SR-IOV support. [ 2.064850] i915: Please file any bug report at https://github.com/strongtz/i915-sriov-dkms/issues/new. [ 2.065055] i915: Module Homepage: https://github.com/strongtz/i915-sriov-dkms [ 2.065367] i915 0000:0b:00.0: [drm] Found ALDERLAKE_P (device ID 46a6) display version 13.00 stepping D0 [ 2.065615] i915 0000:0b:00.0: Running in SR-IOV VF mode [ 2.066374] i915 0000:0b:00.0: [drm] GT0: GUC: interface version 0.1.0.0 [ 2.067389] i915 0000:0b:00.0: [drm] VT-d active for gfx access [ 2.067583] i915 0000:0b:00.0: [drm] Using Transparent Hugepages [ 2.069029] i915 0000:0b:00.0: [drm] GT0: GUC: interface version 0.1.0.0 [ 2.069533] i915 0000:0b:00.0: [drm] GT0: GUC: interface version 0.1.0.0 [ 2.070195] i915 0000:0b:00.0: GuC firmware PRELOADED version 0.0 submission:SR-IOV VF [ 2.070387] i915 0000:0b:00.0: HuC firmware PRELOADED [ 2.073909] i915 0000:0b:00.0: [drm] Protected Xe Path (PXP) protected content support initialised [ 2.074219] i915 0000:0b:00.0: [drm] PMU not supported for this GPU. [ 2.074514] [drm] Initialised i915 1.6.0 for 0000:0b:00.0 on minor 0 [root@guest ~]# lspci | grep -i vga 00:01.0 VGA compatible controller: Red Hat, Inc. Virtio 1.0 GPU (rev 01) 0b:00.0 VGA compatible controller: Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] (rev 0c) Everything should be fine on guest now, you have installed and passed trough successfully.
0001-Rocky-10.patch