[SOLVED] Failed PCI passthrough to Windows 10

selius.lab

New Member
Mar 10, 2023
1
0
1
I tried GPU passthrough following the guide below but it didn’t work. https://www.reddit.com/r/homelab/comments/b5xpua/the_ultimate_beginners_guide_to_gpu_passthrough/
My PC has a Xeon2670v3 and GT1030.
The VM startup configuration is as follows
args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=NV43FIX,kvm=off'
bios: ovmf
boot: order=ide0
cores: 16
cpu: host,hidden=1,flags=+pcid
efidisk0: local-lvm:vm-100-disk-1,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:03:00,pcie=1,romfile=1030.bin
ide0: local-lvm:vm-100-disk-0,size=320G,ssd=1
ide2: local:iso/Windows.iso,media=cdrom,size=4692672K
machine: q35
memory: 16384
meta: creation-qemu=7.1.0,ctime=1678430940
name: windows
net0: e1000=FE:84:89:E0:8A:6B,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsi0: local:iso/virtio-win-0.1.229.iso,media=cdrom,size=522284K
scsihw: virtio-scsi-single
smbios1: uuid=8808d4c2-2f84-41af-b2ec-5d809e38b5e2
sockets: 1
tablet: 0
vga: std
vmgenid: 5f1c51ee-a16b-4378-a375-e9f28373aad0

As for the situation, when I try to install the driver a blue screen appears and it says “system thread exception not handled”. In device manager error 43 is displayed and when I try to update the driver from device manager a blue screen appears again. Can someone please help me?
 
Hello @selius.lab, I have the exact same issue with a 750ti. I see you flagged your post as resolved, how did you solve it?
Edit: OK, I used older drivers instead of the latest and this fixed the blue screen issue. GPU is still on error 43, but at least I can continue my investigation now
Edit2: If anybody comes here desperately looking for a solution, here was mine (after a day of work):
In BIOS, enable VT-d, IOMMU AND bar resize !
Grub:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet textonly crashkernel=256M nmi_watchdog=1 intel_idle.max_cstate=1 intel_iommu=on iommu=pt initcall_blacklist=sy
sfb_init"

Modprobe:
Code:
$/etc/modprobe.d|⇒  cat blacklist.conf           
blacklist radeon
blacklist nouveau
blacklist nvidia
$/etc/modprobe.d|⇒  cat vfio.conf           
options vfio-pci ids=10de:1380,10de:0fbc disable_vga=1
$/etc/modprobe.d|⇒  cat kvm.conf           
options kvm ignore_msrs=1

VM:
Code:
bios: ovmf
boot: order=scsi0;ide2;net0
cores: 8
efidisk0: local-nvme-thin:vm-105-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:01:00,pcie=1,romfile=nvidia750ti-patched.bin
ide2: nas:iso/19044.1288.211006-0501.21h2_release_svc_refresh_CLIENT_LTSC_EVAL_x64FRE_fr-fr.iso,media=cdrom,size=4803194K
machine: pc-q35-7.2
memory: 8192
meta: creation-qemu=7.2.0,ctime=1679156378
name: remote
net0: e1000=E2:CF:F1:76:7C:0B,bridge=vmbr0,firewall=1,tag=1
numa: 0
ostype: win11
scsi0: local-nvme-thin:vm-105-disk-1,iothread=1,size=150G
scsihw: virtio-scsi-single
smbios1: uuid=0f9d6aad-7487-4e28-a619-9e896e31195b
sockets: 1
vga: none
vmgenid: 7c7f8e78-b9fc-4f51-a12f-8c5802132d05

And most importantly, nvidia750ti-patched.bin being my GPU's rom retrieved with nvflash (and not cat rom) then patched with https://github.com/RecreationalGarb...blob/GUI/GPUROMPatcher/Resources/patchervb.py (using the appropriate regex taken from Form1.vbs)

And installed drivers from last december instead of latest from march to avoid blue screen
 
Last edited:

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!