Grafikkarte will einfach nicht


Recommended Posts

Servus,

ich habe heute eine VM (Linux Mint) erstellt und wollte meine Grafikkarte durchreichen....

Nach mehreren Stunden versuchen und probieren bin ich nun komplett ratlos was ich machen kann oder ob ich etwas falsch eingestellt habe.

 

Hier die XML:

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm'>
  <name>Linux - Josefine</name>
  <uuid>adc3d238-6942-6e11-b8da-54f432aa2a3d</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Linux" icon="linux.png" os="linux"/>
  </metadata>
  <memory unit='KiB'>33030144</memory>
  <currentMemory unit='KiB'>33030144</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>12</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='4'/>
    <vcpupin vcpu='1' cpuset='14'/>
    <vcpupin vcpu='2' cpuset='5'/>
    <vcpupin vcpu='3' cpuset='15'/>
    <vcpupin vcpu='4' cpuset='6'/>
    <vcpupin vcpu='5' cpuset='16'/>
    <vcpupin vcpu='6' cpuset='7'/>
    <vcpupin vcpu='7' cpuset='17'/>
    <vcpupin vcpu='8' cpuset='8'/>
    <vcpupin vcpu='9' cpuset='18'/>
    <vcpupin vcpu='10' cpuset='9'/>
    <vcpupin vcpu='11' cpuset='19'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-q35-5.1'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/adc3d238-6942-6e11-b8da-54f432aa2a3d_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='on'>
    <topology sockets='1' dies='1' cores='6' threads='2'/>
    <cache mode='passthrough'/>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='writeback'/>
      <source file='/mnt/user/domains/Linux - Josefine/vdisk1.img'/>
      <target dev='hdc' bus='virtio'/>
      <boot order='1'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'/>
    <controller type='pci' index='1' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x10'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0x11'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
    </controller>
    <controller type='pci' index='3' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='3' port='0x12'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
    </controller>
    <controller type='pci' index='4' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='4' port='0x13'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
    </controller>
    <controller type='pci' index='5' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='5' port='0x14'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </controller>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:97:60:b9'/>
      <source bridge='br0'/>
      <model type='virtio-net'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <channel type='unix'>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0' keymap='de'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
      </source>
      <rom file='/mnt/disk1/Grafik-Bios/Asus.GTX1050Ti.4096.171212.rom'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
</domain>

 

HVM und IOMMU sind aktiviert. Doch der fehler bleibt: Linux Mint erkennt die Grafikkarte doch startet sie nicht.


Die VM spuckt mir bei Systemberichte folgendes aus:

Device-2: Nvidia GP107 [GeForce GTX 1050 Ti] vendor: PNY driver: nvidia v: 460.80
bus ID: 06:00.0 chip ID: 10de:1c82
Display: x11 server: X.Org 1.20.9 driver:  modesetting unloaded: fbdev, vesa
resouliton: 1024x768~60Hz

 

Wie bekomme ich es hin, dass die richtig durchgereicht wird?

 

Link to comment

Vfio war nicht gebunden - nun ist der Haken drin...

jetzt kommt bei Linux:

 

Device-2: NVIDIA GP107 [GeForce GTX 1050 Ti] vendor: PNY driver: nvidia v:460.80
bus ID: 06:00.0 chip ID: 10de:1c82
Display: x11 server: X.Org 1.20.9 driver: nvidia
unloaded: fbdev, modesetting, nouveau, vesa resolution: 1024x768~60Hz

 

Und Unraid hat eine iGPU 😅

Link to comment

Und geht es jetzt oder immer noch nicht? Was sagen die VM Logs? Wobei die GPU ja in Linux angezeigt wird, wie du sagst. 

 

 

 

Teste vielleicht mal mit Ubuntu und/oder wirf mal testweise die virtuelle GPU raus (VNC) um die GPU als primäre Ausgabe zu erzwingen?!

 

Auch die Frage ob die ROM passt. Da steht ja PNY und die ROM Asus?!

 

 

Link to comment
6 minutes ago, mgutt said:

Und geht es jetzt oder immer noch nicht?

Leider nicht 😞

 

6 minutes ago, mgutt said:

Was sagen die VM Logs?



ErrorWarningSystemArrayLogin

-mon chardev=charmonitor,id=monitor,mode=control \
-rtc base=utc,driftfix=slew \
-global kvm-pit.lost_tick_policy=delay \
-no-hpet \
-no-shutdown \
-boot strict=on \
-device pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x2 \
-device pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x2.0x1 \
-device pcie-root-port,port=0x12,chassis=3,id=pci.3,bus=pcie.0,addr=0x2.0x2 \
-device pcie-root-port,port=0x13,chassis=4,id=pci.4,bus=pcie.0,addr=0x2.0x3 \
-device pcie-root-port,port=0x14,chassis=5,id=pci.5,bus=pcie.0,addr=0x2.0x4 \
-device pcie-root-port,port=0x15,chassis=6,id=pci.6,bus=pcie.0,addr=0x2.0x5 \
-device pcie-pci-bridge,id=pci.7,bus=pci.1,addr=0x0 \
-device ich9-usb-ehci1,id=usb,bus=pcie.0,addr=0x7.0x7 \
-device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pcie.0,multifunction=on,addr=0x7 \
-device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pcie.0,addr=0x7.0x1 \
-device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pcie.0,addr=0x7.0x2 \
-device virtio-serial-pci,id=virtio-serial0,bus=pci.2,addr=0x0 \
-blockdev '{"driver":"file","filename":"/mnt/user/domains/Linux - Josefine/vdisk1.img","node-name":"libvirt-1-storage","cache":{"direct":false,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-1-format","read-only":false,"cache":{"direct":false,"no-flush":false},"driver":"qcow2","file":"libvirt-1-storage","backing":null}' \
-device virtio-blk-pci,bus=pci.4,addr=0x0,drive=libvirt-1-format,id=virtio-disk2,bootindex=1,write-cache=on \
-netdev tap,fd=33,id=hostnet0 \
-device virtio-net,netdev=hostnet0,id=net0,mac=52:54:00:97:60:b9,bus=pci.3,addr=0x0 \
-chardev pty,id=charserial0 \
-device isa-serial,chardev=charserial0,id=serial0 \
-chardev socket,id=charchannel0,fd=34,server,nowait \
-device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 \
-device usb-tablet,id=input0,bus=usb.0,port=1 \
-vnc 0.0.0.0:0,websocket=5700 \
-k de \
-device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pcie.0,addr=0x1 \
-device vfio-pci,host=0000:01:00.0,id=hostdev0,bus=pci.5,addr=0x0 \
-device vfio-pci,host=0000:01:00.1,id=hostdev1,bus=pci.6,addr=0x0 \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on
2021-07-07 11:28:27.170+0000: Domain id=10 is tainted: high-privileges
2021-07-07 11:28:27.170+0000: Domain id=10 is tainted: host-cpu
char device redirected to /dev/pts/0 (label charserial0)
2021-07-07T11:29:43.378984Z qemu-system-x86_64: terminating on signal 15 from pid 4733 (/usr/sbin/libvirtd)
2021-07-07 11:29:45.001+0000: shutting down, reason=shutdown
2021-07-07 11:29:56.499+0000: starting up libvirt version: 6.5.0, qemu version: 5.1.0, kernel: 5.10.28-Unraid, hostname: Server
LC_ALL=C \
PATH=/bin:/sbin:/usr/bin:/usr/sbin \
HOME='/var/lib/libvirt/qemu/domain-11-Linux - Josefine' \
XDG_DATA_HOME='/var/lib/libvirt/qemu/domain-11-Linux - Josefine/.local/share' \
XDG_CACHE_HOME='/var/lib/libvirt/qemu/domain-11-Linux - Josefine/.cache' \
XDG_CONFIG_HOME='/var/lib/libvirt/qemu/domain-11-Linux - Josefine/.config' \
QEMU_AUDIO_DRV=none \
/usr/local/sbin/qemu \
-name 'guest=Linux - Josefine,debug-threads=on' \
-S \
-object 'secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-11-Linux - Josefine/master-key.aes' \
-blockdev '{"driver":"file","filename":"/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd","node-name":"libvirt-pflash0-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash0-format","read-only":true,"driver":"raw","file":"libvirt-pflash0-storage"}' \
-blockdev '{"driver":"file","filename":"/etc/libvirt/qemu/nvram/adc3d238-6942-6e11-b8da-54f432aa2a3d_VARS-pure-efi.fd","node-name":"libvirt-pflash1-storage","auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"}' \
-machine pc-q35-5.1,accel=kvm,usb=off,dump-guest-core=off,mem-merge=off,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format \
-cpu host,migratable=on,host-cache-info=on,l3-cache=off \
-m 32256 \
-overcommit mem-lock=off \
-smp 12,sockets=1,dies=1,cores=6,threads=2 \
-uuid adc3d238-6942-6e11-b8da-54f432aa2a3d \
-no-user-config \
-nodefaults \
-chardev socket,id=charmonitor,fd=31,server,nowait \
-mon chardev=charmonitor,id=monitor,mode=control \
-rtc base=utc,driftfix=slew \
-global kvm-pit.lost_tick_policy=delay \
-no-hpet \
-no-shutdown \
-boot strict=on \
-device pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x2 \
-device pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x2.0x1 \
-device pcie-root-port,port=0x12,chassis=3,id=pci.3,bus=pcie.0,addr=0x2.0x2 \
-device pcie-root-port,port=0x13,chassis=4,id=pci.4,bus=pcie.0,addr=0x2.0x3 \
-device pcie-root-port,port=0x14,chassis=5,id=pci.5,bus=pcie.0,addr=0x2.0x4 \
-device pcie-root-port,port=0x15,chassis=6,id=pci.6,bus=pcie.0,addr=0x2.0x5 \
-device pcie-pci-bridge,id=pci.7,bus=pci.1,addr=0x0 \
-device ich9-usb-ehci1,id=usb,bus=pcie.0,addr=0x7.0x7 \
-device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pcie.0,multifunction=on,addr=0x7 \
-device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pcie.0,addr=0x7.0x1 \
-device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pcie.0,addr=0x7.0x2 \
-device virtio-serial-pci,id=virtio-serial0,bus=pci.2,addr=0x0 \
-blockdev '{"driver":"file","filename":"/mnt/user/domains/Linux - Josefine/vdisk1.img","node-name":"libvirt-1-storage","cache":{"direct":false,"no-flush":false},"auto-read-only":true,"discard":"unmap"}' \
-blockdev '{"node-name":"libvirt-1-format","read-only":false,"cache":{"direct":false,"no-flush":false},"driver":"qcow2","file":"libvirt-1-storage","backing":null}' \
-device virtio-blk-pci,bus=pci.4,addr=0x0,drive=libvirt-1-format,id=virtio-disk2,bootindex=1,write-cache=on \
-netdev tap,fd=33,id=hostnet0 \
-device virtio-net,netdev=hostnet0,id=net0,mac=52:54:00:97:60:b9,bus=pci.3,addr=0x0 \
-chardev pty,id=charserial0 \
-device isa-serial,chardev=charserial0,id=serial0 \
-chardev socket,id=charchannel0,fd=34,server,nowait \
-device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=org.qemu.guest_agent.0 \
-device usb-tablet,id=input0,bus=usb.0,port=1 \
-vnc 0.0.0.0:0,websocket=5700 \
-k de \
-device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pcie.0,addr=0x1 \
-device vfio-pci,host=0000:01:00.0,id=hostdev0,bus=pci.5,addr=0x0 \
-device vfio-pci,host=0000:01:00.1,id=hostdev1,bus=pci.6,addr=0x0 \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on
2021-07-07 11:29:56.499+0000: Domain id=11 is tainted: high-privileges
2021-07-07 11:29:56.499+0000: Domain id=11 is tainted: host-cpu
char device redirected to /dev/pts/0 (label charserial0)
2021-07-07T11:30:36.878053Z qemu-system-x86_64: terminating on signal 15 from pid 4733 (/usr/sbin/libvirtd)
2021-07-07 11:30:38.504+0000: shutting down, reason=shutdown

Sagt mir alles nichts, alles ist weiß bzw. einzelndes blau

 

8 minutes ago, mgutt said:

Wobei die GPU ja in Linux angezeigt wird, wie du sagst.

Angezeigt wird es unter System bei Linux

 

8 minutes ago, mgutt said:

wirf mal testweise die virtuelle GPU raus (VNC) um die GPU als primäre Ausgabe zu erzwingen

Wie sehe ich dann ob das klappt? 😅

 

9 minutes ago, mgutt said:

Auch die Frage ob die ROM passt. Da steht ja PNY und die ROM Asus?!

War ein vergeblicher Versuch - jetzt ist es dort leer xD

Link to comment
3 minutes ago, Firemaster640 said:

Wie sehe ich dann ob das klappt? 😅

 

Häh? Ja in dem du einen Monitor bei der GPU anschließt? Hast du etwa keinen angeschlossen?!

 

PS bitte immer mit einer neuen VM anfangen. Beim Erstellen einer VM erstellt Unraid ein virtuelles Mainboard/BIOS und ich weiß nicht wie lustig es das findet, wenn auf einmal eine GPU fehlt.

Link to comment
3 minutes ago, mgutt said:

Häh? Ja in dem du einen Monitor bei der GPU anschließt? Hast du etwa keinen angeschlossen?!

Der Unraid PC steht aufm Schrank und ich greife über das Netzwerk auf ihn zu, bislang über VNC. Wenn nur die Grafikkarte angesteuert wird (zum Glück habe ich ein 3m HDMI Kabel) funktioniert er scheinbar - er hängt sich jedoch am Signalton zumindest aukustisch auf.

 

5 minutes ago, mgutt said:

PS bitte immer mit einer neuen VM anfangen. Beim Erstellen einer VM erstellt Unraid ein virtuelles Mainboard/BIOS und ich weiß nicht wie lustig es das findet, wenn auf einmal eine GPU fehlt.

Das erklärt eventuell den Signalton 😅

Link to comment
11 minutes ago, Firemaster640 said:

Wenn nur die Grafikkarte angesteuert wird (zum Glück habe ich ein 3m HDMI Kabel) funktioniert er scheinbar

Das heißt du hattest zum Zeitpunkt von deinem 1. Beitrag gar keinen Monitor angeschlossen gehabt?! Wie wolltest du denn jemals erfahren, dass die GPU überhaupt läuft?! 🤔 Und wozu brauchst du dann überhaupt die GPU?

 

11 minutes ago, Firemaster640 said:

er hängt sich jedoch am Signalton zumindest aukustisch auf.

Der ganze Server? Sehr ungewöhnlich.

 

Hattest du nach dem binden an VFIO den Server neu gestartet? Gab es von der GPU auch einen USB Eintrag, den du an VFIO gebunden hast? Ist die iGPU im BIOS als primäre GPU ausgewählt (und nicht die Nvidia GPU)?

Link to comment
1 minute ago, mgutt said:

Und wozu brauchst du dann überhaupt die GPU?

Parsec xD

1 minute ago, mgutt said:

Der ganze Server?

Meinte die VM damit

 

2 minutes ago, mgutt said:

Hattest du nach dem binden an VFIO den Server neu gestartet?

ja

2 minutes ago, mgutt said:

Gab es von der GPU auch einen USB Eintrag, den du an VFIO gebunden hast?

Wo kann ich das lesen?

2 minutes ago, mgutt said:

Ist die iGPU im BIOS als primäre GPU ausgewählt (und nicht die Nvidia GPU)?

Jop, hab ich getestet bevor ich den aufm Schrank geschmissen habe xD

Link to comment
19 minutes ago, Firemaster640 said:

Wo kann ich das lesen?

Würde dann bei den System Devices direkt unter/über der GPU als Eintrag auftauchen. Gilt auch für Audio:

image.png.bffc8cf38f9f5346738866cf058abbb2.png

 

Da steht dann überall Nvidia dran. Das alles muss an VFIO gebunden und auch alles an die VM durchgeschliffen werden.

 

21 minutes ago, Firemaster640 said:

Meinte die VM damit

Die verursacht dann ein Piepen auf dem Mainboard-Speaker? Dann sollte denke ich was in den System Logs von Unraid zu sehen sein.

 

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.