this post was submitted on 10 Sep 2025
11 points (92.3% liked)

Selfhosted

60723 readers
330 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I have successfully passed through a GPU to a full VM for gaming, but since reverted that to a standalone installation. So I know passthrough is possible/I'm capable of implementing it.

That said, I'm trying to plan out some clustering across at least three machines, two with GPUs and only one of those has any real heft. My understanding is that, with most/normal consumer hardware, there is not an option to split GPU load across multiple containers or VMs; once passthrough is set up, it is dedicated to that instance.

I am wondering, is this true even if I orchestrated spin up/down of the instance? For instance, can LXC1 have the GPU until I shut it down, then spin up LXC2 or VM3 to take over that same GPU without reconfiguring and restarting the host? IIRC configuring the passthrough suggested this wasn't possible but I'll have to experiment to be sure, or rely on Lemmy's expert opinion (-:

My assumption for now is that I just need to have a single guest per GPU (or buy a much more expensive card).

top 7 comments
sorted by: hot top controversial new old
[–] Decipher0771@lemmy.ca 3 points 10 months ago (1 children)

You can use vgpu if you have an older nvidia card, up to 2000 series https://gitlab.com/polloloco/vgpu-proxmox

I don’t think any other cards are nearly as well supported for GPU resource splitting

[–] RedBauble@sh.itjust.works 2 points 10 months ago

Second this. Works really well in a stable distro like Proxmox. Unfortunately however the community is only on discord. With some other patches linked there you can also use the gpu both on the host and split in vGPUs for virtual machines at the same time. I used it for some time on Arch Linux host + Win10 VM for CAD. Worked fine, but frequent arch updates borked everything often. On proxmox I never had such problems.

[–] ryokimball@infosec.pub 3 points 10 months ago (1 children)

I did just find this quote on reddit:

A GPU can only be passed through to the a single VM at time though Proxmox can pass it through to multiple containers (LXC) but they can only run Linux instances.

I'll have to look more into this but sounds promising

https://www.reddit.com/r/homelab/comments/18gu42z/comment/kd2vt5j/

[–] ryokimball@infosec.pub 2 points 10 months ago (1 children)

It even sounds like this is handled on proxmox's side, no need for iommu stuff

[–] Jakeroxs@sh.itjust.works 2 points 10 months ago* (last edited 10 months ago)

The biggest challenge I ran into is keeping the drivers in sync between the host and the LXC, since one is Deb and the other is Ubuntu, the LXC tends to want to update sooner and sometimes that can break the communication.

You edit the LXCs config in proxmox to do it, sec.

Edit: This guide would probably be better then what I did a earlier this year: https://www.virtualizationhowto.com/2025/05/how-to-enable-gpu-passthrough-to-lxc-containers-in-proxmox/

[–] frongt@lemmy.zip 3 points 10 months ago (1 children)

You can probably assign it to multiple VMs or containers, and if it's not available then the VM or container will fail to start.

[–] Luckyfriend222@lemmy.world 1 points 10 months ago

Some NVIDIA licenses will prohibit assigning it to more than one VM.