PCIe passthrough does not work

please do last proxmox updates from pve-no-subscription repository.

qemu-server >= 4.0-43 should fix it
I have updated to
Code:
root@GameMachine:~# pveversion -v
proxmox-ve: 4.1-34 (running kernel: 4.2.6-1-pve)
pve-manager: 4.1-5 (running version: 4.1-5/f910ef5c)
pve-kernel-4.2.6-1-pve: 4.2.6-34
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 0.17.2-1
pve-cluster: 4.0-29
qemu-server: 4.0-49
pve-firmware: 1.1-7
libpve-common-perl: 4.0-41
libpve-access-control: 4.0-10
libpve-storage-perl: 4.0-38
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.5-3
pve-container: 1.0-32
pve-firewall: 2.0-14
pve-ha-manager: 1.0-14
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u1
lxc-pve: 1.1.5-5
lxcfs: 0.13-pve1
cgmanager: 0.39-pve1
criu: 1.6.0-1
zfsutils: 0.6.5-pve6~jessie
I have uninstalled and reinstalled the drivers on the guest and still getting code 12, code 10 before I install the driver

Edit: I would also like to add that I do have to install windows 7 without the passthrough enabled, it freezes at the "starting windows" screen. I was able to get windows 10 to passthrough during install just fine. but win 7 freezes
 
Last edited:
can you send your /etc/pve/qemu-server/vmid.conf file ?
If I use this config it freezes at the windows is loading screen while trying to install windows
Code:
bios: ovmf
boot: dcn
bootdisk: sata0
cores: 2
cpu: Haswell
hostpci0: 01:00,pcie=1,x-vga=on
ide2: local:iso/en_windows_7_professional_with_sp1_x64_dvd_u_676939.iso,media=c$
machine: q35
memory: 4096
name: DanWin7
net0: e1000=62:36:65:65:34:34,bridge=vmbr0
numa: 0
ostype: other
sata0: /dev/disk/by-id/ata-Samsung_SSD_850_PRO_128GB_S1SMNSAF818467J,size=12503$
smbios1: uuid=047867b1-8582-4f51-af2d-a4130ac0b762
sockets: 1
tablet: 0
usb0: host=1-4
usb1: host=046d:c247

however if I install windows without x-vga=on I can install windows and the nvidia drivers using console but then nvidia gives me code 10/12 with this configuration and if I re-enable x-vga=on after installation it once again freezes at windows loading screen

Code:
bios: ovmf
boot: dcn
bootdisk: sata0
cores: 2
cpu: Haswell
hostpci0: 01:00,pcie=1
ide2: local:iso/en_windows_7_professional_with_sp1_x64_dvd_u_676939.iso,media=c$
machine: q35
memory: 4096
name: DanWin7
net0: e1000=62:36:65:65:34:34,bridge=vmbr0
numa: 0
ostype: other
sata0: /dev/disk/by-id/ata-Samsung_SSD_850_PRO_128GB_S1SMNSAF818467J,size=12503$
smbios1: uuid=047867b1-8582-4f51-af2d-a4130ac0b762
sockets: 1
tablet: 0
usb0: host=1-4
usb1: host=046d:c247
vga: std

on a side note I have also tried ostype:win7 and ostype:win8
 
,x-vga=on is needed, because it's disabling hyperv-v features and mask kvm feature in cpu,which is needed for geforce driver.
I don't see any reason why it could block windows boot.




Do you have tried without machine:q35 and ,pcie=1 ?
Code:
boot: dcn
bootdisk: sata0
cores: 2
cpu: Haswell
hostpci0: 01:00,x-vga=on
ide2: local:iso/en_windows_7_professional_with_sp1_x64_dvd_u_676939.iso,media=c$
memory: 4096
name: DanWin7
net0: e1000=62:36:65:65:34:34,bridge=vmbr0
numa: 0
ostype: other
sata0: /dev/disk/by-id/ata-Samsung_SSD_850_PRO_128GB_S1SMNSAF818467J,size=12503$
smbios1: uuid=047867b1-8582-4f51-af2d-a4130ac0b762
sockets: 1
tablet: 0
usb0: host=1-4
usb1: host=046d:c247
 
Last edited:
I decided to give up windows 7 for now and have two VM's running on windows 10, I will try without pcie when I get home.
 

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!