Getting audio working for Windows 10 VM+GPGPU

Post Reply
User avatar
antik
Know my way around
Posts: 244
Joined: Mon May 18, 2015 2:51 pm

Re: Getting audio working for Windows 10 VM+GPGPU

Post by antik »

Checked right now and no problem at all.
"VM Win10 + K-lite Mega codecs + Medial player Classic + Apple AirPods"
TVS-h1288X-W1250-128G (850W) + T3 card + QXG-10G1T + GIGABYTE RTX 4080 Super Gaming OC 16G (Silent FW) + 2x 2TB M.2 NVMe Kingston KC3000 (RAID0 - apps, Qsync, VM's) + 12x 2,5“ 3,84TB SATA SSD Kingston DC600M (RAID5 - VM's, data).

TVS-1282T3-i7-48G (450W) + QXG-10G1T + PALiT GeForce GTX 1660 Super GP OC + 2x 1TB M.2 NVMe ADATA SX8200PNP (RAID0 - apps) + 4x 2,5“ 3,84TB SATA SSD Samsung PM883 (RAID5 - data backup) + 8x 8TB Seagate IronWolf Pro (RAID6 - data backup).
TS-677-16GB + 1x 256GB SSD Samsung EVO (apps) + 3x 8TB Seagate Exos (RAID0 - QVR Pro cameras recording)
Network stuff (priority use of 10GbE): QHora-301W, QSW-804-4C, ASUS XG-U2008 and TP-Link TL-SG1008MP. Protected by 2x APC CYBERFORT II 700VA.
cbadoud
Starting out
Posts: 14
Joined: Sun Jul 30, 2017 12:28 am

Re: Getting audio working for Windows 10 VM+GPGPU

Post by cbadoud »

I have nearly the same NAS as you (TVS-882BRT3), I've made the BIOS upgrade, I have a 1050Ti and I'm using HDMI sound output, but I still have big sound problems (cracks and then bugging completely). In my case, I admit that I tried a very special solution: a HDMI sound splitter (J-Tech Digital 4K 60HZ HDMI Audio Extractor Converter), because my screen doesn't have sound output. @antik: could you explain more precisely how you are outputting sound?
newegg
Starting out
Posts: 24
Joined: Mon Feb 10, 2014 10:11 am

Re: Getting audio working for Windows 10 VM+GPGPU

Post by newegg »

cbadoud wrote: Fri Oct 11, 2019 10:00 pm I have nearly the same NAS as you (TVS-882BRT3), I've made the BIOS upgrade, I have a 1050Ti and I'm using HDMI sound output, but I still have big sound problems (cracks and then bugging completely). In my case, I admit that I tried a very special solution: a HDMI sound splitter (J-Tech Digital 4K 60HZ HDMI Audio Extractor Converter), because my screen doesn't have sound output. @antik: could you explain more precisely how you are outputting sound?
Hi~~
Please switch device to MSI-mode by the MSI utility v2
https://forums.guru3d.com/threads/windo ... ts.378044/
http://www.mediafire.com/file/2kkkvko7e ... til_v2.zip

I tried it with Win10, and it works.
newegg
Starting out
Posts: 24
Joined: Mon Feb 10, 2014 10:11 am

Re: Getting audio working for Windows 10 VM+GPGPU

Post by newegg »

Hi Folks,

Here is my checking steps as below:

Code: Select all

[~] # /QVS/usr/sbin/lspci | grep NVIDIA
12:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050] (rev a1)
12:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
[~] # /QVS/usr/sbin/lspci -kvvs 12:00 | grep MSI   (Before VM power on)
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express (v2) Legacy Endpoint, MSI 00
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express (v2) Endpoint, MSI 00
[~] #
[~] # /QVS/usr/sbin/lspci -kvvs 12:00 | grep MSI (After VM power on)
        Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express (v2) Legacy Endpoint, MSI 00
        Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express (v2) Endpoint, MSI 00
Last edited by newegg on Tue Oct 15, 2019 10:03 am, edited 1 time in total.
denisj
Know my way around
Posts: 149
Joined: Tue Dec 08, 2009 4:01 pm

Re: Getting audio working for Windows 10 VM+GPGPU

Post by denisj »

I still play under Windows 8 and every think it' near ok ...
But sometime when I watch a movie, the movie begin to play like in slow motion anche the audio crack..
Then I close and reopen the player software (can be VLC, Chrome, Media Player etc...) and turn back ok.
:-(

Denis
- Qnap TVS-882 (i5/16GB version)
- 4 X 4TB WD RED (Raid5)
- Zotac ZT-P10510B-10L GeForce GTX 1050 Ti 4GB GDDR5 (for Win8.1 VM)
- Samsung MZ-76E500B SSD 860 EVO 500 GB (for Win8.1 VM)
- Qnap M.2 Card (QM2-2P-244A) with Samsung 970 EVO, 500 GB, M.2, NVMe (for SSD cash)
- Crucial CT2K8G4DFD824A 16 GB Kit (8 GB x2)
newegg
Starting out
Posts: 24
Joined: Mon Feb 10, 2014 10:11 am

Re: Getting audio working for Windows 10 VM+GPGPU

Post by newegg »

denisj wrote: Mon Oct 14, 2019 12:02 pm I still play under Windows 8 and every think it' near ok ...
But sometime when I watch a movie, the movie begin to play like in slow motion anche the audio crack..
Then I close and reopen the player software (can be VLC, Chrome, Media Player etc...) and turn back ok.
:-(

Denis
Can you provide the status of MSI here?
I just tried to install a VM with Windows 8.1, and saw the status of MSI were "MSI: Enable-" of NVIDIA GPU cards.
After that, I tried to switch device to MSI-mode by the MSI utility v2 in my Windows 8.1, it also works.
denisj
Know my way around
Posts: 149
Joined: Tue Dec 08, 2009 4:01 pm

Re: Getting audio working for Windows 10 VM+GPGPU

Post by denisj »

Sorry... maybe I forgeted... what is the "status of MSI" ?
and where I can see it please ?
Thanks
Denis
- Qnap TVS-882 (i5/16GB version)
- 4 X 4TB WD RED (Raid5)
- Zotac ZT-P10510B-10L GeForce GTX 1050 Ti 4GB GDDR5 (for Win8.1 VM)
- Samsung MZ-76E500B SSD 860 EVO 500 GB (for Win8.1 VM)
- Qnap M.2 Card (QM2-2P-244A) with Samsung 970 EVO, 500 GB, M.2, NVMe (for SSD cash)
- Crucial CT2K8G4DFD824A 16 GB Kit (8 GB x2)
newegg
Starting out
Posts: 24
Joined: Mon Feb 10, 2014 10:11 am

Re: Getting audio working for Windows 10 VM+GPGPU

Post by newegg »

newegg wrote: Mon Oct 14, 2019 11:21 am Hi Folks,

Here is my checking steps as below:

Code: Select all

[~] # /QVS/usr/sbin/lspci | grep NVIDIA
12:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050] (rev a1)
12:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
[~] # /QVS/usr/sbin/lspci -kvvs 12:00 | grep MSI   (Before VM power on)
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express (v2) Legacy Endpoint, MSI 00
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express (v2) Endpoint, MSI 00
[~] #
[~] # /QVS/usr/sbin/lspci -kvvs 12:00 | grep MSI (After VM power on)
        Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express (v2) Legacy Endpoint, MSI 00
        Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express (v2) Endpoint, MSI 00
Hi Denis,

Please see the above command to check, power on your VM first, then run the command to find your GPU cards:

Code: Select all

/QVS/usr/sbin/lspci | grep NVIDIA
Once you got the bus numbers (01:00), run this command:

Code: Select all

/QVS/usr/sbin/lspci -kvvs 01:00 | grep MSI
Last edited by newegg on Tue Oct 15, 2019 10:03 am, edited 1 time in total.
denisj
Know my way around
Posts: 149
Joined: Tue Dec 08, 2009 4:01 pm

Re: Getting audio working for Windows 10 VM+GPGPU

Post by denisj »

So the first command:

Code: Select all

[/QVS/usr/sbin] # /QVS/usr/sbin/lspci | grep NVIDIA
01:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
The second and the tirth command give me no results :-(

Denis
- Qnap TVS-882 (i5/16GB version)
- 4 X 4TB WD RED (Raid5)
- Zotac ZT-P10510B-10L GeForce GTX 1050 Ti 4GB GDDR5 (for Win8.1 VM)
- Samsung MZ-76E500B SSD 860 EVO 500 GB (for Win8.1 VM)
- Qnap M.2 Card (QM2-2P-244A) with Samsung 970 EVO, 500 GB, M.2, NVMe (for SSD cash)
- Crucial CT2K8G4DFD824A 16 GB Kit (8 GB x2)
newegg
Starting out
Posts: 24
Joined: Mon Feb 10, 2014 10:11 am

Re: Getting audio working for Windows 10 VM+GPGPU

Post by newegg »

denisj wrote: Mon Oct 14, 2019 8:47 pm So the first command:

Code: Select all

[/QVS/usr/sbin] # /QVS/usr/sbin/lspci | grep NVIDIA
01:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
The second and the tirth command give me no results :-(

Denis
In your case, please try following commands to get the status of MSI:

Code: Select all

/QVS/usr/sbin/lspci -kvvs 01:00 | grep MSI (Before VM power on)
/QVS/usr/sbin/lspci -kvvs 01:00 | grep MSI (After VM power on)
Last edited by newegg on Tue Oct 15, 2019 10:04 am, edited 1 time in total.
denisj
Know my way around
Posts: 149
Joined: Tue Dec 08, 2009 4:01 pm

Re: Getting audio working for Windows 10 VM+GPGPU

Post by denisj »

Ok... now it's work :-)
This is before power on the VM:

Code: Select all

[~] # /QVS/usr/sbin/lspci -kvvs 01:00 | grep MSI
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express (v2) Legacy Endpoint, MSI 00
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express (v2) Endpoint, MSI 00
And this is after I power on the Win8.1 VM

Code: Select all

/QVS/usr/sbin/lspci -kvvs 01:00 | grep MSI
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express (v2) Legacy Endpoint, MSI 00
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express (v2) Endpoint, MSI 00
It's like the same think.

Sorry... but what is this for please ?

Thanks again
Denis
- Qnap TVS-882 (i5/16GB version)
- 4 X 4TB WD RED (Raid5)
- Zotac ZT-P10510B-10L GeForce GTX 1050 Ti 4GB GDDR5 (for Win8.1 VM)
- Samsung MZ-76E500B SSD 860 EVO 500 GB (for Win8.1 VM)
- Qnap M.2 Card (QM2-2P-244A) with Samsung 970 EVO, 500 GB, M.2, NVMe (for SSD cash)
- Crucial CT2K8G4DFD824A 16 GB Kit (8 GB x2)
newegg
Starting out
Posts: 24
Joined: Mon Feb 10, 2014 10:11 am

Re: Getting audio working for Windows 10 VM+GPGPU

Post by newegg »

This is what I saw from WIKI
https://wiki.archlinux.org/index.php/PC ... video_card
Slowed down audio pumped through HDMI on the video card
For some users VM's audio slows down/starts stuttering/becomes demonic after a while when it is pumped through HDMI on the video card. This usually also slows down graphics. A possible solution consists of enabling MSI (Message Signaled-Based Interrupts) instead of the default (Line-Based Interrupts).

In order to check whether MSI is supported or enabled, run the following command as root:

Code: Select all

# lspci -vs $device | grep 'MSI:'
where `$device` is the card's address (e.g. `01:00.0`).
The output should be similar to:

Code: Select all

Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+
A - after Enable means MSI is supported, but not used by the VM, while a + says that the VM is using it.
denisj
Know my way around
Posts: 149
Joined: Tue Dec 08, 2009 4:01 pm

Re: Getting audio working for Windows 10 VM+GPGPU

Post by denisj »

Great help Newegg !!! ...thanks a lot.

I just find this page that explain how to activate MSI on card (audio and video).
Also here is a video (at 1:11) that explain how to activate using a windows *.exe program.

So before it was with "MSI: Enable-":

Code: Select all

[admin@NAS ~]# sudo lspci -vs 01:00
01:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: ZOTAC International (MCO) Ltd. Device 2454
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at de000000 (32-bit, non-prefetchable) [size=16M]
        Memory at 2fe0000000 (64-bit, prefetchable) [size=256M]
        Memory at 2ff0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at e000 [size=128]
        Expansion ROM at df000000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+       <<<<<<<<<
        Capabilities: [78] Express Legacy Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [250] Latency Tolerance Reporting
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [420] Advanced Error Reporting
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Capabilities: [900] Secondary PCI Express
                LnkCtl3: LnkEquIntrruptEn-, PerformEqu-
                LaneErrStat: 0
        Kernel driver in use: vfio-pci

01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
        Subsystem: ZOTAC International (MCO) Ltd. Device 2454
        Flags: bus master, fast devsel, latency 0, IRQ 17
        Memory at df080000 (32-bit, non-prefetchable) [size=16K]
        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
And now is with "MSI: Enable+":

Code: Select all

[admin@NAS ~]# sudo lspci -vs 01:00
01:00.0 VGA compatible controller: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: ZOTAC International (MCO) Ltd. Device 2454
        Flags: bus master, fast devsel, latency 0, IRQ 157
        Memory at de000000 (32-bit, non-prefetchable) [size=16M]
        Memory at 2fe0000000 (64-bit, prefetchable) [size=256M]
        Memory at 2ff0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at e000 [size=128]
        Expansion ROM at df000000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+       <<<<<<<<<
        Capabilities: [78] Express Legacy Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [250] Latency Tolerance Reporting
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [420] Advanced Error Reporting
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Capabilities: [900] Secondary PCI Express
                LnkCtl3: LnkEquIntrruptEn-, PerformEqu-
                LaneErrStat: 0
        Kernel driver in use: vfio-pci

01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
        Subsystem: ZOTAC International (MCO) Ltd. Device 2454
        Flags: bus master, fast devsel, latency 0, IRQ 158
        Memory at df080000 (32-bit, non-prefetchable) [size=16K]
        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
Now I have to go to work... but when I'll turn back, I'll test it watching some movies :-)

Thanks a lot again !!!

Denis
- Qnap TVS-882 (i5/16GB version)
- 4 X 4TB WD RED (Raid5)
- Zotac ZT-P10510B-10L GeForce GTX 1050 Ti 4GB GDDR5 (for Win8.1 VM)
- Samsung MZ-76E500B SSD 860 EVO 500 GB (for Win8.1 VM)
- Qnap M.2 Card (QM2-2P-244A) with Samsung 970 EVO, 500 GB, M.2, NVMe (for SSD cash)
- Crucial CT2K8G4DFD824A 16 GB Kit (8 GB x2)
cbadoud
Starting out
Posts: 14
Joined: Sun Jul 30, 2017 12:28 am

Re: Getting audio working for Windows 10 VM+GPGPU

Post by cbadoud »

@newegg: YOU SAVED MY LIFE! Thank you very much, I've now solved the problem that made me angry during nearly 2 years! I've also learned a lot about the "latency" problem that affect Windows 10.

Anyway, even if sound if 99.9% OK (some cracks remains when system activity is too high), the overall latency of my Win 10 level is very bad (LatencyMon give me 4 long red bars!). I would like to know if it's normal, if like me, you have SSD cache in writeback mode? I've also installed Virtio drivers for my system disk, and results seem excellent (e.g. 2526 MB/s in sequential reads Q32T1 and 36 MB/s in 4KiB Q1T1), so I wonder why I still have these red bars (the problematic drivers are ataport.SYS + storpor.SYS).
Last edited by cbadoud on Tue Oct 22, 2019 8:55 pm, edited 1 time in total.
User avatar
antik
Know my way around
Posts: 244
Joined: Mon May 18, 2015 2:51 pm

Re: Getting audio working for Windows 10 VM+GPGPU

Post by antik »

Does anyone have practical experience with playing Diablo 3 on QNAP NAS via VM with Win10 and GTX 1050 Ti graphics card?
Under the "quality" setting, the game is not so good and I have only around 30-55 FPS. After reducing various features in the game I get 50-75 FPS, but on youtube I saw that 1050Ti can handle + - 130 FPS.
Do you think the problem is within the "PCIe 3.0 x8" interface? (GPU can x16)
TVS-h1288X-W1250-128G (850W) + T3 card + QXG-10G1T + GIGABYTE RTX 4080 Super Gaming OC 16G (Silent FW) + 2x 2TB M.2 NVMe Kingston KC3000 (RAID0 - apps, Qsync, VM's) + 12x 2,5“ 3,84TB SATA SSD Kingston DC600M (RAID5 - VM's, data).

TVS-1282T3-i7-48G (450W) + QXG-10G1T + PALiT GeForce GTX 1660 Super GP OC + 2x 1TB M.2 NVMe ADATA SX8200PNP (RAID0 - apps) + 4x 2,5“ 3,84TB SATA SSD Samsung PM883 (RAID5 - data backup) + 8x 8TB Seagate IronWolf Pro (RAID6 - data backup).
TS-677-16GB + 1x 256GB SSD Samsung EVO (apps) + 3x 8TB Seagate Exos (RAID0 - QVR Pro cameras recording)
Network stuff (priority use of 10GbE): QHora-301W, QSW-804-4C, ASUS XG-U2008 and TP-Link TL-SG1008MP. Protected by 2x APC CYBERFORT II 700VA.
Post Reply

Return to “Virtualization Station”