[SOLVED] Audio pass through crashes Unraid Server running Windows 10 VM


Recommended Posts

I've got an Asus Rog Crosshair Viii motherboard and im paired with an MSI 2070 super GPU. Motherboard BIOS is up to date, running latest stable unraid. 

 

I've had to do the PCIe ACS override option to get Windows 10 to accept my GPU. Otherwise it just won't pass through. (i think because the GPU has a usb controller and serial bus controller on it as well as the regular gpu and audio under the original iommu group and i cant figure out how to pass the 2 additional through to the VM).

 

So on to the problem...

 

i have the 2070 selected for GPU, then i select the 2070 for audio pass through and when i select a 2nd sound card (my mainboard's sound) and start the VM it stays on stopped (with the spinning icon) and the VM section of unraid hangs and becomes completely unresponsive. If i try shut down the VM it doesn't give me an option. When i open a second page and head to the main dash it shows my VM as "paused" and if i try start or stop it just hangs the dashboard page as well. Eventually all of unraid hangs and i need to do a hard reboot to get it going again. If i remove the onboard audio the VM boots up fine.

 

for reference im trying to pass this through:

 

IOMMU group 38:[1022:1487] 0b:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller

 

Any suggestions for audio short of forking out for a pci-e sound card?

Edited by CatMilk
Link to comment

Hello for Audio you have to use a kernel with flr patch like this
https://forums.unraid.net/index.php?/topic/82625-[KERNEL]custom-kernel-build-with-treaks-(2020.03.07-v6.8.3|5.5.8|4.19.108|NAVI|VEGA|NFSv4|R8125|Zen2)
And for your gpu you have to bind the USB controller of your gpu and passthrough him.
You have to add this in your syslinux configuration with your id of usb of your gpu.

4d42eeca5cdbe282ca3267d85313ab99.jpg

Envoyé de mon HD1913 en utilisant Tapatalk

Link to comment

@CatMilk I had the same issue on my Gigabyte TRX40 board. Passing through the Starship/Matisse HD Audio Controller and starting the VM ended up in Unraid freezing and finally crashing. For me the Starship/Matisse Controller splits into 2 extra sound devices shown as USB audio. One is for the front panel connectors and one for the backside 7.1 connections and can be used by 2 different vms at the same time. Took me some time to figure it out.

 

grafik.png.d740c9d87e068e4fe28f8e4623aa041c.png

 

Check if you also have an extra USB audio device shown up like for me. Maybe Asus did something similar with there layout. FLR patch didn't helped in my case.

 

For reference my post in another thread:

 

Link to comment
6 hours ago, rachid596 said:

I have asus rog crosshair viii hero wifi too and i have to use flr patch

Envoyé de mon HD1913 en utilisant Tapatalk
 

Is it possible for me to grab a copy of your kernal and use it on my own machine? I've never patched or built a kernal before. Or is that something that shouldn't be done?

Link to comment
6 hours ago, bastl said:

@CatMilk I had the same issue on my Gigabyte TRX40 board. Passing through the Starship/Matisse HD Audio Controller and starting the VM ended up in Unraid freezing and finally crashing. For me the Starship/Matisse Controller splits into 2 extra sound devices shown as USB audio. One is for the front panel connectors and one for the backside 7.1 connections and can be used by 2 different vms at the same time. Took me some time to figure it out.

 

grafik.png.d740c9d87e068e4fe28f8e4623aa041c.png

 

Check if you also have an extra USB audio device shown up like for me. Maybe Asus did something similar with there layout. FLR patch didn't helped in my case.

 

For reference my post in another thread:

 

I don't see any usb audio devices

Bus 001 Device 001:	ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002:	ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 003:	ID 2516:0051
Bus 001 Device 004:	ID 0b05:18f3 ASUSTek Computer, Inc.
Bus 002 Device 001:	ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001:	ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002:	ID 174c:2074 ASMedia Technology Inc. ASM1074 High-Speed hub
Bus 003 Device 003:	ID 0461:4e22 Primax Electronics, Ltd ASM107x
Bus 004 Device 001:	ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 002:	ID 174c:3074 ASMedia Technology Inc. ASM1074 SuperSpeed hub
Bus 004 Device 007:	ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. USB to ATA/ATAPI Bridge
Bus 005 Device 001:	ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001:	ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001:	ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002:	ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 007 Device 003:	ID 0781:5567 SanDisk Corp. Cruzer Blade
Bus 008 Device 001:	ID 1d6b:0003 Linux Foundation 3.0 root hub

 

Link to comment

I can confirm that this issue has been resolved by @rachid596 over a team-viewer session.

 

The solution as suggested was a custom kernel loaded onto the Unraid flash drive and after a reboot and passing through the onboard audio i had fully working sound within my Windows 10 VM. No more Unraid crashes and tearing my hair out. I just hope the Unraid folk patch this in the next update as it is most certainly a bug with an x570 board when paired with the Unraid OS.

 

Thank you once again to @rachid596  

  • Like 1
Link to comment
3 minutes ago, CatMilk said:

I can confirm that this issue has been resolved by @rachid596 over a team-viewer session.

 

The solution as suggested was a custom kernel loaded onto the Unraid flash drive and after a reboot and passing through the onboard audio i had fully working sound within my Windows 10 VM. No more Unraid crashes and tearing my hair out. I just hope the Unraid folk patch this in the next update as it is most certainly a bug with an x570 board when paired with the Unraid OS.

 

Thank you once again to @rachid596  

No problem.

have a good day.

  • Like 1
  • Thanks 1
Link to comment
  • 1 month later...
On 6/17/2020 at 3:55 PM, CatMilk said:

I can confirm that this issue has been resolved by @rachid596 over a team-viewer session.

Yeah @rachid596 got me setup with a custom build too. Super helpful and then I learned to make my own thanks to @ich777 's helper container.

 

FYI the issue is fixed in kernel 5.7.5 and after for AMD audio and USB passthrough. So Unraid 6.9beta24 and after will have this fix.

  • Like 1
Link to comment
7 minutes ago, bigbangus said:

Yeah @rachid596 got me setup with a custom build too. Super helpful and then I learned to make my own thanks to @ich777 's helper container.

 

FYI the issue is fixed in kernel 5.7.5 and after for AMD audio and USB passthrough. So Unraid 6.9beta24 and after will have this fix.

The next version of Unraid-Kernel-Helper have the ability to build it with iSCSI Target. ;)

  • Like 1
Link to comment
  • 4 months later...
On 6/15/2020 at 11:53 PM, rachid596 said:

Hello for Audio you have to use a kernel with flr patch like this
https://forums.unraid.net/index.php?/topic/82625-[KERNEL]custom-kernel-build-with-treaks-(2020.03.07-v6.8.3|5.5.8|4.19.108|NAVI|VEGA|NFSv4|R8125|Zen2)
And for your gpu you have to bind the USB controller of your gpu and passthrough him.
You have to add this in your syslinux configuration with your id of usb of your gpu.

4d42eeca5cdbe282ca3267d85313ab99.jpg

Envoyé de mon HD1913 en utilisant Tapatalk
 

@rachid596 Like @CatMilk I am having the same problem. Can you PM me your Kernal build? Or possibly help me get this fixed? Like them I am running a MSI B450 Tomahawk ATX. with [AMD] Starship/Matisse HD Audio Controller. I attempted to update to UNRAID verson 6.9.0 Beta with no luck 

Link to comment

Yes, 

IOMMU group 29:[1022:1487] 28:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller. 

 

I thought the same thing. Reason why I just updated to the beta. When I made the change the first time I had the problem with the VM locking up and a single core locked out at 100. I made a small change by just adding a sound card and having both the NVIDIA HD Audio controller and the AMD onboard controller but no luck. The VM would boot but would not recognize anything I had plugged into the ports.  

Link to comment
  • 5 months later...
On 6/18/2020 at 6:01 AM, rachid596 said:

No problem.

have a good day.

 

Hello,

 

I'm having the same issues with passing through USB controllers with a Asrock Rack x470d4u and Ryzen 3900x. I'm running unraid version 6.9.2 and was able to passthrough the usb controller with my 2600 installed but after upgrading to the 3900x I'm running into the freeze issue. Would a custom kernal help with this problem do you know?

 

Thanks

Link to comment
5 hours ago, k0vw said:

 

Hello,

 

I'm having the same issues with passing through USB controllers with a Asrock Rack x470d4u and Ryzen 3900x. I'm running unraid version 6.9.2 and was able to passthrough the usb controller with my 2600 installed but after upgrading to the 3900x I'm running into the freeze issue. Would a custom kernal help with this problem do you know?

 

Thanks

Hello,

Your iommu has changed between 2600 and 3900x?

Link to comment
12 hours ago, rachid596 said:

Hello,

Your iommu has changed between 2600 and 3900x?

Yeah it's the drivers that have changed i think? They're now the USB controller: Advanced Micro Devices, Inc. [AMD] Matisse USB 3.0 Host Controller that everyone has been having trouble with.

 

The groups themselves haven't changed. I've deleted the VFIO config file from the USB and tried to rebuild it but still having the same issues no matter what. It's killing me haha

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.