View previous topic :: View next topic |
Author |
Message |
sandwh1ched n00b
Joined: 12 Nov 2024 Posts: 1 Location: United States of America
|
Posted: Tue Nov 12, 2024 3:12 am Post subject: Use other discrete GPU? |
|
|
Hello! I have spent almost all day trying to get GPU passthrough with virt-manager working, and one of the reasons I haven't been able to is because I need two GPUs, an AMD RX 580 and an NVIDIA GeForce GTX 1650 (which I want to pass through) and it keeps using my GeForce card when I need it for passthrough, so I installed my old RX 580 to provide a GPU for the host.
Things I have tried:
- Blacklisting all drivers for NVIDIA
- Switching the 580 to the upper-most PCI slot
- Looking in UEFI for a primary GPU setting
- The `pci=nommconf` kernel param
- Looking on Google
Thanks! _________________ "install Gentoo" -gentooman on YouTube |
|
Back to top |
|
|
jpsollie Guru
Joined: 17 Aug 2013 Posts: 323
|
Posted: Wed Nov 13, 2024 7:13 pm Post subject: |
|
|
you can assign a driver for the card via modprobe
In this case, the PCI-vfio driver is what you need to bind to the card you'll pass to the guest OS.
this will make the DRM manager ignore it.
the following config should help here:
Code: |
options vfio-pci ids=vendid:devid
softdep amdgpu pre: vfio-pci
softdep drm pre: vfio-pci
softdep nvidia pre: vfio-pci
|
this will make sure the vfio-pci driver loads before your GPU drivers, when you add the vendor ID and device ID of your geforce card (which cou'll find by using lspci -vvv), it will claim the card you want to reserve for the guest OS. _________________ The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img] |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|