GPU passthrough blinking cursor on vm

Jamie

Active Member
May 18, 2018
22
1
41
28
Hello, I am trying to passthrough a gpu to a windows 10 vm

System:
- Gigabyte x79 ud3
- E5 2690
- 1080ti
- proxmox 7.3-3
- 32gb DDR3
- enabled vt-d and everything else that is required for iommu.

I have a trunas vm with an LSI sas controller which is working perfectly fine.



For GPU passthrough:

I followed the tutorial located here: https://www.reddit.com/r/homelab/comments/b5xpua/the_ultimate_beginners_guide_to_gpu_passthrough/
I'm also using the gpu's rom file modified by removing the nvidia header.
The vm will boot and display an image but is not shown in the device manager.

Looks like both the windows vm and proxmox host is using the gpu at the same time. Strange

Untitled.jpg


I am booting from CMD line:
Code:
root=ZFS=rpool/ROOT/pve-1 boot=zfs quiet intel_iommu=on iommu=pt vfio_pci.ids=10de:1b06,10de:10ef nofb nomodeset textonly video=vesafb:off video=efifb:off

/etc/modules
Code:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
simplefb

/etc/modprobe.d/iommu_unsafe_interrupts.conf
Code:
options vfio_iommu_type1 allow_unsafe_interrupts=1

/etc/modprobe.d/kvm.conf
Code:
options kvm ignore_msrs=1

/etc/modprobe.d/blacklist.conf
Code:
blacklist nvidia
blacklist mptsas
blacklist nouveau
blacklist nvidiafb

/etc/modprobe.d/vfio.conf
Code:
options vfio-pci ids=10de:1b06,10de:10ef disable_vga=1


VM Config
Code:
balloon: 0
bios: ovmf
boot: order=scsi0
cores: 10
cpu: host
efidisk0: local-zfs:vm-101-disk-0,efitype=4m,pre-enrolled-keys=1,size=1M
hostpci0: 0000:02:00,pcie=1,romfile=GP102-modified.rom,x-vga=1
hotplug: network,usb
machine: q35
memory: 10240
meta: creation-qemu=7.1.0,ctime=1677866474
name: Windows10
net0: e1000=0E:C2:B2:39:61:59,bridge=vmbr0
numa: 0
ostype: l26
scsi0: local-zfs:vm-101-disk-1,backup=0,cache=writeback,iothread=1,size=64G
scsihw: virtio-scsi-single
smbios1: uuid=9f1bcc28-1054-44f4-b4fe-750ca549eb9e
sockets: 1
tablet: 0
vmgenid: 7a13c963-4325-42c8-8337-9f6f013b4a49
 
Last edited:
Looks like both the windows vm and proxmox host is using the gpu at the same time. Strange
root=ZFS=rpool/ROOT/pve-1 boot=zfs quiet intel_iommu=on iommu=pt vfio_pci.ids=10de:1b06,10de:10ef nofb nomodeset textonly video=vesafb:off video=efifb:off
nofb nomodeset textonly video=vesafb:off video=efifb:off don't do anything anymore. If you are doing passthrough of the GPU that is used during boot of the Proxmox host, you need this work-around. You probably have that BAR cannot reserve error in your system logs.
 
  • Like
Reactions: Jamie
nofb nomodeset textonly video=vesafb:off video=efifb:off don't do anything anymore. If you are doing passthrough of the GPU that is used during boot of the Proxmox host, you need this work-around. You probably have that BAR cannot reserve error in your system logs.
Thanks for the quick reply, this did work. I am able to boot the vm and install nvidia driver and Device manager is reporting working properly. Though, I am experiencing a weird problem where it kinda lags and if I dont "refresh" the screen move the mouse it stays stuck on one image and refreshes about every 10 seconds. Not really sure what this is. Never seen it before.