I have a Debian 12 in a machine where I have installed Windows 10 as a Guest using KVM (Managed with Virt-Manager).
The machine has 2 graphic cards.
1) GeForce RTX 2060 12GB (I want to use in the host)
2) AMD Radeon R5 220 2GB ddr3 (I wanted to use in a Guest Windows 10)
I follow mainly this link [kvm-gpu-passthrough](https://drakeor.com/2022/02/16/kvm-gpu-passthrough-tutorial/)
In the Windows the device manager shows the Amd Radeon graphic cards and the Red Hat QXL controller. In the Windows I have install the driver from [AMD driver r5-220](https://www.amd.com/pt/support/downloads/drivers.html/graphics/radeon-r9-r7-r5/radeon-r5-200-series/amd-radeon-r5-220.html) but when I try to run the AMD program it says "No AMD graphics driver is installed or the AMD driver is not functioning properly
I have configured the
/etc/default/grub
file as
GRUB_CMDLINE_LINUX_DEFAULT="quiet modprobe.blacklist=radeon"
GRUB_CMDLINE_LINUX="amd_iommu=on iommu=pt "
Using the Virt-Manager I have added 2 PCI associated to the AMD card
and
I have used the script
!/bin/bash
shopt -s nullglob
for g in /sys/kernel/iommu_groups/*; do
echo "IOMMU Group ${g##*/}:"
for d in $g/devices/*; do
echo -e "\t$(lspci -nns ${d##*/})"
done;
done;
in order to get this 2 "pci devices". This script gives me
IOMMU Group 28:
0b:00.0 VGA compatible controller : NVIDIA Corporation TU106 [GeForce RTX 2060 12GB] [10de:1f03] (rev a1)
0b:00.1 Audio device : NVIDIA Corporation TU106 High Definition Audio Controller [10de:10f9] (rev a1)
IOMMU Group 29:
0c:00.0 VGA compatible controller : Advanced Micro Devices, Inc. [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series] [1002:68f9]
0c:00.1 Audio device : Advanced Micro Devices, Inc. [AMD/ATI] Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series] [1002:aa68]
and I have supposed that the Group 29 is the one I have to add to the Virtual Machine
I do not know if I am missing something.
Asked by Fabio Paolini
(21 rep)
Sep 27, 2024, 02:34 PM