AMD Integrated GPU passthrough solution?
I'm trying to set up GPU passthrough on my PC and need some assistance.
Setup:
- Primary GPU: NVIDIA RTX 2060 (IOMMU Group 8)
- Secondary GPU: AMD Radeon Vega 560 (Integrated, IOMMU Group 10)
- CPU: AMD Ryzen 5 5600G
- OS: BunsenLabs Linux
- Virtualization: KVM/QEMU with Looking Glass
Goal:
- Use the NVIDIA RTX 2060 for my host OS.
- Pass through the AMD Radeon Vega 560 to a Windows VM for applications like Photoshop.
- Seamlessly switch between host and VM without changing monitor ports.
What I've Done So Far: using "ujust"
1. Enabled IOMMU and VFIO in BIOS.
2. Added my user to the
libvirt
group.
3. Configured virtualization and enabled VFIO drivers.
4. Attempted to set up Looking Glass for VM display.
Issues:
- When enabling VFIO drivers, I encounter:
- initramfs regeneration state is already enabled
- Recipe 'setup-virtualization' failed with exit code 1
- Unsure if monitor ports need to be manually switched when using GPU passthrough.
- Experiencing audio issues (fuzzy sound) when attempting passthrough.
IOMMU Groups:
- Group 8: NVIDIA RTX 2060 (VGA, Audio, USB Controllers)
- Group 10: AMD Radeon Vega 560 (VGA)
- (Other groups include various host bridges and controllers)
Questions:
1. Can I use the NVIDIA RTX 2060 for the host and pass through the AMD Vega 560 to the VM without manually switching monitor ports?
2. How can I resolve the VFIO driver errors to enable successful GPU passthrough?
3. What are the best practices for managing IOMMU groups in a dual-GPU setup?
4. Is it possible to pass through peripherals like keyboard, mouse, and headset to the VM for a more native experience?
Request:
Looking for a step-by-step guide or advice on configuring GPU passthrough with my current hardware, resolving the VFIO errors, and ensuring seamless operation between host and VM without needing to rearrange hardware connections.1 Reply
IF group 10 has only the Vega560 then maybe
but you will need a dummy plug to activate it in the VM
or a monitor
When enabling VFIO drivers, I encounter: * initramfs regeneration state is already enabled * Recipe 'setup-virtualization' failed with exit code 1ignore it, the error is literally "initramfs regeneration is already enabled"
3. What are the best practices for managing IOMMU groups in a dual-GPU setup?there is nothing to manage, its literally "this is how your system is laid out and what you have to work with, if it is not laid out the way you need it, tough luck if there is no ACS option in the bios"
4. Is it possible to pass through peripherals like keyboard, mouse, and headset to the VM for a more native experience?Looking-glass handles mic, audio, keyboard and mouse, you can disable the popup warning about an application in the VM asking for permission to use the mic constantly too
Looking for a step-by-step guide or advice on configuring GPU passthrough with my current hardware, resolving the VFIO errors, and ensuring seamless operation between host and VM without needing to rearrange hardware connections.We do not provide that, the ujust is the closest thing and our recommendation is 2 very different dgpus or 1 igpu for the host and 1 dgpu (ideally nvidia since it has way less problems) for the VM, anything else and you are on your own since you are making an already complicated system even more complicated. The reason we do not provide a step by step guide is because there is checks notes countless hardware combinations and things that can go wrong and a lot of hardware also just flat out will not work. We are not here to be the 1 click gpu passthrough system, we just help enabled what is needed for those that want to utilize gpu passthrough since atomic distros make this proces even more complicated than on a normal system, so the ujust does the bare minimum needed on the host to get gpu passthrough working (so people can do single gpu passthrough if they want, or bind a spare gpu for a 2 gpu passthrough setup). If you plan to do something outside of our recommendations then you are mostly on your own since we cannot really help you.