[SOLVED] 4.2 VGA Passthrough Problems

aarb000

Renowned Member
Feb 15, 2016
16
0
66
I upgraded to 4.2 and unfortunately are having issues with passthrough.

My NVIDIA card is no longer passing through the audio device. If I lspci in Proxmox, I see the device, but if I lspci in my guest, I only see the video card, not the audio. The video does pass through fine, as do my usb devices. I am having the same results in a Windows 10 guest too.

My system details and configurations haven't changed from this post:

https://forum.proxmox.com/threads/vga-passthrough-dilemma.26060/

Code:
root@pve:~# pveversion -v
proxmox-ve: 4.2-48 (running kernel: 4.4.6-1-pve)
pve-manager: 4.2-2 (running version: 4.2-2/725d76f0)
pve-kernel-4.4.6-1-pve: 4.4.6-48
pve-kernel-4.2.6-1-pve: 4.2.6-36
pve-kernel-4.2.8-1-pve: 4.2.8-41
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 1.0-1
pve-cluster: 4.0-39
qemu-server: 4.0-72
pve-firmware: 1.1-8
libpve-common-perl: 4.0-59
libpve-access-control: 4.0-16
libpve-storage-perl: 4.0-50
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.5-14
pve-container: 1.0-62
pve-firewall: 2.0-25
pve-ha-manager: 1.0-28
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u1
lxc-pve: 1.1.5-7
lxcfs: 2.0.0-pve2
cgmanager: 0.39-pve1
criu: 1.6.0-1
zfsutils: 0.6.5-pve9~jessie

I really don't know how to troubleshoot this, so any help is appreciated.
 
I got it working. Hope this helps someone. Not sure why it changed, so if someone has insight, it would be good to know.

I changed my conf file from

Code:
hostpci0: 06:00,pcie=1,x-vga=on

to

Code:
hostpci0: 06:00.0,pcie=1,x-vga=on
hostpci1: 06:00.1

and now it is working fine.
 
Iv'e noticed this as well. Passing devices on the same PCI channel (terminology?) no longer seems to work as a one liner. You seem to have to specify each one.
 
I got it working. Hope this helps someone. Not sure why it changed, so if someone has insight, it would be good to know.

I changed my conf file from

Code:
hostpci0: 06:00,pcie=1,x-vga=on

to

Code:
hostpci0: 06:00.0,pcie=1,x-vga=on
hostpci1: 06:00.1

and now it is working fine.

Would you mind sharing your entire config file?

I've been struggling getting mine passed through, as documented in this thread, and it would be nice to see what a working Nvidia passthrough config file looks like in 4.2

I'm getting "NVRM: RmInitAdapter failed! (0x25:0x40:1170)" errors in my Ubuntu VM (I'm building a home brew Kodi system, equivalent of OpenElec), and I'm assuming this error is pretty much equivalent to the Error 43 people complain about in Windows.
 
I got it working. Hope this helps someone. Not sure why it changed, so if someone has insight, it would be good to know.

I changed my conf file from

Code:
hostpci0: 06:00,pcie=1,x-vga=on

to

Code:
hostpci0: 06:00.0,pcie=1,x-vga=on
hostpci1: 06:00.1

and now it is working fine.

I had a similar problem as yours passing through a GTX980, ie after upgrading from 4.1 to 4.2, Win 10 does not detect audio device, ie
the speaker icon at bottom right of task bar shows a white cross on red circle.


GPU works fine. However, from Device Manager->Sound. video and game controllers, it can see the following:
NVIDIA Virtual Audio Device (Wave Extensible) (WDM).

I made the change as you suggested by passing GPU and audio device as separate PCI device but to no avail after rebooting both
Win 10 VM & PVE.

Any other suggestion or idea?


EDIT: Few minutes after I posted my issue, I have resolved it by changing the order of the pass through ie audio device comes before GPU, for my case it looks like:

hostpci1: 03:00.1
hostpci0: 03:00.0,pcie=1,x-vga=on

Hope that helps others too but thanks to you aarb000 to begin with :)


Thanks,
FXD
 
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!