Nvidia GPU pass-through Win 8.1 works Win 10 not

mcflym

Renowned Member
Jul 10, 2013
195
10
83
Hi there,

I want to pass a Nvidia GPU to a Windows 10 machine.

I know there are some issues with Nvidia regarding pci passthrough.

How can I set special parameters like "hv_vendor_id=whatever" etc... just in the vm config file?

Thanks!
 
Back again...

I get the Code43 error with the following VM-Config:

hostpci0: 01:00,x-vga=on
bios: ovmf
bootdisk: scsi0
cores: 2
cpu: Haswell-noTSX
ide2: share1:iso/de_windows_10_multiple_editions_x64_dvd_6846954.iso,media=cdrom
ide3: share1:iso/virtio-win-0.1.118.iso,media=cdrom,size=55632K
memory: 8192
name: win10steamserver
net0: virtio=EA:4E:94:25:3D:BA,bridge=vmbr1
numa: 0
ostype: win8
scsi0: vm2:104/vm-104-disk-1.raw,backup=0,size=50G
scsi1: /dev/disk/by-id/ata-TOSHIBA_MQ01ABB200_24DGPDNLT,size=1953514584K
scsihw: virtio-scsi-pci
smbios1: uuid=af5ed421-08f1-4ebd-81a4-4e595f7149f8
sockets: 1

If I add "machine: q35" and "pcie=1" to the config I receive Error Code 18 (Reinstall of the Video Driver)

And if I use Seabios I get:

kvm: -device vfio-pci,host=01:00.0,id=hostpci0.0,bus=pci.0,addr=0x10.0,x-vga=on,multifunction=on: vfio: Device does not support requested feature x-vga

ARGH!

showcmd gives me:
Haswell-noTSX,hv_vendor_id=proxmox

It doesn't matter what vendor is set, right? Here is a thread saying that it should be "Nvidia43FIX"

http://qemu.11.n7.nabble.com/Failin...ith-any-multidisk-configuration-td427320.html

How can I set this manually?

what did I miss?
 
Last edited:
Edited the /usr/share/perl5/PVE/QemuServer.pm and set "Nvidia43FIX" instead of "proxmox"

And now I receive the following error in the VM:

"Das Gerät funktioniert nicht ordnungsgemäß, da Windows die für das Gerät erforderlichen Treiber nicht laden kann. (Code 31)"

Can somebody explain that behaviour?

thank you :)
 
With all that known Nvidia's deliberate effort to prevent users from using their consumer-class gpu for passthrough I wonder why someone still want to use it. IMHO is is not worth the effort. Just pick some AMD/ATI-gpu, and you are done...
 
The big problem is that AMD doesn't have a suitable card which fits my needs. I don't have any space for a 6 pin power connector at the top of the card and the NVIDIA 1050ti was the best solution of performance without a need of a 6 pin power connector.

Do you know any RX470 Card with a 6 pin connector at the back of the card?
 
Last edited:
right, so let's get back to the topic and try to solve the driver problem ;)

where's spirit? He helped a lot in the past :)

Edit:

Updated to the latest kernel and now I am getting the Code31 Error even with "hv_vendor_id=proxmox"
 
Last edited:
Ok, testing is going on!

I connected a monitor....

I mapped my USB keyboard and mouse and I can play around in windows. So GPU passthrough works fine here!

But the problem is still the driver... Microsoft uses the standard Microsoft Driver and it shows no errors in the device manager!

But installation of the NVIDIA driver fails :/ He starts installing it (without the nvidia setup) via the device manager but after a few second it stops with "error during installation"

The driver setup of NVIDIA tells me that the driver is not compatible with my windows version?!

It is really strange that I don't get the Code43 error anymore?
 
Last edited:
Do I need to blacklist the card from the kernel?

with "pci-stub.ids=xxxx" in grub.cfg?
 
well.... i made a clean win 8.1 install and it worked!

Will try a clean win 10 installation now.
 
Windows 10 doesn't work!

It seems like there is a windows 10 problem with the driver/kvm/qemu.

Any suggestions? Windows 8.1 is working, Windows 10 not.

Edit:
I can confirm that Windows 8.1 works - tried again and it worked from the start without any issues.
 
Last edited:
Windows 10 doesn't work!

It seems like there is a windows 10 problem with the driver/kvm/qemu.

Any suggestions? Windows 8.1 is working, Windows 10 not.

Edit:
I can confirm that Windows 8.1 works - tried again and it worked from the start without any issues.
Great! Which one is working? NVIDIA or AMD?
 
I just managed to get my 1070 working with single gpu passthrough in Win10.

- create new VM
- add ovmf bios
- add your efi partition
- install windows using vnc / spice
- add your gpu in /etc/pve/qemu-server/$VMID.conf
Code:
machine: q35
hostpci0: xx:00,pcie=1,x-vga=on
- enjoy
 
I just managed to get my 1070 working with single gpu passthrough in Win10.

- create new VM
- add ovmf bios
- add your efi partition
- install windows using vnc / spice
- add your gpu in /etc/pve/qemu-server/$VMID.conf
Code:
machine: q35
hostpci0: xx:00,pcie=1,x-vga=on
- enjoy
What version of PVE?
uname -r

I'm thinking to try again with GTX 1050 Ti.
 
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!