GPU Passthrough, no sound devices in windows

jbates58

Member
Feb 17, 2020
11
1
23
35
Hi all,

I have managed to finally get GPU pass through working to a win10 VM well. However, i have one last issue before i can roll it into production; I have no sound device, and windows is not recognising it. It sees the GPU and it works as expected and shows RX560 in the device manager. But zilch for the audio.

I followed all the usual guides that are mentioned so no need to specifically refer to them i don't think. I will post some outputs below of various things and hopefully someone can point me in the right direction to resolve my issue.



lspci -v

Code:
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] (rev cf) (prog-if 00 [VGA controller])

Subsystem: Micro-Star International Co., Ltd. [MSI] Baffin [Radeon RX 550 640SP / RX 560/560X]

Flags: fast devsel, IRQ 11, IOMMU group 33

Memory at b0000000 (64-bit, prefetchable) [disabled] [size=256M]

Memory at c0000000 (64-bit, prefetchable) [disabled] [size=2M]

I/O ports at c000 [disabled] [size=256]

Memory at fb700000 (32-bit, non-prefetchable) [disabled] [size=256K]

Expansion ROM at fb740000 [disabled] [size=128K]

Capabilities: [48] Vendor Specific Information: Len=08 <?>

Capabilities: [50] Power Management version 3

Capabilities: [58] Express Legacy Endpoint, MSI 00

Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+

Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>

Capabilities: [150] Advanced Error Reporting

Capabilities: [200] Physical Resizable BAR

Capabilities: [270] Secondary PCI Express

Capabilities: [2b0] Address Translation Service (ATS)

Capabilities: [2c0] Page Request Interface (PRI)

Capabilities: [2d0] Process Address Space ID (PASID)

Capabilities: [320] Latency Tolerance Reporting

Capabilities: [328] Alternative Routing-ID Interpretation (ARI)

Capabilities: [370] L1 PM Substates

Kernel driver in use: vfio-pci

Kernel modules: amdgpu



05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X]

Subsystem: Micro-Star International Co., Ltd. [MSI] Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X]

Flags: fast devsel, IRQ 5, IOMMU group 33

Memory at fb760000 (64-bit, non-prefetchable) [disabled] [size=16K]

Capabilities: [48] Vendor Specific Information: Len=08 <?>

Capabilities: [50] Power Management version 3

Capabilities: [58] Express Legacy Endpoint, MSI 00

Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+

Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>

Capabilities: [150] Advanced Error Reporting

Capabilities: [328] Alternative Routing-ID Interpretation (ARI)

Kernel driver in use: vfio-pci

Kernel modules: snd_hda_intel



lspci -s -n 05:00

Code:
05:00.0 0300: 1002:67ff (rev cf)

05:00.1 0403: 1002:aae0



/etc/modprobe.d/vfio.conf

Code:
#amd

options vfio-pci ids=1002:67ff,1002:aae0 disable_vga=1



/etc/pve/qemu-server/101.conf

Code:
agent: 1

balloon: 0

bios: ovmf

boot: order=scsi5;ide2

cores: 4

cpu: host

efidisk0: local-zfs:vm-101-disk-0,efitype=4m,pre-enrolled-keys=1,size=1M

hostpci0: 0000:05:00,pcie=1,x-vga=1

ide0: local:iso/virtio-win-0.1.221.iso,media=cdrom,size=519030K

ide2: local:iso/Windows.iso,media=cdrom

machine: q35

memory: 4096

meta: creation-qemu=6.1.0,ctime=1663641056

name: hddpassthrough

net0: e1000=1A:D4:50:37:27:7B,bridge=vmbr1,firewall=1

net1: virtio=D2:6A:C9:19:69:2D,bridge=vmbr0,firewall=1

numa: 0

ostype: l26

scsi5: /dev/disk/by-id/ata-Samsung_SSD_850_EVO_1TB_S2PWNX0HA05181B,size=976762584K,ssd=1

scsihw: virtio-scsi-pci

smbios1: uuid=22a814be-26f9-47f3-9bdc-7fd690478ccc

sockets: 1

usb0: host=046d:c33f,usb3=1

usb1: host=046d:c539,usb3=1

vga: none

vmgenid: 26bbf3d1-b63d-4b63-b2a4-97f7780917c4



After doing a few more tweaks, and running DDU and re-installing the drivers, I managed to get it to recognise AN audio device, but it is not the one that is expected. It shows AMD Streaming Audio Device And windows reports that there is no output devices found. So i think it is a little closer, but still not working.
 
not sure if it has anything to do with the problem but i see in your config:
ostype: l26
even though you say it's a windows 10 vm

can you check the event viewer in the guest and check if you see anything interesting there regarding the audio device?

also you could check a linux live-cd in the guest and post the lspci output from there to check if the audio device is properly passed through
 
THanks for that.

I can confirm that it is a win10 machine. and that it was incorrectly set. I have fixed this, and the issue persists.

I also booted a ubuntu live and can confirm that there is sound. so this seems specifically a windows problem...

when looking at the output of PCI-Z, it indicates that there is an AMD audio device. but it still has no audio devices...

not sure if it has anything to do with the problem but i see in your config:

even though you say it's a windows 10 vm

can you check the event viewer in the guest and check if you see anything interesting there regarding the audio device?

also you could check a linux live-cd in the guest and post the lspci output from there to check if the audio device is properly passed through
 
Last edited:
THanks for that.

I can confirm that it is a win10 machine. and that it was incorrectly set. I have fixed this, and the issue persists.

I also booted a ubuntu live and can confirm that there is sound. so this seems specifically a windows problem...

when looking at the output of PCI-Z, it indicates that there is an AMD audio device. but it still has no audio devices...
Have you been able to solve this? Running into this issue as well with windows 11, but no problem with ubuntu desktop
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!