WIN7 (UEFI) mit GPU passthrough

frickelpit

Member
Oct 29, 2017
15
0
21
51
Fehlerbeschreibung:
UEFI-Installation von WIN7x64 mit durchgereichter NVIDIA Quadro P2000 ergibt Fehler "Code 12", soll heißen "Für dieses Gerät sind nicht genug Resourcen verfügbar." NVidia Treiber lassen sich installieren, die NVidia Audioschnittstelle wird problemlos erkannt und aktiviert. Die Bildschirmausgabe bleibt aber bei "Windows wird gestartet" und dem pumpenden Windows-Logo stehen. Zugriff auf die VM über RDP funktioniert.

Ein WIN10 (ebenfalls UEFI) mit durchgereichter Grafik funktioniert auf dem System ohne Probleme.

Da mir nach zwei Wochen Fehleranalyse die Ideen ausgehen, frage ich hier einmal nach, ob jemand mit vergleichbarer Hard-/Softwarekombi WIN7 mit GPU passthrough am Laufen hat. Ich bräuchte diese Win7 VM für ältere Software, die unter WIN10 nicht mehr läuft :(

Bin für jeden weiterführenden Tipp dankbar.

Code:
proxmox-ve: 5.1-31 (running kernel: 4.13.13-1-pve)
pve-manager: 5.1-40 (running version: 5.1-40/ea05b379)
pve-kernel-4.13.4-1-pve: 4.13.4-26
pve-kernel-4.13.8-3-pve: 4.13.8-30
pve-kernel-4.13.13-1-pve: 4.13.13-31
libpve-http-server-perl: 2.0-8
lvm2: 2.02.168-pve6
corosync: 2.4.2-pve3
libqb0: 1.0.1-1
pve-cluster: 5.0-19
qemu-server: 5.0-18
pve-firmware: 2.0-3
libpve-common-perl: 5.0-25
libpve-guest-common-perl: 2.0-14
libpve-access-control: 5.0-7
libpve-storage-perl: 5.0-17
pve-libspice-server1: 0.12.8-3
vncterm: 1.5-3
pve-docs: 5.1-12
pve-qemu-kvm: 2.9.1-5
pve-container: 2.0-18
pve-firewall: 3.0-5
pve-ha-manager: 2.0-4
ksm-control-daemon: 1.2-2
glusterfs-client: 3.8.8-1
lxc-pve: 2.1.1-2
lxcfs: 2.0.8-1
criu: 2.11.1-1~bpo90
novnc-pve: 0.6-4
smartmontools: 6.5+svn4324-1
zfsutils-linux: 0.7.3-pve1~bpo9

Code:
[    0.000000] ACPI: DMAR 0x0000000027EEFFE0 0000C8 (v01 INTEL  KBL      00000001 INTL 00000001)
[    0.000000] DMAR: IOMMU enabled
[    0.036812] DMAR: Host address width 39
[    0.036813] DMAR: DRHD base: 0x000000fed90000 flags: 0x0
[    0.036816] DMAR: dmar0: reg_base_addr fed90000 ver 1:0 cap 1c0000c40660462 ecap 19e2ff0505e
[    0.036816] DMAR: DRHD base: 0x000000fed91000 flags: 0x1
[    0.036818] DMAR: dmar1: reg_base_addr fed91000 ver 1:0 cap d2008c40660462 ecap f050da
[    0.036819] DMAR: RMRR base: 0x00000027e24000 end: 0x00000027e43fff
[    0.036820] DMAR: RMRR base: 0x0000002d858000 end: 0x0000002daa1fff
[    0.036820] DMAR: RMRR base: 0x0000002f000000 end: 0x0000008f7fffff
[    0.036821] DMAR-IR: IOAPIC id 2 under DRHD base  0xfed91000 IOMMU 1
[    0.036822] DMAR-IR: HPET id 0 under DRHD base 0xfed91000
[    0.036822] DMAR-IR: Queued invalidation will be enabled to support x2apic and Intr-remapping.
[    0.038160] DMAR-IR: Enabled IRQ remapping in x2apic mode
[    0.559326] DMAR: No ATSR found
[    0.559699] DMAR: dmar0: Using Queued invalidation
[    0.559792] DMAR: dmar1: Using Queued invalidation
[    0.559919] DMAR: Setting RMRR:
[    0.559972] DMAR: Setting identity map for device 0000:00:02.0 [0x2f000000 - 0x8f7fffff]
[    0.559996] DMAR: Setting identity map for device 0000:00:14.0 [0x2d858000 - 0x2daa1fff]
[    0.560029] DMAR: Setting identity map for device 0000:00:14.0 [0x27e24000 - 0x27e43fff]
[    0.560033] DMAR: Prepare 0-16MiB unity mapping for LPC
[    0.560061] DMAR: Setting identity map for device 0000:00:1f.0 [0x0 - 0xffffff]
[    0.560292] DMAR: Intel(R) Virtualization Technology for Directed I/O

Code:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106GL [Quadro P2000] [10de:1c30] (rev a1)
        Subsystem: NVIDIA Corporation GP106GL [10de:11b3]
        Kernel driver in use: vfio-pci
        Kernel modules: nvidiafb, nouveau
01:00.1 Audio device [0403]: NVIDIA Corporation GP106 High Definition Audio Controller [10de:10f1] (rev a1)
        Subsystem: NVIDIA Corporation Device [10de:11b3]
        Kernel driver in use: vfio-pci
        Kernel modules: snd_hda_intel

Code:
/sys/kernel/iommu_groups/0/devices/0000:00:00.0
/sys/kernel/iommu_groups/1/devices/0000:00:01.0
/sys/kernel/iommu_groups/1/devices/0000:01:00.0
/sys/kernel/iommu_groups/1/devices/0000:01:00.1
/sys/kernel/iommu_groups/2/devices/0000:00:02.0
/sys/kernel/iommu_groups/3/devices/0000:00:14.0
/sys/kernel/iommu_groups/3/devices/0000:00:14.2
/sys/kernel/iommu_groups/4/devices/0000:00:16.0
/sys/kernel/iommu_groups/5/devices/0000:00:17.0
/sys/kernel/iommu_groups/6/devices/0000:00:1c.0
/sys/kernel/iommu_groups/7/devices/0000:00:1d.0
/sys/kernel/iommu_groups/8/devices/0000:00:1f.0
/sys/kernel/iommu_groups/8/devices/0000:00:1f.2
/sys/kernel/iommu_groups/8/devices/0000:00:1f.3
/sys/kernel/iommu_groups/8/devices/0000:00:1f.4
/sys/kernel/iommu_groups/9/devices/0000:00:1f.6
/sys/kernel/iommu_groups/10/devices/0000:02:00.0
/sys/kernel/iommu_groups/11/devices/0000:02:00.1
/sys/kernel/iommu_groups/12/devices/0000:03:00.0

Code:
[    4.396804] VFIO - User Level meta-driver version: 0.3
[    4.401540] vfio-pci 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[    4.420075] vfio_pci: add [10de:1c30[ffff:ffff]] class 0x000000/00000000
[    4.440088] vfio_pci: add [10de:10f1[ffff:ffff]] class 0x000000/00000000
[  103.798965] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19@0x900
[  103.818818] vfio-pci 0000:01:00.1: enabling device (0140 -> 0142)

Code:
Bus  0, device   0, function 0:
    Host bridge: PCI device 8086:29c0
      id ""
  Bus  0, device  26, function 0:
    USB controller: PCI device 8086:2937
      IRQ 16.
      BAR4: I/O at 0xb100 [0xb11f].
      id "uhci-4"
  Bus  0, device  26, function 1:
    USB controller: PCI device 8086:2938
      IRQ 17.
      BAR4: I/O at 0xb0e0 [0xb0ff].
      id "uhci-5"
  Bus  0, device  26, function 2:
    USB controller: PCI device 8086:2939
      IRQ 18.
      BAR4: I/O at 0xb0c0 [0xb0df].
      id "uhci-6"
  Bus  0, device  26, function 7:
    USB controller: PCI device 8086:293c
      IRQ 19.
      BAR0: 32 bit memory at 0x91906000 [0x91906fff].
      id "ehci-2"
  Bus  0, device  27, function 0:
    Audio controller: PCI device 8086:293e
      IRQ 16.
      BAR0: 32 bit memory at 0x91900000 [0x91903fff].
      id "audio0"
  Bus  0, device  28, function 0:
    PCI bridge: PCI device 8086:3420
      IRQ 0.
      BUS 0.
      secondary bus 1.
      subordinate bus 1.
      IO range [0xa000, 0xafff]
      memory range [0x90000000, 0x910fffff]
      prefetchable memory range [0x800000000, 0x811ffffff]
      id "ich9-pcie-port-1"
  Bus  1, device   0, function 0:
    VGA controller: PCI device 10de:1c30
      IRQ 10.
      BAR0: 32 bit memory at 0x90000000 [0x90ffffff].
      BAR1: 64 bit prefetchable memory at 0x800000000 [0x80fffffff].
      BAR3: 64 bit prefetchable memory at 0x810000000 [0x811ffffff].
      BAR5: I/O at 0xa000 [0xa07f].
      BAR6: 32 bit memory at 0xffffffffffffffff [0x0007fffe].
      id "hostpci0.0"
  Bus  1, device   0, function 1:
    Audio controller: PCI device 10de:10f1
      IRQ 17.
      BAR0: 32 bit memory at 0x91000000 [0x91003fff].
      id "hostpci0.1"
  Bus  0, device  28, function 1:
    PCI bridge: PCI device 8086:3420
      IRQ 0.
      BUS 0.
      secondary bus 2.
      subordinate bus 2.
      IO range [0x9000, 0x9fff]
      memory range [0x91600000, 0x917fffff]
      prefetchable memory range [0xfff00000, 0x000fffff]
      id "ich9-pcie-port-2"
  Bus  0, device  28, function 2:
    PCI bridge: PCI device 8086:3420
      IRQ 0.
      BUS 0.
      secondary bus 3.
      subordinate bus 3.
      IO range [0x8000, 0x8fff]
      memory range [0x91400000, 0x915fffff]
      prefetchable memory range [0xfff00000, 0x000fffff]
      id "ich9-pcie-port-3"
  Bus  0, device  28, function 3:
    PCI bridge: PCI device 8086:3420
      IRQ 0.
      BUS 0.
      secondary bus 4.
      subordinate bus 4.
      IO range [0x7000, 0x7fff]
      memory range [0x91200000, 0x913fffff]
      prefetchable memory range [0xfff00000, 0x000fffff]
      id "ich9-pcie-port-4"
  Bus  0, device  29, function 0:
    USB controller: PCI device 8086:2934
      IRQ 16.
      BAR4: I/O at 0xb0a0 [0xb0bf].
      id "uhci-1"
  Bus  0, device  29, function 1:
    USB controller: PCI device 8086:2935
      IRQ 17.
      BAR4: I/O at 0xb080 [0xb09f].
      id "uhci-2"
  Bus  0, device  29, function 2:
    USB controller: PCI device 8086:2936
      IRQ 18.
      BAR4: I/O at 0xb060 [0xb07f].
      id "uhci-3"
  Bus  0, device  29, function 7:
    USB controller: PCI device 8086:293a
      IRQ 19.
      BAR0: 32 bit memory at 0x91905000 [0x91905fff].
      id "ehci"
  Bus  0, device  30, function 0:
    PCI bridge: PCI device 8086:244e
      BUS 0.
      secondary bus 5.
      subordinate bus 8.
      IO range [0x6000, 0x6fff]
      memory range [0x91800000, 0x918fffff]
      prefetchable memory range [0x812000000, 0x8120fffff]
      id "pcidmi"
  Bus  5, device   1, function 0:
    PCI bridge: PCI device 1b36:0001
      BUS 5.
      secondary bus 6.
      subordinate bus 6.
      IO range [0x6000, 0x6fff]
      memory range [0x91800000, 0x918fffff]
      prefetchable memory range [0x812000000, 0x8120fffff]
      id "pci.0"
  Bus  6, device  10, function 0:
    SCSI controller: PCI device 1af4:1001
      IRQ 0.
      BAR0: I/O at 0x6000 [0x603f].
      BAR1: 32 bit memory at 0x91801000 [0x91801fff].
      BAR4: 64 bit prefetchable memory at 0x812004000 [0x812007fff].
      id "virtio0"
  Bus  6, device  18, function 0:
    Ethernet controller: PCI device 1af4:1000
      IRQ 0.
      BAR0: I/O at 0x6040 [0x605f].
      BAR1: 32 bit memory at 0x91800000 [0x91800fff].
      BAR4: 64 bit prefetchable memory at 0x812000000 [0x812003fff].
      BAR6: 32 bit memory at 0xffffffffffffffff [0x0003fffe].
      id "net0"
  Bus  5, device   2, function 0:
    PCI bridge: PCI device 1b36:0001
      BUS 5.
      secondary bus 7.
      subordinate bus 7.
      IO range [0xf000, 0x0fff]
      memory range [0xfff00000, 0x000fffff]
      prefetchable memory range [0xfff00000, 0x000fffff]
      id "pci.1"
  Bus  5, device   3, function 0:
    PCI bridge: PCI device 1b36:0001
      BUS 5.
      secondary bus 8.
      subordinate bus 8.
      IO range [0xf000, 0x0fff]
      memory range [0xfff00000, 0x000fffff]
      prefetchable memory range [0xfff00000, 0x000fffff]
      id "pci.2"
  Bus  0, device  31, function 0:
    ISA bridge: PCI device 8086:2918
      id ""
  Bus  0, device  31, function 2:
    SATA controller: PCI device 8086:2922
      IRQ 16.
      BAR4: I/O at 0xb040 [0xb05f].
      BAR5: 32 bit memory at 0x91904000 [0x91904fff].
      id ""
  Bus  0, device  31, function 3:
    SMBus: PCI device 8086:2930
      IRQ 10.
      BAR4: I/O at 0xb000 [0xb03f].
      id ""

Code:
/usr/bin/kvm
-id 205
-chardev 'socket,id=qmp,path=/var/run/qemu-server/205.qmp,server,nowait'
-mon 'chardev=qmp,mode=control'
-pidfile /var/run/qemu-server/205.pid
-daemonize
-smbios 'type=1,uuid=d4c04330-2dc2-457e-8e4c-c2b36f192ed0'
-drive 'if=pflash,unit=0,format=raw,readonly,file=/usr/share/kvm/OVMF_CODE-pure-efi.fd'
-drive 'if=pflash,unit=1,format=raw,id=drive-efidisk0,file=/dev/pve/vm-205-disk-2'
-name WS5
-smp '2,sockets=1,cores=2,maxcpus=2'
-nodefaults
-boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg'
-vga none
-nographic
-no-hpet
-cpu 'host,+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=01:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,multifunction=on'
-device 'vfio-pci,host=01:00.1,id=hostpci0.1,bus=ich9-pcie-port-1,addr=0x0.1'
-device 'usb-host,vendorid=0x05ac,productid=0x0221,id=usb0'
-device 'usb-host,vendorid=0x045e,productid=0x00cb,id=usb1'
-iscsi 'initiator-name=iqn.1993-08.org.debian:01:17d28020a41f'
-drive 'file=/dev/pve/vm-205-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=tap205i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on'
-device 'virtio-net-pci,mac=B2:6E:2F:28:3D:8A,netdev=net0,bus=pci.0,addr=0x12,id=net0'
-rtc 'driftfix=slew,base=localtime'
-machine 'type=q35'
-global 'kvm-pit.lost_tick_policy=discard'
 
Ne, bin bei Win7 auch immer immer gescheitert. Problemlos hingegen Windows Server 2012r2 und KDE Neon.
Darf man Fragen was die Software so tut, oder was sie für Anforderungen hat? Event. genügt dir ja ein Spicefenster. Verwende hier Windows10 mit Spice. Hatte auch ne lange Zeit Win7 mit Spice am laufen. Fühlt sich an wie nativ.
 
Darf man Fragen was die Software so tut, oder was sie für Anforderungen hat?
Sind 2 CAD Programme (SWX & INV) die ich in bestimmter Version ab und zu für einen Kunden brauche. Über Spice CAD zu machen ist nicht unbedingt der Kracher.
 
CAD hatten wir hier auch, da gings um große Flächen. Machten wir auch mit Spice und war überhaupt kein Problem. Da gings um Dateien die waren gut 10 - 30 GB groß. Wir hatten für die eine VM einen eigenen Server. Brauchte nämlich auch super viel CPU. Event. kannst es ja mal probieren. War kein AutoCAD. Weis nicht mehr wie es hies.
Aber natürlich. Die Karte durchschleifen ist immer besser :)
 
Wenn man nach dem Start der ansonsten gleich konfigurierten VMs von Win7 und Win10 die Belegung der PCI Schnittstellen mit "qm info pci" vergleicht, sieht man das unter Win7 die Grafikkarte einen IRQ10 erhält, in Win10 aber lediglich IRQ0?? Ähnlich verhält es sich mit dem SATA-Controller. Win7 vergibt den IRQ16, Win10 den IRQ0. Ansonsten weist die Belegung keine Unterschiede auf.

Lässt sich die IRQ-Vergabe in der VM irgendwie manuell beeinflussen?

Code:
  Bus  1, device   0, function 0:
    VGA controller: PCI device 10de:1c30
      IRQ 10.
      BAR0: 32 bit memory at 0x90000000 [0x90ffffff].
      BAR1: 64 bit prefetchable memory at 0x800000000 [0x80fffffff].
      BAR3: 64 bit prefetchable memory at 0x810000000 [0x811ffffff].
      BAR5: I/O at 0xa000 [0xa07f].
      BAR6: 32 bit memory at 0xffffffffffffffff [0x0007fffe].
      id "hostpci0.0"

  Bus  1, device   0, function 0:
    VGA controller: PCI device 10de:1c30
      IRQ 0.
      BAR0: 32 bit memory at 0x90000000 [0x90ffffff].
      BAR1: 64 bit prefetchable memory at 0x800000000 [0x80fffffff].
      BAR3: 64 bit prefetchable memory at 0x810000000 [0x811ffffff].
      BAR5: I/O at 0xa000 [0xa07f].
      BAR6: 32 bit memory at 0xffffffffffffffff [0x0007fffe].
      id "hostpci0.0"

Code:
Bus 0, device 31, function 2:
SATA controller: PCI device 8086:2922
IRQ 16.
BAR4: I/O at 0xb040 [0xb05f].
BAR5: 32 bit memory at 0x91904000 [0x91904fff].
id ""


Bus 0, device 31, function 2:
SATA controller: PCI device 8086:2922
IRQ 0.
BAR4: I/O at 0xb040 [0xb05f].
BAR5: 32 bit memory at 0x91904000 [0x91904fff].
id ""
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!