GPU Passthrough not working correctly after PVE6 to 7 update

aqumax

New Member
Jan 31, 2022
3
0
1
27
Hi all,

I am getting issues with passthrough not working correctly on my VM after updating to PVE7. Everything was working perfectly before the update with the settings below.

The error I am getting is this when I try boot up my Win10 VM after the update


kvm: -device vfio-pci,host=0000:02:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,x-vga=on,multifunction=on: vfio 0000:02:00.0: failed getting region info for VGA region index 8: Invalid argument device does not support requested feature x-vga TASK ERROR: start failed: QEMU exited with code 1

If I remove the Primary GPU option it boots up fine with code 43 in device manager.

Here is the conf for my win10 VM

Code:
agent: 1
balloon: 1024
bios: seabios
bootdisk: scsi0
cores: 8
cpu: host,hidden=1,flags=+pcid
efidisk0: SSD1.120:vm-100-disk-1,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:02:00,pcie=1,x-vga=1
kvm: 1
machine: q35
memory: 16384
name: RGaming10
net0: virtio=7A:C1:4F:DC:50:53,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsi0: local-lvm:vm-100-disk-0,cache=writeback,size=256G
scsihw: virtio-scsi-pci
smbios1: uuid=704ffd5d-fe0b-4048-81ec-85472962620f
sockets: 1
vmgenid: c9cf194f-95e5-445b-ba35-2ac7a285b5c3

Here is the output for lspci -v

https://pastebin.com/CfzY6dZR

I have tried creating a fresh new VM using Win11 to see if it was an issue with the VM after the update but I still get the same issue.
 
you are booting your vm with seabios, but have an efidisk configured. is this intentional?
 
you are booting your vm with seabios, but have an efidisk configured. is this intentional?
Yes sorry I was testing OVMF to see if that would make a difference but was still getting the error even after removing the efidisk
 
can you try to boot into an older kernel (from before the upgrade) ?

if that works, can you send the output of 'dmesg' for the working & non-working kernel?
 
I have the same problem. Passthrough stopped working after upgrading from 6.4 to 7.1. Booting with an older kernel fixes the problem. Where should I upload 'dmesg' ?

Update: installing kernel 5.15.17-1-pv fixes the problem.
 
Last edited: