Are you okay with linux guests? Did you get past the part where you get the list of uuids for the instances and then use the uuids in kvm to pass through that function of the gpu to the guest?
I’ve been a little swamped to do a full walkthrough
On Fedora everything up until spawning up the MIG instances works, nvidia-smi shows they get created and get an UUID assigned. Libvirt/KVM does not find them though.
On Arch I do not find a compute only driver to test this and the full-GPU driver always binds processes on the card keeping me from spawning MIG instances. Even in non display mode.
Enabled MIG Mode for GPU 00000000:22:00.0
Warning: persistence mode is disabled on device 00000000:22:00.0. See the Known Issues section of the nvidia-smi(1) man page for more information. Run with [--help | -h] switch to get more information on how to enable persistence mode.
All done.
Successfully created GPU instance ID 3 on GPU 0 using profile MIG 1g.24gb+gfx (ID 47)
Successfully created compute instance ID 0 on GPU 0 GPU instance ID 3 using profile MIG 1g.24gb (ID 0)
Successfully created GPU instance ID 4 on GPU 0 using profile MIG 1g.24gb+gfx (ID 47)
Successfully created compute instance ID 0 on GPU 0 GPU instance ID 4 using profile MIG 1g.24gb (ID 0)
Successfully created GPU instance ID 5 on GPU 0 using profile MIG 1g.24gb+gfx (ID 47)
Successfully created compute instance ID 0 on GPU 0 GPU instance ID 5 using profile MIG 1g.24gb (ID 0)
Successfully created GPU instance ID 6 on GPU 0 using profile MIG 1g.24gb+gfx (ID 47)
Successfully created compute instance ID 0 on GPU 0 GPU instance ID 6 using profile MIG 1g.24gb (ID 0)
I dont have the gpus in this config anymore to test, haven’t had a chance to get back to the how to, you do have /sys/ setup right? anything under there for mdev devices
?
Directly under sys there is nothing relating to mdev either.
The article I attach relates to vGPU but mentions that there should be a /sys/class/mdev_bus/domain\:bus\:slot.function/mdev_supported_types/ option but for me there is no mdev_bus there either.
It also mentions there should be a /sys/bus/pci/devices/0000:22:00.0/mdev_supported_types/ but it is not there either. It seems like there is nothing at all relating to mdev functionality in Fedora 42 on my computer and it is a pretty fresh install.
Thank you for you help so far, the mdev module is a step in the right direction. I read a thread by Red Hat where somebody mentioned, in regard to vGPU, the mdev devices not showing up and the answer was that maybe the driver not installed correctly since it is apprently up the driver to register the cards with MDEV.
I will setup a couple different distributions and install drivers from different sources in the hopes I can disect this or at least see an emerging pattern of sorts. I am still not 100% if it is a software or hardware issue but since I am limited on hardware I’ll go this route first.
Of course I’ll report on the forum if I figure this out.