[SOLVED] Graphics card is NOT UEFI compatible. Can I still use OVMF PCIe Passthrough?

Vassterak

Member
Jun 3, 2020
7
0
21
25
Czech republic
Hello,
I'm trying to make pcie passtrough of MSI GT 710 to Windows 10 machine, for basic video encode/decode.

I've been following this tutorial: https://pve.proxmox.com/wiki/Pci_passthrough

And when I got to point "How to know if a Graphics Card is UEFI (OVMF) compatible"

I found out that GT 710 is not UEFI compatible.

My output:
Code:
root@SpeedyServer:~/rom-parser# ./rom-parser /tmp/image.rom
Valid ROM signature found @0h, PCIR offset 190h
        PCIR: type 0 (x86 PC-AT), vendor: 10de, device: 128b, class: 030000
        PCIR: revision 0, vendor revision: 1
Error, ran off the end

Is that a reason Why I'm still getting 43 error? In windows?

My current configuration:
Code:
bios: ovmf
bootdisk: scsi0
cores: 4
cpu: host,hidden=1,flags=+pcid
efidisk0: local-zfs:vm-102-disk-1,size=1M
hostpci0: 06:00,pcie=1,x-vga=1
ide2: none,media=cdrom
machine: q35
memory: 4096
name: WindowsPCIe
net0: virtio=42:37:B6:2F:14:B1,bridge=vmbr1,firewall=1
numa: 0
ostype: win10
sata0: local:iso/virtio-win-0.1.173.iso,media=cdrom,size=384670K
scsi0: local-zfs:vm-102-disk-0,cache=writeback,discard=on,size=45G
scsihw: virtio-scsi-pci
smbios1: uuid=49d884e8-1d8c-4832-9888-041c87035128
sockets: 1
vga: none
vmgenid: 1e0b065a-a40d-46c0-a6ca-d4a7a56fd456
args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=NV43FIX,kvm=off'

My setup: Ryzen 3600, Asrock B450 pro-f, 32GB of ECC Ram, MSI GT 710 1GB

Thank you for any suggestions and tips!
 
With PCIe passthrough, it's very simple: Buy hardware that is reported to work by others or burn hours/days/weeks to get it to work, or doesnt. I managed to get a non uefi-capable card to work once, just to find out, that is is not stable and totally useless. After using a modern card it just works, so be warned that even if you get it to work, it does not mean that it is stable.

BTW: Why do you turn of kvm?
 
One of my GPUs (AMD Radeon HD7750) has no UEFI support and works fine in PCI-passthrough with OVMF.

Only the UEFI screen, GRUB, and most part of the initial boot information from Linux kernel is not visible (black but active screen). However, I use
GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0"
CONSOLE=serial
in /etc/default/grub in the VM, to see all that in a serial terminal using
serial0: socket
vga: serial0
in the vm.conf. The graphical login of Ubuntu shows up on the monitor connected to that GPU and everything after works perfectly.
 
Hello, Thank you for tips.
I have figured it out.

I needed to enable: 4G encoding/decoding; SR-IOV in BIOS(UEFI) on my motherboard.
Also this video helped: https://www.youtube.com/watch?v=fgx3NMk6F54 Nice tips are in comments of that video! Check it out!

FOR EVERY ONE WHO STILL HAVE A PROBLEM WITH NVIDIA 43 ERROR, TRY THIS:

1)
In bios of your motherboard enable: iommu, 4G encoding/decoding, SR-IOV (and of course for virtualisation you need VT-x / AMD-V)

2)
follow this amazing tutorial: https://www.reddit.com/r/homelab/comments/b5xpua/the_ultimate_beginners_guide_to_gpu_passthrough/

3) Try changing machine id from "q35" => "pc-q35-3.1"

4) If still not working. Then try my working configuration with GT 710: (If you are going to use it please exclude hard drives and cd roms !)

Do not import with //commnets!

Code:
agent: 1
args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=NV43FIX,kvm=off'
bios: ovmf
boot: dcn
bootdisk: scsi0
cores: 4
cpu: host,hidden=1,flags=+pcid
efidisk0: local-zfs:vm-101-disk-1,size=1M
hostpci0: 06:00,pcie=1         //your gpu may have different id not 06:00
ide2: local:iso/Windows10.iso,media=cdrom         //ide cd rom with iso
machine: pc-q35-3.1
memory: 6144
name: WindowsGpuPassTest
net0: virtio=76:60:EB:00:9D:31,bridge=vmbr1,firewall=1
numa: 0
ostype: win10
sata1: local:iso/virtio-win-0.1.173.iso,media=cdrom,size=384670K     //sata cd rom with iso
scsi0: local-zfs:vm-101-disk-0,cache=writeback,discard=on,size=45G,ssd=1     //disk
scsihw: virtio-scsi-pci
smbios1: uuid=384056c3-d48a-48e9-ac9a-89f8ac29e32d
sockets: 1
vga: none
virtio0: /dev/sdc,size=1953514584K
vmgenid: 557a8730-d44a-43e4-b59f-9fab8addb0f3

5) Still not working? Try "hdmi dummy plug"

6) Custom ROM => Step 4a in: https://www.reddit.com/r/homelab/comments/b5xpua/the_ultimate_beginners_guide_to_gpu_passthrough/

7) Still not working? Sorry man I'm out of ideas I wish you a luck while searching for a solution.
 
Last edited: