IncusOS SR-IOV GPU Increase VFs Num

Hello!

Trying to see if I can slice my iGPU with SRIOV to a VM. This is on one of my IncusOS test machines (updated to latest as of this post) server and using 7.0.0 LTS incus client.

Here are my applications:

  • incus 202605181246
  • gpu-support 202605181246

Here is the iGPU:

GPU:
  NUMA node: 0
  Vendor: Intel Corporation (8086)
  Product: Alder Lake-S GT1 [UHD Graphics 770] (4690)
  PCI address: 0000:00:02.0
  Driver: i915 (7.0.8-zabbly+)
  DRM:
    ID: 0
    Card: card0 (226:0)
    Control: controlD64 (226:0)
    Render: renderD128 (226:128)
  SR-IOV information:
    Current number of VFs: 0
    Maximum number of VFs: 7

Adding GPU to VM failed:

% incus create images:debian/13 v1 --vm
Creating v1
% incus config device add v1 igpu gpu gputype=sriov
Device igpu added to v1
% incus start v1
Error: Failed to start device "igpu": Couldn't find a matching GPU with available VFs
Try `incus info --show-log v1` for more info
% incus info --show-log v1
Error: open /var/lib/incus/logs/v1/qemu.log: no such file or directory

The logs not there but I deduce it’s due to current number of VFs being 0.
I didn’t see how I would raise the number of VFs in IncusOS kernel parameters, I tried editing sriov_numvfs file from a container to raise it from 0 but IncusOS prevent as FS is read-only.

Here are IncusOS debug logs for i915 device:

kernel: i915 0000:00:02.0: [drm] Found alderlake_s (device ID 4690) integrated display version 12.00 stepping C0
kernel: i915 0000:00:02.0: [drm] VT-d active for gfx access
kernel: i915 0000:00:02.0: vgaarb: deactivate vga console
kernel: i915 0000:00:02.0: [drm] Using Transparent Hugepages
kernel: i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/adls_dmc_ver2_01.bin (v2.1)
kernel: i915 0000:00:02.0: [drm] GT0: GuC firmware i915/tgl_guc_70.bin version 70.49.4
kernel: i915 0000:00:02.0: [drm] GT0: HuC firmware i915/tgl_huc.bin version 7.9.3
kernel: i915 0000:00:02.0: [drm] GT0: HuC: authenticated for all workloads
kernel: i915 0000:00:02.0: [drm] GT0: GUC: submission disabled
kernel: i915 0000:00:02.0: [drm] GT0: GUC: SLPC disabled
kernel: i915 0000:00:02.0: [drm] Protected Xe Path (PXP) protected content support initialized
kernel: i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device

If there is no current supported way I will raise a feature request in GH, thank you!

I’m using SR-IOV for an Intel I350 NIC.

In my case, I adjusted the numvfs value on the host and attached the VF as a physical type.

1 Like

The mainline Intel driver doesn’t yet support SR-IOV. Once it does, we will indeed need to add some IncusOS level configuration to bump the VF count and also set the few module options needed to make it all work.

1 Like