gpu_accelerated_vm_with_kvm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gpu_accelerated_vm_with_kvm [08.12.2018 08:27] – [using a vm with just the forwarded GPU] Pascal Sutergpu_accelerated_vm_with_kvm [29.01.2023 22:39] (current) – [Re-Try RDP + passthrough] Pascal Suter
Line 316: Line 316:
  
 I have now updated my Bios hosts bios to the latest version (it was actually quite outdated already) and have also enabled Coherency support for the IOMMU stuff in the bios. I usually don't like changing two parameters at once to sovle an issue, but for now lets just try it as it takes at least a day to reproduce the problem.. i can then roll back the bios setting and see if it was the update alone that resolved the issue should my current trials be successful.  I have now updated my Bios hosts bios to the latest version (it was actually quite outdated already) and have also enabled Coherency support for the IOMMU stuff in the bios. I usually don't like changing two parameters at once to sovle an issue, but for now lets just try it as it takes at least a day to reproduce the problem.. i can then roll back the bios setting and see if it was the update alone that resolved the issue should my current trials be successful. 
 +
 +===== Re-Try RDP + passthrough =====
 +the key to a smooth user experience as far as framerate etc. goes seems to be to use AVC444 which on Windows supports NVENC (using the Nvidia Card to encode the video stream for RDP) 
 +
 +to enable this on the windows side: 
 +  - Open Run (Win+R). Type gpedit.msc
 +  - Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Remote Session Environment
 +    - Enable "Prioritize H.264/AVC 444 Graphics mode for Remote Desktop..."
 +    - Enable "Configure H.264/AVC hardware encoding for Remote Desktop..."
 +
 +
 +on the client side with xrdp, get the latest version (i worked with 3.0) from https://www.freerdp.com/ where they offer pre-built binaries for many distributions. the binaries are built on a daily basis and include the stable branch. with that, use the ''/gfx:AVC444'' or ''/gfx-h264:AVC444'' option to connect to the server 
 +  /opt/freerdp-nightly/bin/xfreerdp /gfx-h264:AVC444 /u:"Pascal Suter" /v:192.168.168.101 /dynamic-resolution
 +
 +to verify that nvenc is being used, open the task manager and go to the performance tab. the GPU should show video encoding workload. 
 +
  
  • gpu_accelerated_vm_with_kvm.1544254071.txt.gz
  • Last modified: 08.12.2018 08:27
  • by Pascal Suter