Hallo Community,
Habe derzeit Probleme mit dem Durchschleifen einer dedizierten NVIDIA GTX 860M auf meinem Notebook mit KVM/QEMU.
kurze Vorabinfos:
Gigabyte P34G V2 (Notebook)
Intel i7 mit VT-x/VT-d Support
Mainboard mit VT-x/VT-d Support
Auf dem Notebook befinden sich also eine Intel IGP und eine dedizierte NVIDIA-Grafikkarte. Gehalten habe ich mich an die Anleitung aus dem
Arch-Forum.
Also schnell alle nötigen Infos sammeln:
lspci -nn | grep NVIDIA
Code:
01:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 860M] [10de:1392] (rev a2)
Dann die Grafikkarte "unbinden" und an vfio-pci binden: (mittels Skript)
Code:
#!/bin/bash
modprobe vfio-pci
for dev in "$@"; do
vendor=$(cat /sys/bus/pci/devices/$dev/vendor)
device=$(cat /sys/bus/pci/devices/$dev/device)
if [ -e /sys/bus/pci/devices/$dev/driver ]; then
echo $dev > /sys/bus/pci/devices/$dev/driver/unbind
fi
echo $vendor $device > /sys/bus/pci/drivers/vfio-pci/new_id
done
Code:
vfio-bind 0000:01:00.0
Ein Test mit:
Code:
qemu-system-x86_64 --enable-kvm -M q35 -m 4096 -cpu host -smp 4,sockets=1,cores=4,threads=1 -bios /usr/share/qemu/bios.bin -vga none -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on
schmeißt folgende Fehlermeldung:
Code:
qemu-system-x86_64: -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on: vfio: Device does not support requested feature x-vga
qemu-system-x86_64: -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on: vfio: failed to get device 0000:01:00.0
qemu-system-x86_64: -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on: Device initialization failed.
qemu-system-x86_64: -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on: Device 'vfio-pci' could not be initialized
Habe ich etwas vergessen? Ich kann mir beim besten Willen nicht vorstellen, dass das Gerät x-vga nicht unterstützt.
Starte ich die VM ohne das x-vga Feature, startet diese zwar, aber dmesg zeigt folgenden Output:
Code:
[ 6246.163088] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x1e@0x258
[ 6246.163105] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
[ 6248.396971] vfio-pci 0000:01:00.0: Invalid ROM contents
Und nun?
Lesezeichen