Comment on Hardware Acceleration in Linux in Proxmox
possiblylinux127@lemmy.zip 8 months agoIt takes about 2-3min. What do you mean impossible? LXC is likely faster but it takes more setup.
Comment on Hardware Acceleration in Linux in Proxmox
possiblylinux127@lemmy.zip 8 months agoIt takes about 2-3min. What do you mean impossible? LXC is likely faster but it takes more setup.
areyouevenreal@lemm.ee 8 months ago
2-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 8 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 8 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 8 months ago
iGPUs are incredibly easy to pass though and are PCIe devices.