Hello dear Proxmox community,
I am currently attempting to set up a Windows 10 VM with GPU passthrough, but I'm encountering two primary issues and am hoping for your support.
Problem 1: "kvm: vfio: Cannot reset device 0000:08:00.0, depends on group 22 which is not owned."
Upon starting the VM, I receive the following message:
However, the VM starts normally and works well. Yet, after shutting it down, I'm unable to start it again as I encounter the following error:
It only starts working again after performing a hard reset of my main PC (Datacenter).
Problem 2: Routing Sound through the GPU
My second challenge is routing sound through my GPU. I have two devices in different IOMMU groups:
- 08:00.0 (GPU Graphic) in IOMMU group 21
- 08:00.1 (GPU Sound) in IOMMU group 22
Here are some relevant configuration details:
Grub Line:
kvm.conf Config (/etc/modprobe.d/kvm.conf):
VM Config:
My Hardware in the Main PC:
and maybe this is Important too for the Audio Passtrough:
I would greatly appreciate your assistance and advice on how to resolve these issues. Thank you in advance for your support!
Best regards,
Partikel (Luca)
I am currently attempting to set up a Windows 10 VM with GPU passthrough, but I'm encountering two primary issues and am hoping for your support.
Problem 1: "kvm: vfio: Cannot reset device 0000:08:00.0, depends on group 22 which is not owned."
Upon starting the VM, I receive the following message:
Code:
kvm: vfio: Cannot reset device 0000:08:00.0, depends on group 22 which is not owned.
TASK OK
However, the VM starts normally and works well. Yet, after shutting it down, I'm unable to start it again as I encounter the following error:
Code:
kvm: ../hw/pci/pci.c:1613: pci_irq_handler: Assertion '0 <= irq_num && irq_num < PCI_NUM_PINS' failed.
TASK ERROR: start failed: QEMU exited with code 1
It only starts working again after performing a hard reset of my main PC (Datacenter).
Problem 2: Routing Sound through the GPU
My second challenge is routing sound through my GPU. I have two devices in different IOMMU groups:
- 08:00.0 (GPU Graphic) in IOMMU group 21
- 08:00.1 (GPU Sound) in IOMMU group 22
class | device | id | iommugroup | vendor | device_name | subsystem_device | subsystem_device_name | subsystem_vendor | subsystem_vendor_name |
0x030000 | 0x1c02 | 0000:08:00.0 | 21 | 0x10de | GP106 [GeForce GTX 1060 3GB] | 0x11c2 | 0x10de | NVIDIA Corporation | |
0x040300 | 0x10f1 | 0000:08:00.1 | 22 | 0x10de | GP106 High Definition Audio Controller | 0x11c2 | 0x10de | NVIDIA Corporation |
Here are some relevant configuration details:
Grub Line:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet textonly amd_iommu=on pcie_acs_override=downstream,multifunction video=efifb:off video=vesa:off video=vesafb:off video=simplefb:off nofb nomodeset vfio-pci.ids=10de:1c02,10de:10f1 vfio_iommu_typ>"
kvm.conf Config (/etc/modprobe.d/kvm.conf):
Code:
options kvm ignore_msrs=1
VM Config:
Code:
agent: 1
args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=NV43FIX,kvm=off'
bios: ovmf
boot: order=sata0;ide2;net0
cores: 8
cpu: host,hidden=1,flags=+pcid
efidisk0: local-lvm:vm-104-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:08:00.0,pcie=1,x-vga=1
hugepages: 2
ide2: local:iso/Windows10.iso,media=cdrom,size=4725312K
machine: pc-q35-7.2
memory: 8192
meta: creation-qemu=7.2.0,ctime=1697566386
name: Windows10-Wohnzimmer
net0: e1000=0A:D1:C9:7E:E7:6B,bridge=vmbr0,firewall=1
numa: 1
ostype: win10
sata0: local-lvm:vm-104-disk-1,size=100G
scsihw: virtio-scsi-pci
smbios1: uuid=113f9316-3806-4c32-9216-923ea7d24f09
sockets: 1
usb0: host=145f:02f0
vga: none
vmgenid: 9ee3c758-39b4-45b6-990f-fb88e5569a8c
My Hardware in the Main PC:
Code:
CPU: AMD Ryzen 5 1400 Quad-Core Processor
GPU: GeForce GTX 1060 3GB
RAM: 16GB DDR4 3200 CL16 Corsair
Mainboard: ASUS PRIME B450M-A
and maybe this is Important too for the Audio Passtrough:
Code:
45: PCI 800.1: 0403 Audio device
[Created at pci.386]
Unique ID: 7Wns.afGtLgFnDe7
Parent ID: w+J7.0TU4LKoL980
SysFS ID: /devices/pci0000:00/0000:00:03.1/0000:08:00.1
SysFS BusID: 0000:08:00.1
Hardware Class: sound
Model: "nVidia GP106 High Definition Audio Controller"
Vendor: pci 0x10de "nVidia Corporation"
Device: pci 0x10f1 "GP106 High Definition Audio Controller"
SubVendor: pci 0x10de "nVidia Corporation"
SubDevice: pci 0x11c2
Revision: 0xa1
Driver: "vfio-pci"
Driver Modules: "vfio_pci"
Memory Range: 0xf6080000-0xf6083fff (rw,non-prefetchable)
IRQ: 11 (no events)
Module Alias: "pci:v000010DEd000010F1sv000010DEsd000011C2bc04sc03i00"
Driver Info #0:
Driver Status: snd_hda_intel is active
Driver Activation Cmd: "modprobe snd_hda_intel"
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #17 (PCI bridge)
46: PCI a00.3: 0403 Audio device
[Created at pci.386]
Unique ID: Dt9q.ul4ScaGyp28
Parent ID: JZZT.XtQqpuv2hW0
SysFS ID: /devices/pci0000:00/0000:00:08.1/0000:0a:00.3
SysFS BusID: 0000:0a:00.3
Hardware Class: sound
Model: "AMD Family 17h (Models 00h-0fh) HD Audio Controller"
Vendor: pci 0x1022 "AMD"
Device: pci 0x1457 "Family 17h (Models 00h-0fh) HD Audio Controller"
SubVendor: pci 0x1043 "ASUSTeK Computer Inc."
SubDevice: pci 0x86c7
Driver: "snd_hda_intel"
Driver Modules: "snd_hda_intel"
Memory Range: 0xf6700000-0xf6707fff (rw,non-prefetchable)
IRQ: 50 (844 events)
Module Alias: "pci:v00001022d00001457sv00001043sd000086C7bc04sc03i00"
Driver Info #0:
Driver Status: snd_hda_intel is active
Driver Activation Cmd: "modprobe snd_hda_intel"
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #39 (PCI bridge)
I would greatly appreciate your assistance and advice on how to resolve these issues. Thank you in advance for your support!
Best regards,
Partikel (Luca)