Gpu Passtrough on Bazzite
Hello, I have a question. I am trying to set up a VM and I want to use my 3090 in it. The problem is that I don't know much about Gpu passtrough and how to set it up. Espetially not on Bazzite. I know that if I run "ujust setup-virtualization" and enable vfio it says that I'm on my own with gpu passtrough. But maybe someone here knows how to use it. If so, I would be happy if you could tell me π
19 Replies
Before going deeper, do you have 2 GPUs? Trying to do GPU passthrough on a single GPU is not a pleasant experience from what I've read.
Single
Can I use an Amd Gpu and a Nvidia one simultaniously
Probably worth having a look at the discussion in this thread https://discord.com/channels/1072614816579063828/1275480474046693460 if you get stuck on anything HikariKnight is the GPU passthrough wizard.
Ok, thank you. I will ask him
our setup assumes you will reserve 1 card 100% to the VM meaning you cannot use it on the host/linux
however we do not apply the card reservation so people who want to try single gpu passthrough with dynamic loading can try set it up, but without any of our support past enabling vfio
I know. Maybe for a bit of context why I need a gpu inside my VM (please tell me if I don't and am just on the wrong path). I wanted to try setting up ollama with openwebui. I simply wanted to try to host a local AI server just for fun. As docker is a requirement for OpenWebUI and it's support for Bazzite seems not to be that good, I wanted to do all of that AI stuff inside a VM just so that I can seperate my Pc and the AI stuff. On my journey to set all of that up (I didn't get very far) I stumbled upon all of this VM stuff.
i believe you can just layer docker in bazzite if you absolutely need it
going the full VM route will slow down updates more than just layering, since you will have to regenerate initramfs on every update too
but if you want to isolate it 100% inside a VM and split your resources then go ahead, but bazzite cannot use the dgpu while it is passed through to the VM which is why we support only dual gpu setups (as they are infinity times easier to set up)
I guess I'll mess with docker then...
yeah i think docker will be the easiest solution
heck maybe even docker in distrobox might work for you
distrobox lets you set a custom home folder
No, unfortunatly it isn't that easy
Oh i didn't know that
Maybe I'll try that
Thanks!
also 1 sec
@Rocksite bluefin has an ollama ujust you can just yoink
adds webui and everything
Wait
really?!
Bruh...
add this into a justfile and do
just -f /path/to/justifle.just ollama
Maybe next time pay attention at the obvious lol
i believe it uses podman, idk if it still requires docker
but worth a shot
Ok, I will try that also
worst case layer docker
Yes
Thanks for your help
the ujust is from here for reference
https://github.com/ublue-os/bluefin/blob/main/just/bluefin-tools.just
GitHub
bluefin/just/bluefin-tools.just at main Β· ublue-os/bluefin
The next generation Linux workstation, designed for reliability, performance, and sustainability. - ublue-os/bluefin