VM crashes/reboots when installing GPU drivers

Jakfut

New Member
May 22, 2022
1
0
1
I tried to passthrough my GPU to a Windows 10 VM so I can use it for gaming. The GPU shows in device manger with error code 43 and when I try to install the Nvidia drivers approximatly where the screen would go black for a sec on a normal PC RDP loses connection and after it reconnects 10 seconds or so later the drivers are not installed and a critical error stating that Windows has unexpectatly rebooted shows in eventviewer, also no BAR3 error in the syslog. I also tried Win11, but it did not do better.

Kernel version:
Linux 5.15.102-1-pve


Specs:
Intel I7 7700
Asus H110M-R
Asus GTX 1080 Turbo (has a monitor plugged in)


My current config:

enabled VT-D in the Motherboard

GRUB:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on initcall_blacklist=sysfb_init nomodeset video=vesafb:off video=efifb:off video=simplefb:off"

.conf of the VM:
Code:
agent: 1
bios: ovmf
boot: order=scsi0;net0;ide0
cpu: host,hidden=1,flags=+pcid
args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=NV43FIX,kvm=off'
cores: 8
efidisk0: local:106/vm-106-disk-0.qcow2,efitype=4m,pre-enrolled-keys=1,size=528K
hostpci0: 0000:01:00,pcie=1,romfile=Asus.GTX1080.8192.160601.rom,x-vga=1
ide0: local:iso/virtio-win-0.1.229.iso,media=cdrom,size=522284K
machine: pc-q35-7.1
memory: 12288
meta: creation-qemu=7.1.0,ctime=1679391703
net0: virtio=0A:43:96:1A:58:CD,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsi0: local:106/vm-106-disk-1.qcow2,cache=writeback,size=64G
scsihw: virtio-scsi-pci
smbios1: uuid=571c67b6-62f2-47b0-a8f2-fcd8847355c4
sockets: 1
vga: none
vmgenid: 177bab6c-e854-41b4-b073-6564fe02c22f

modules in /etc/modules:
Code:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

I used these commands for interrup mapping:
Code:
echo "options vfio_iommu_type1 allow_unsafe_interrupts=1" > /etc/modprobe.d/iommu_unsafe_interrupts.conf
echo "options kvm ignore_msrs=1" > /etc/modprobe.d/kvm.conf


I blacklisted the drivers in /etc/modprobe.d/blacklist.conf

option in /etc/modprobe.d/vfio.conf:
Code:
options vfio-pci ids=10de:1381,10de:0fbc disable_vga=1

I got the .rom from Techpowerup and installed the VirtIO vioscsi, NetKVM and Balloon drivers
thats just my current config, I already tried a lot of different stuff, especially in the .conf file

iommu groups:
find /sys/kernel/iommu_groups/ -type l:
Code:
/sys/kernel/iommu_groups/7/devices/0000:00:1d.0
/sys/kernel/iommu_groups/5/devices/0000:00:1c.0
/sys/kernel/iommu_groups/3/devices/0000:00:16.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/8/devices/0000:00:1f.2
/sys/kernel/iommu_groups/8/devices/0000:00:1f.0
/sys/kernel/iommu_groups/8/devices/0000:00:1f.3
/sys/kernel/iommu_groups/8/devices/0000:00:1f.4
/sys/kernel/iommu_groups/6/devices/0000:00:1c.7
/sys/kernel/iommu_groups/4/devices/0000:00:17.0
/sys/kernel/iommu_groups/2/devices/0000:00:14.0
/sys/kernel/iommu_groups/10/devices/0000:03:00.0
/sys/kernel/iommu_groups/0/devices/0000:00:00.0
/sys/kernel/iommu_groups/9/devices/0000:02:00.0
 

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!