iGPU passthrough to LXC but keep USB passthrough to my VM?

SammyD

Member
Sep 22, 2022
6
0
6
I know that the passthrough subject has been discussed many times and it seems like there are multiple methods of doing this but I'm trying to figure out how to approach this in my situation.

I have a Home Assistant VM that use a bluetooth and matter device. Both are USB dongles so I added them to my hardware configuration for the VM...
1755482838259.png
This is currently working well.

I also have an LXC that is being used for my Jellyfin media server with no hardware transcoding because the iGPU is not passed to this LXC. I would like to do an iGPU passthrough to this container without doing any harm to my VM.

I've read things about IOMMU being disabled but that may prevent the VM from seeing the USB devices.
I've also read about early binding.
I'm not an expert on this stuff but I do know enough to be dangerous ;)

Can anyone send me in the right direction for getting the LXC to see my iGPU without breaking the VM?
Thanks.

Intel Core i5-7400 with 4 cores
iGPU is an Intel HD Graphics 630 (rev 04)
 
If you want your Container to access the GPU resources, then all you actually do is allow the LXC access to certain files and directories (corresponding to actual hardware access) on the host system.
This has absolutely nothing to do with your USB devices passed to VMs.
So, you clearly are not an expert, however I cannot judge on the question of you being dangerous or not. :-)

Just follow the corresponding jellyfin howto for LXC access to your GPU and you should be fine.
 
Thanks! Will follow your advice.
Because I'm no expert, I'm always nervous about making any system related changes. I've bricked more than a few computers in my lifetime so i guess I'm just dangerous to myself ;)