GPU Passthrough issues, HELP!

TaterSalad

New Member
Dec 12, 2020
5
0
1
31
I have followed almost every tutorial I can find and I still have issues, what am I missing? Below is the error I am seeing after trying to boot:

kvm: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
kvm: Host doesn't support requested features
TASK ERROR: start failed: QEMU exited with code 1

Hardware:
GPU: MSI GTX 1660 Super
CPU: AMD Ryzen 5 2600x
MB: MSI B450 Tomohawk

grub file: GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on iommu=pt pcie_acs_override=downstream,multifunction nofb nomodeset video=vesafb:eek:ff,efifb:eek:ff"

modules file:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

vm .conf file: (FOR CPU I HAVE TRIED BOTH KVM64 AND HOST)
agent: 1
balloon: 1024
bios: ovmf
boot: order=scsi0;ide2;net0
cores: 6
cpu: kvm64,hidden=1,flags=+pcid
efidisk0: local-lvm:vm-101-disk-1,size=4M
hostpci0: 1c:00,pcie=1,x-vga=1
ide1: local:iso/virtio-win-0.1.185.iso,media=cdrom,size=402812K
ide2: local:iso/Windows.iso,media=cdrom
machine: q35
memory: 8192
name: Plex
net0: virtio=C2:2D:A9:B1:AD:37,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsi0: local-lvm:vm-101-disk-0,cache=writeback,size=200G
scsi1: /dev/disk/by-id/ata-WDC_WD40EZRZ-22GXCB0_WD-WCC7K0UF6500,size=3907018584K
scsihw: virtio-scsi-pci
smbios1: uuid=da14d201-3b80-43d0-b746-b2a0fdab20d0
sockets: 1
vga: std
vmgenid: f09ef462-0412-4975-bdc3-4d4a42328e3f
 
Last edited:
The error seems to indicate that your actual CPU does not support the pcid-flag. I guess you have an AMD processor?
Just remove the .flags=+pcid or use the web GUI, as it should have nothing to do with GPU passthrough.
 
The error seems to indicate that your actual CPU does not support the pcid-flag. I guess you have an AMD processor?
Just remove the .flags=+pcid or use the web GUI, as it should have nothing to do with GPU passthrough.

I removed that flag and still get the below error:

TASK ERROR: start failed: command '/usr/bin/kvm -id 101 -name Plex -no-shutdown -chardev 'socket,id=qmp,path=/var/run/qemu-server/101.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -chardev 'socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect=5' -mon 'chardev=qmp-event,mode=control' -pidfile /var/run/qemu-server/101.pid -daemonize -smbios 'type=1,uuid=da14d201-3b80-43d0-b746-b2a0fdab20d0' -drive 'if=pflash,unit=0,format=raw,readonly,file=/usr/share/pve-edk2-firmware//OVMF_CODE.fd' -drive 'if=pflash,unit=1,format=raw,id=drive-efidisk0,size=131072,file=/dev/pve/vm-101-disk-1' -smp '6,sockets=1,cores=6,maxcpus=6' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' -vnc unix:/var/run/qemu-server/101.vnc,password -no-hpet -cpu 'host,hv_ipi,hv_relaxed,hv_reset,hv_runtime,hv_spinlocks=0x1fff,hv_stimer,hv_synic,hv_time,hv_vapic,hv_vendor_id=proxmox,hv_vpindex,kvm=off,+kvm_pv_eoi,+kvm_pv_unhalt' -m 8192 -readconfig /usr/share/qemu-server/pve-q35-4.0.cfg -device 'vmgenid,guid=f09ef462-0412-4975-bdc3-4d4a42328e3f' -device 'usb-tablet,id=tablet,bus=ehci.0,port=1' -device 'vfio-pci,host=0000:1c:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,multifunction=on' -device 'vfio-pci,host=0000:1c:00.1,id=hostpci0.1,bus=ich9-pcie-port-1,addr=0x0.1' -device 'vfio-pci,host=0000:1c:00.2,id=hostpci0.2,bus=ich9-pcie-port-1,addr=0x0.2' -device 'vfio-pci,host=0000:1c:00.3,id=hostpci0.3,bus=ich9-pcie-port-1,addr=0x0.3' -device 'VGA,id=vga,bus=pcie.0,addr=0x1' -chardev 'socket,path=/var/run/qemu-server/101.qga,server,nowait,id=qga0' -device 'virtio-serial,id=qga0,bus=pci.0,addr=0x8' -device 'virtserialport,chardev=qga0,name=org.qemu.guest_agent.0' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:ffce6ce6546d' -drive 'file=/var/lib/vz/template/iso/virtio-win-0.1.185.iso,if=none,id=drive-ide1,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.0,unit=1,drive=drive-ide1,id=ide1' -drive 'file=/var/lib/vz/template/iso/Windows.iso,if=none,id=drive-ide2,media=cdrom,aio=threads' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=101' -device 'virtio-scsi-pci,id=scsihw0,bus=pci.0,addr=0x5' -drive 'file=/dev/pve/vm-101-disk-0,if=none,id=drive-scsi0,cache=writeback,format=raw,aio=threads,detect-zeroes=on' -device 'scsi-hd,bus=scsihw0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0,id=scsi0,bootindex=100' -drive 'file=/dev/disk/by-id/ata-WDC_WD40EZRZ-22GXCB0_WD-WCC7K0UF6500,if=none,id=drive-scsi1,format=raw,cache=none,aio=native,detect-zeroes=on' -device 'scsi-hd,bus=scsihw0.0,channel=0,scsi-id=0,lun=1,drive=drive-scsi1,id=scsi1' -netdev 'type=tap,id=net0,ifname=tap101i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on' -device 'virtio-net-pci,mac=C2:2D:A9:B1:AD:37,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=102' -rtc 'driftfix=slew,base=localtime' -machine 'type=q35+pve0' -global 'kvm-pit.lost_tick_policy=discard' -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=NV43FIX,kvm=off'' failed: got timeout


Also, the weird thing is that I don't even see my GPU as a device, I see a few NVIDIA entries, but no device
1607795760758.png
 
New error after following another tutorial, its a bit different.

kvm: -device vfio-pci,host=0000:1c:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,multifunction=on: Failed to mmap 0000:1c:00.0 BAR 3. Performance may be slow
kvm: -device ide-cd,bus=ide.0,unit=1,drive=drive-ide1,id=ide1: Can't create IDE unit 1, bus supports only 1 units
TASK ERROR: start failed: QEMU exited with code 1