[SOLVED] No sound over passthrough GPU Hdmi output of ubuntu VM

firobad66

Member
Dec 17, 2021
23
2
8
42
Hi,

not sure if this is related to proxmox, but just in case it might be, maybe someone has an idea what could be the issue and how to resolve it.

I have a passed through AMD PCIe GPU (inlcuding its sound device) to two VMs (not in parallel):
- Windows 10 VM
- ubuntu 20.04 VM

The hdmi output of the GPU is connected to a LCD TV screen.
The graphic output works for both VMs flawlessly and the Windows VM also outputs sound on the TV screen.

In the ubuntu VM the graphic card is completely recognized and in the sound settings i also can select the hdmi to be the sound output. The sound settings section of gnome even shows that sound is outputted, but the TV keeps completely silent.

lspci tells me the driver for the sound of the gpu is snd_hda_intel.

Is this purely related to the ubuntu vm only?

Thanks in advance
 
Last edited:
applying various fixed on the internet didn't help, neither did a complete upgrade to ubuntu 22.04 development branch including 5.17 kernel...
 
(in BIOS enable everything related to AMD virtualization)
and have you done this:

edit '/etc/default/grub':

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Proxmox Virtual Environment"
#GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on"
GRUB_CMDLINE_LINUX=""


and add these lines to '/etc/modules':

vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd


also:
# update-initramfs -u -k all
# reboot
 
Thanks but that was all already enabled and the GPU passthrough works flawlessly to the Windows VM and display wise also to the ubuntu 20.04 VM.

I just deleted the ubuntu VM completely and just installed ubuntu 18.04 in a new VM with two differences:
1. I used UEFI instead of SeaBios
2. I just passed the pci device incl. all functions to ubuntu VM - before that I had two seperate devices passed through

So not sure whats the cause, however now hdmi sound also works for ubuntu.
 
Thanks but that was all already enabled and the GPU passthrough works flawlessly to the Windows VM and display wise also to the ubuntu 20.04 VM.

I just deleted the ubuntu VM completely and just installed ubuntu 18.04 in a new VM with two differences:
1. I used UEFI instead of SeaBios
2. I just passed the pci device incl. all functions to ubuntu VM - before that I had two seperate devices passed through

So not sure whats the cause, however now hdmi sound also works for ubuntu.

take a snapshot/backup of the vm (ubuntu 18.04) and dist-upgrade to see if it still works in 22.04.
but that's just me thinking....
 
Only you, or an admin, can change this thread to [Solved] by using the Edit button at the top. :)
thanks, didnt saw that on the top thread that i can close it.

Before I do so let me say that upgrading to ubuntu 20.04 worked - hdmi sound is still there.
 
Thanks but that was all already enabled and the GPU passthrough works flawlessly to the Windows VM and display wise also to the ubuntu 20.04 VM.

I just deleted the ubuntu VM completely and just installed ubuntu 18.04 in a new VM with two differences:
1. I used UEFI instead of SeaBios
2. I just passed the pci device incl. all functions to ubuntu VM - before that I had two seperate devices passed through

So not sure whats the cause, however now hdmi sound also works for ubuntu.
How you passed the all functions to ubuntu VM. ? Can you show your config file ?

Edit: I just test 18.04. The sound work. However, 22.04 was not work.

Thanks
 
Last edited: