Comment on Hardware Acceleration in Linux in Proxmox
areyouevenreal@lemm.ee 10 months ago2-3 clicks? That’s hilarious!
These are the steps it actually takes: 3os.org/infrastructure/…/igpu-passthrough-to-vm/
That’s the best case scenario where it actually works without significant issues, which I am told is rarely the case with iGPUs.
In my case it was considerably more complicated as I have two GPUs from Nvidia (one used for host display outout), so I needed to block specific IDs rather than whole kernel modules.
Plus you lose display access to the Proxmox server which is important if anything goes wrong. You can also only passthrough to one VM at a time. Compared to using LXC you can passthrough to almost unlimited containers, and still have display output for the host system. It almost never makes sense to use PCIe passthrough on an iGPU.
The reason to do passthrough is for gaming on Windows VMs. Another reason is because Nvidia support on Proxmox is poor.
This is a guide to do passthrough with LXC: blog.kye.dev/proxmox-gpu-passthrough
It’s actually a bit less complicated for privileged LXC, as they are having to work around the restrictions of unprivileged LXC containers.
possiblylinux127@lemmy.zip 10 months ago
Its always worked well for me. I passthough my dedicated graphics and USB controller to a Pop os VM and then the integrated graphics to the Jellyfin VM. I initially had to enable virtualization extensions and for the dedicated graphics there was a bit more setup but for the most part it is reasonable.
areyouevenreal@lemm.ee 10 months ago
My point is it’s not actually much (or potentially any) simpler to use PCIe passthrough than using an LXC. Yet it comes with more resource usage and more restrictions. Some hardware is more difficult to pass through, especially with iGPUs. I don’t even think all iGPUs even use PCIe.
possiblylinux127@lemmy.zip 10 months ago
iGPUs are incredibly easy to pass though and are PCIe devices.
areyouevenreal@lemm.ee 10 months ago
Not all of them. Have a look at a Raspberry Pi or Apple Silicon devices. In fact most ARM SoCs I am fairly sure don’t use PCIe for their iGPUs. This makes sense when you think about the unified memory architecture some of these devices use. Just in case you aren’t aware Proxmox does indeed run on a raspberry pi, and I am sure they will gain support for more ARM devices in the future. Though I believe an x86 device with unified memory could also have problems here.