Ubuntu VM Nvidia Sound crackling


Recommended Posts

Hi, as im on the turn from Win to Ubuntu ...

 

1 major issue i see here is the sound, i know i had to fix the MSI interrupts on my windows vmś too, but i cant find any solution therefore on a linux vm ...

 

in my usecase its ubuntu and a nvidia 1030, drivers installed, sound device is there, but as in topic mentioned crackling ...

 

now from Unraid lspci console

 

---

root@AlsServer:~# sudo lspci -v -s 4:00.1
04:00.1 Audio device: NVIDIA Corporation GP108 High Definition Audio Controller (rev a1)
        Subsystem: Micro-Star International Co., Ltd. [MSI] GP108 High Definition Audio Controller
        Flags: bus master, fast devsel, latency 0, IRQ 17
        Memory at dd080000 (32-bit, non-prefetchable)
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Kernel driver in use: vfio-pci

root@AlsServer:~#

---

 

from the VM console

---

alturismo@Ubuntu:~$ sudo lspci -v -s 01:00.0
[sudo] Passwort für alturismo: 
01:00.0 Audio device: NVIDIA Corporation GP108 High Definition Audio Controller (rev a1)
    Subsystem: Micro-Star International Co., Ltd. [MSI] GP108 High Definition Audio Controller
    Physical Slot: 0
    Flags: bus master, fast devsel, latency 0, IRQ 22
    Memory at 91800000 (32-bit, non-prefetchable)
    Capabilities: [60] Power Management version 3
    Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [78] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel

alturismo@Ubuntu:~$ 
---

 

what wonders me a little, kernel driver snd_hda_intel ? is this correct ? caue it is the nvidia device ...

 

for any help, thanks ahead

Link to comment
  • 1 month later...
On 12/8/2019 at 7:07 AM, bastl said:

@alturismo Create "/etc/modprobe.d/snd-hda-intel.conf" inside the VM with the following content and restart the VM.


options snd-hda-intel enable_msi=1

Crackling sound should be gone with this.

Thank you! This fixed not only audio issue but also video playback (video was pausing in sync with audio at least while testing youtube).

 

Still getting weird screen artifacts on the top right of my primary and top left of my secondary monitor, any clue as to what that could be?

 

I've got ryzen 1600x, ASUS Prime B350-PLUS mb, GTX 1060 3GB (only GPU) passed through and running Ubuntu 19.04. In the Ubuntu software updater I've enable use of the nvidia-driver-418 as Nouveau was extremely unstable (although I haven't tested that with MSI enabled).

 

Please let me know if more info would be helpful!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.