NVidia MIG pass to LXC under ProxMox

Hi, first post.
Does anyone had luck passing host’s NVidia MIG to LXC?
There not much in documentation nor could find any decent help by “googling stuff”. Passing GPU itself works just fine, but MIG is a bit of challenge.
GPUs: 2x RTX PRO 6000 Blackwell (seen virt bugs, seen workaround fix)
Env: Proxmox 9.0

1 Like

Wendell wrote an draft of instructions in the following thread how he was apparently able to pass through a MIG instance of an Nvidia RTX Pro 6000 Blackwell Workstation Edition to a virtual machine with kvm/libvirt.

I am trying this too, but have been unsuccessful so far. You mileage may vary. The problem I am facing is that the GPU does not advertise SRIOV capabilities with MDEV and even when I load the mdev kernel module and spawn MIG instances I have no MDEV devices I could pass through.

My guess is that passthrough to LXC would be very similar to how it works for kvm/libvirt. If you manage to make this work please let us know. If you have questions feel free to ask, though no guarantee I’ll be able to answer them.

What you mean with ‘virt bugs’ and ‘workaround’ though? I am not sure I know what you are talking about, could you explain or link please what you are referring to with that.

Sure, bugs:

The workaround mentioned is related to disabling nvidia drm (if I recall properly) so the bug doesn’t appear. Can’t link it but it was found somewhere here and confirmed working.

Found it: