vga passthrough - Fehlermeldung

Plopp79

Active Member
Nov 11, 2016
24
0
41
46
Hallo Zusammen,

ich benötige abermals eure Hilfe. Da ich keine 3D Anwendung in einer Windows VM zum starten bekomme, versuche ich das jetzt doch mittels GraKa Passthrough. Dabei bin ich der Anleitung auf der offiziellen Proxmox Internetseite gefolgt: https://pve.proxmox.com/wiki/Pci_passthrough.
Allerdings bekomme ich folgende Fehlermeldung beim Starten der VM
Code:
kvm: -device usb-tablet,id=tablet,bus=ehci.0,port=1: usb port 1 (bus ehci.0) not found (in use?)
start failed: command '/usr/bin/kvm -id 2002 -chardev 'socket,id=qmp,path=/var/run/qemu-server/2002.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -pidfile /var/run/qemu-server/2002.pid -daemonize -smbios 'type=1,uuid=74a99195-cbd3-44bc-bcf4-6df6c36bcffd' -name oswin7 -smp '4,sockets=1,cores=4,maxcpus=4' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vga none -nographic -no-hpet -cpu 'host,hv_vendor_id=proxmox,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,hv_relaxed,+kvm_pv_unhalt,+kvm_pv_eoi,kvm=off' -m 4096 -k de -readconfig /usr/share/qemu-server/pve-q35.cfg -device 'usb-tablet,id=tablet,bus=ehci.0,port=1' -device 'vfio-pci,host=02:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,x-vga=on,multifunction=on' -device 'vfio-pci,host=02:00.1,id=hostpci0.1,bus=ich9-pcie-port-1,addr=0x0.1' -device 'usb-host,vendorid=0x046d,productid=0xc318,id=usb0' -device 'usb-host,vendorid=0x1532,productid=0x0007,id=usb1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:ce991c5dfb6' -drive 'file=/var/lib/vz/template/iso/VMware-tools-windows-10.0.9-3917699.iso,if=none,id=drive-ide0,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=200' -drive 'file=/var/lib/vz/template/iso/de_windows_7_sp1_x64_64bit_Ultimate_de.iso,if=none,id=drive-ide2,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=201' -drive 'file=/dev/pve/vm-2002-disk-1,if=none,id=drive-virtio0,cache=writeback,format=raw,aio=threads,detect-zeroes=on' -device 'virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap2002i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown' -device 'e1000,mac=FE:72:3B:16:A7:09,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' -rtc 'driftfix=slew,base=localtime' -machine 'type=q35' -global 'kvm-pit.lost_tick_policy=discard'' failed: exit code 1

Ich suche mittlerweile schon knapp anderthalb Tage im Internet, kann aber nichts zu dem Fehler finden.



Hier noch ein paar Hintergrund Informationen:

Die Hardware habe ich nachgeschaut sollte soweit kompatibel sein:
Mainboard Asus Z97-Deluxe
CPU Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
GraKa Inc. [AMD/ATI] Cypress XT [Radeon HD 5870]

Software (pveversion -v):
Code:
pve-manager: 4.3-1 (running version: 4.3-1/e7cdc165)
pve-kernel-4.4.19-1-pve: 4.4.19-66
lvm2: 2.02.116-pve3
corosync-pve: 2.4.0-1
libqb0: 1.0-1
pve-cluster: 4.0-46
qemu-server: 4.0-88
libpve-common-perl: 4.0-73
libpve-access-control: 4.0-19
libpve-storage-perl: 4.0-61
pve-libspice-server1: 0.12.8-1
vncterm: 1.2-1
pve-qemu-kvm: 2.6.1-6
pve-container: 1.0-75
pve-firewall: 2.0-29
pve-ha-manager: 1.0-35
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u2
lxc-pve: 2.0.4-1
lxcfs: 2.0.3-pve1
criu: 1.6.0-1
novnc-pve: 0.5-8
zfsutils: 0.6.5.7-pve10~bpo80

dann noch die /etc/pve/qemu-server/2002.conf:
Code:
acpi: 1
bootdisk: virtio0
cores: 4
cpu: host
hostpci0: 02:00,pcie=1,x-vga=on
ide0: local:iso/VMware-tools-windows-10.0.9-3917699.iso,media=cdrom,size=89696K
ide2: local:iso/de_windows_7_sp1_x64_64bit_Ultimate_de.iso,media=cdrom
machine: q35
memory: 4096
name: oswin7
net0: e1000=FE:72:3B:16:A7:09,bridge=vmbr0
numa: 0
ostype: win7
scsihw: virtio-scsi-pci
smbios1: uuid=74a99195-cbd3-44bc-bcf4-6df6c36bcffd
sockets: 1
usb0: host=046d:c318
usb1: host=1532:0007
virtio0: local-lvm:vm-2002-disk-1,cache=writeback,size=100G
USB-Passtrough sind die Maus und Tastatur
Die Grafikkarten im System sind dabei folgende:
Code:
01:00.0 VGA compatible controller: NVIDIA Corporation GK208 [GeForce GT 710B] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1)
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cypress XT [Radeon HD 5870]
02:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cypress HDMI Audio [Radeon HD 5830/5850/5870 / 6850/6870 Rebrand]
00:02.0 Display controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)

Falls noch Information fehlen sollten um mir bei meinem Problem zu helfen, würde ich die natürlich nachreichen.
Ich hatte es auch schon mit dem BIOS OVFM probiert, war aber der gleiche Fehler...

Nachtrag: Was mich hier auch irgendwie stutzig macht, ist schon, dass die durchzureichende GraKa (02:00.0 ATI) unter proxmox mit dem Befehl lspci mit ausgegeben wird. Wenn die nicht angefasst werden sollte vom "root-System" dann sollte die doch eigentlich auch da nicht auftauchen, oder bin ich da auf dem Holzweg?
 
Last edited:
Hallo,

ich hab dir mal meine Konfigurationen kurz zusammen geschrieben, welche ich benutze.
Es gibt dabei bloß die Einschräkung das ich als Ziel GraKa eine nvidia Krate benutze. Das Vorgehen sollte aber vergleichbar sein.

System:
- proxmox 4.4 (gibt aber auch mit der Version 4.3 problemlos)
- Intel Core i7 (Skylake)
- Nvidia GTX 980Ti
- Backport Treiber im Linux für die Nvidia Karte

Code:
#---- /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Proxmox Virtual Environment"
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on pcie_acs_override=downstream"
GRUB_CMDLINE_LINUX=""

# Disable os-prober, it might add menu entries for each guest
# root FS on a local partition
GRUB_DISABLE_OS_PROBER=true

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"


#--- /etd/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd


#--- /etc/modprod.d/kvm.conf
options kvm ignore_msrs=1


#--- /etc/modprobe.d/nvidia-blacklists-nouveau.conf

#You need to run "update-initramfs -u" after editing this file.

# see #580894
blacklist nouveau


#--- /etc/modprobe.d/pve-blacklist.conf
# This file contains a list of modules which are not supported by Proxmox VE

# nidiafb see bugreport https://bugzilla.proxmox.com/show_bug.cgi?id=701
blacklist nvidiafb


#--- /etc/pve/qemu/100.conf
bios: ovmf
bootdisk: sata0
cores: 4
hostpci0: 02:00,pcie=1,x-vga=on
ide2: NAS-Storage:iso/Win10_1511_1_German_x64.iso,media=cdrom
machine: q35
memory: 16384
name: win10
net0: e1000=62:61:35:62:37:36,bridge=vmbr0
numa: 0
ostype: win8
sata0: pve-storage01:vm-100-disk-1,size=400G
smbios1: uuid=ddcea647-3391-4d7d-b3e1-b72288751a2d
sockets: 1
usb0: host=1-7.3
usb1: host=1-10.2