February 13, 20233 yr Hallo zusammen, ich nutze seit einiger Zeit Linux VMs und als GPU meine GTX 1070. An sich gibt es kaum Probleme bei der Nutzung der VM mit GPU, abgesehen davon das ich nachdem die VM heruntergefahren ist, immer noch der letzte Frame zu sehen ist und mein Display das die ganze Zeit anzeigt. Bei Windows VMs passiert das nicht. Wenn ich die VM ausschalte zeigt der kein Bild mehr an und das Display geht in standby. Hat jemand das Problem auch schon gehabt oder weiß wie man das lösen kann? Muss die Lösung in der VM stattfinden oder in Unraid? Zusätzliche Infos: Der Rechner ist ein Ryzen 3800XT Build und nur eine GTX 1070. (Keine zweite Grafikkarte) In der VM nutze ich die proprietären Treiber von nvidia. Die Grafikkarte wird nicht über vfio-bind durchgereicht. Es laufen 2 User Skripte auf dem Unraid die mit der Grafikkarte zu tun haben. 1. Script: GPU Unbind - At first Array Start #!/bin/bash echo 0 > /sys/class/vtconsole/vtcon0/bind echo 0 > /sys/class/vtconsole/vtcon1/bind echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind 2. Script: GPU Powersave - hourly - (Von Spaceinvader One) #!/bin/bash # check for driver command -v nvidia-smi &> /dev/null || { echo >&2 "nvidia driver is not installed you will need to install this from community applications ... exiting."; exit 1; } echo "Nvidia drivers are installed" echo echo "I can see these Nvidia gpus in your server" echo nvidia-smi --list-gpus echo echo "-------------------------------------------------------------" # set persistence mode for gpus ( When persistence mode is enabled the NVIDIA driver remains loaded even when no active processes, # stops modules being unloaded therefore stops settings changing when modules are reloaded nvidia-smi --persistence-mode=1 #query power state gpu_pstate=$(nvidia-smi --query-gpu="pstate" --format=csv,noheader); #query running processes by pid using gpu gpupid=$(nvidia-smi --query-compute-apps="pid" --format=csv,noheader); #check if pstate is zero and no processes are running by checking if any pid is in string if [ "$gpu_pstate" == "P0" ] && [ -z "$gpupid" ]; then echo "No pid in string so no processes are running" fuser -kv /dev/nvidia* echo "Power state is" echo "$gpu_pstate" # show what power state is else echo "Power state is" echo "$gpu_pstate" # show what power state is fi echo echo "-------------------------------------------------------------" echo echo "Power draw is now" # Check current power draw of GPU nvidia-smi --query-gpu=power.draw --format=csv exit Vielen Dank im voraus.
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.