#GPU (or a few) in a VM?

4 messages · Page 1 of 1 (latest)

sharp crypt
#

I got a goal. Not sure how to achieve it.

I have: 5800x (no iGPU), rtx 2080 super, Rx 470, and some random low end GPU's, I have a PSU that can power both cards. Currently installed are the 2080 and 470, but I would like the possibility of using any GPU configuration my Mobo can handle. I have 32 gb ram and can bump up to 64 if I need (but at lower latency).

I have QEMU/KVM/Virt manager working, I installed a VM and have an instance of arch on it.

My goal is to get familiar with how to configure my VM's properly.

I enjoy the compartmentalization VM's provide, but I would love the performance like my host machine. (Or close to it).

I would love to be able to swap gpu card slots slots, and give a VM my 2080 and have my host use the 470 sometimes.
(Or could I choose which GPU is used by my host without swapping PCIe slots?)

Thanks for your help ccHeartPurple

#

GPU (or a few) in a VM?

potent wing
#

There's a bit of a fundemental issue with what you're trying to do. While you CAN give either or both to the VM, if your GUI login session's GPU is taken away, it'll crash your login.

And if your host system doesn't have a cable running to the monitor, you won't be able to see the host system

sharp crypt
# potent wing There's a bit of a fundemental issue with what you're trying to do. While you CA...

As long as I'm careful with my configuration and running them properly, (by not starting vm's needing GPUs that aren't in the system or are attached to the host, or other running vms), I should be able to keep the head attached to the host right? If I bugger it up I can also fix it with my recovery drive USB stick.

I can attach a cable to any or all the GPUs, I have a couple monitors with plenty of inputs.

I'll try getting things working when I get home tonight.

(My BIOS is ready)

What I see on the web is to:

  1. make a VM and install the OS

  2. install virtio drivers (pcie). and graphics drivers.

  3. edit the grub config for the host. (And mkinitcpio?)

  4. add the PCIe device to the VM

  5. use a display client like sunshine/moonlight (I think it's called), or parsec for high refresh display and low latency.

Or just run straight from the GPU and switch inputs on my monitor, right?

I'll try things out when I get home way later tonight. ✌️