Nvidia pass thru and error code 43 (other cards doesn't work as well - BSOD)

daniel_kukiela

New Member
Jan 22, 2017
7
0
1
41
Hi,
I tried near anything i found and can't get it working.
I am trying to setup two vms (Win10) with gpu pass thru. I have i7 860 and older graphics cards, so i am using
GPU Seabios PCI EXPRESS PASSTHROUGH. I am using latest packages from pvetest.
- GTX 650Ti - card is visible in vm, but shows error code 43 even if i install very very old drivers (as old as 335.23 - older that good known 337.xx), which doesn't block driver in qemu's vm. Shouldn't they work?
- Geforce 210 - card is visible, BSOD when trying to install drivers (i know that one may not work)
- Radeon HD 7770 - card visible, BSOD when trying to install drivers (that one should work)
- 9600GT - like Geforce 210
As far as i know, GTX 650 Ti and HD 7770 should work, but they didn't. All of those cards were tested as secondary cards (with other card in first pci-e slot), to avoid vbios shadowing problem (for now).
I think that something else is my problem - drivers before 337.xx should work for nvidia card, HD 7770 should work - but i don't know what. Too old CPU? Incompatybile motherborad (Asus P7P55 LX)?
Any suggestions? What am i missing?

My vm's config for GTX 650Ti (pretty standard):

Code:
balloon: 7
bootdisk: virtio0
cores: 4
cpu: host
hostpci0: 06:00,pcie=1,x-vga=on,romfile=560ti.rom
ide2: none,media=cdrom
machine: q35
memory: 7680
name: gamer1
net0: virtio=8A:49:1D:13:B2:DF,bridge=vmbr0
numa: 1
ostype: win10
scsihw: virtio-scsi-pci
shares: 2048
smbios1: uuid=0a54856f-49ed-4160-a6c3-9c3477b0d4b3
sockets: 1
virtio0: ssd1-vms:100/vm-100-disk-1.qcow2,backup=0,cache=writeback,size=30G
usb0: host=1-1.1
usb1: host=1-1.2
usb2: host=2-1.4
(tried it with and without dumped rom, rom dumped using nvflash)

And qemu command:
Code:
/usr/bin/kvm -id 100 -chardev socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait -mon chardev=qmp,mode=control -pidfile /var/run/qemu-server/100.pid -daemonize -smbios type=1,uuid=0a54856f-49ed-4160-a6c3-9c3477b0d4b3 -name gamer1 -smp 4,sockets=1,cores=4,maxcpus=4 -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,hv_vendor_id=proxmox,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,hv_relaxed,kvm=off -m 7680 -object memory-backend-ram,id=ram-node0,size=7680M -numa node,nodeid=0,cpus=0-3,memdev=ram-node0 -k pl -readconfig /usr/share/qemu-server/pve-q35.cfg -device usb-tablet,id=tablet,bus=ehci.0,port=1 -device vfio-pci,host=06:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,x-vga=on,multifunction=on,romfile=/usr/share/kvm/560ti.rom -device vfio-pci,host=06:00.1,id=hostpci0.1,bus=ich9-pcie-port-1,addr=0x0.1 -device usb-host,hostbus=1,hostport=1.1,id=usb0 -device usb-host,hostbus=1,hostport=1.2,id=usb1 -device usb-host,hostbus=2,hostport=1.4,id=usb2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 -iscsi initiator-name=iqn.1993-08.org.debian:01:1819174b6b3c -drive if=none,id=drive-ide2,media=cdrom,aio=threads -device ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200 -drive file=/mnt/ssd1/vms/images/100/vm-100-disk-1.qcow2,if=none,id=drive-virtio0,cache=writeback,format=qcow2,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=tap100i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on -device virtio-net-pci,mac=8A:49:1D:13:B2:DF,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300 -rtc driftfix=slew,base=localtime -machine type=q35 -global kvm-pit.lost_tick_policy=discard

Regards,
Daniel
 
Last edited:
I saw that thread (as many others).
That fix is for version 337.88 and newer of Nvidia drivers. I tried older drivers also. But i gave it a try once more - still no luck.
But thank you.

Regards,
Daniel
 
I've sucessfully run a GT 710 and GT 730 in a Windows 10 VM. Right now I have a GT 730 on 376.33 drivers on Windows 10 Pro.

vm.conf
Code:
balloon: 0
bios: ovmf
boot: cdn
bootdisk: virtio0
cores: 4
cpu: host
cpuunits: 30000
efidisk0: VM-Storage1:vm-108-disk-3,size=128K
hostpci0: 0a:00.0,pcie=1,x-vga=on
hotplug: disk,network,usb
machine: q35
memory: 6144
name: win10-wk1
net0: virtio=1A:CE:B2:47:7A:81,bridge=vmbr45
numa: 1
ostype: win10
sata1: none,media=cdrom
scsihw: virtio-scsi-pci
smbios1: uuid=22f5568e-f1cd-4339-a13f-e1230321cd00
sockets: 1
tablet: 0
usb0: host=8-2.1
usb1: host=8-2.3
usb2: host=8-2.4
virtio0: VM-Storage1:vm-108-disk-1,cache=writeback,size=80G

Code:
root@Proxmox:~# pveversion -v
proxmox-ve: 4.4-77 (running kernel: 4.4.35-1-pve)
pve-manager: 4.4-5 (running version: 4.4-5/c43015a5)
pve-kernel-4.4.35-1-pve: 4.4.35-77
pve-kernel-4.4.16-1-pve: 4.4.16-64
lvm2: 2.02.116-pve3
corosync-pve: 2.4.0-1
libqb0: 1.0-1
pve-cluster: 4.0-48
qemu-server: 4.0-102
pve-firmware: 1.1-10
libpve-common-perl: 4.0-85
libpve-access-control: 4.0-19
libpve-storage-perl: 4.0-71
pve-libspice-server1: 0.12.8-1
vncterm: 1.2-1
pve-docs: 4.4-1
pve-qemu-kvm: 2.7.0-10
pve-container: 1.0-90
pve-firewall: 2.0-33
pve-ha-manager: 1.0-38
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u2
lxc-pve: 2.0.6-5
lxcfs: 2.0.5-pve2
criu: 1.6.0-1
novnc-pve: 0.5-8
smartmontools: 6.5+svn4324-1~pve80

Hardware is a Supermicro X8DT6 with dual X5660s. What can I do to help you get it to work?
 
Last edited:
You are using UEFI VMs. My GPUs don't have UEFI support. but i will definitely try GTX 970 from my main PC. Thank you for info.
Could you tell me more about your CPU and motherboard?

Regards,
Daniel
 
You are using UEFI VMs. My GPUs don't have UEFI support. but i will definitely try GTX 970 from my main PC. Thank you for info.
Could you tell me more about your CPU and motherboard?

Regards,
Daniel

Mobo: Supermicro X8DT6
--GT 730 (passthru to Win10, UEFI)
--Radeon 4350 (passthru to Ubuntu 16.04, non-UEFI)
--Radeon X1300 (console only)
CPU: X5660 x2

For what it's worth I couldn't get two UEFI cards working at the same time. I had a Radeon 6350 that worked UEFI in Win10 but if I restarted the VM or shut it down it would crash the host. I have two GT 710s but I couldn't pass them to two different VMs successfully. The onboard video on the motherboard has never worked since I bought this motherboard secondhand. I had to do a lot of trial-and-error playing musical chairs with all the PCI-E slots getting all this to work successfully.
 
Ok, thank you once again.
https://forum.proxmox.com/threads/p...-great-but-only-1-vm-at-a-time-allowed.28339/ - that's your problem?
I tried to run 2 vms with gpu pass thru (BIOS mode), but when i started second VM host crashed every time.
And i see that Radeon 6350 is working in your setup - i couldn't get mine (HD 7770) working - BSOD in every time during drivers setup. I think, that my CPU may be a problem for me (i saw, that Xeons are better for that).

Regards,
Daniel
 
I wish I could remember what I did because I did have the Code 43 on the GT 730 when I first tried to get it installed. I know I tried the hv_vendor_id fix but I just looked now and it's the default (proxmox). I would try it anyway, but boot into safe mode and then remove the video card from the device manager and restart the VM and see if that works.

Have you tried just passing through the video card without the audio? In your case, 06:00.0 and not 06.00 (which includes 06.00.0 and 06.00.1).
 
I tried that (for both Nvidia and AMD cards).
I will try with new/clean Win10 install as well (VMs where converted from VMWare and native system).

Regards,
Daniel
 
Have you tried removing pcie=1 and machine:q35 and try the VM with the default I440FX?
 

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!