meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vm:proxmox:kvm:gpu_poassthrough [2020/05/13 16:30] niziakvm:proxmox:kvm:gpu_poassthrough [2021/07/17 13:48] (current) niziak
Line 1: Line 1:
 +
 ====== GPU passthrough ====== ====== GPU passthrough ======
 +===== AMD APU =====
 +[[https://gist.github.com/SimonTod/72945457c4d7e741a382ba9ce9c4731b]]
 +
 +===== PCIe  =====
  
 <code bash> <code bash>
Line 24: Line 29:
 [536170.173544] vfio_pci: add [10de:0a65[ffffffff:ffffffff]] class 0x000000/00000000 [536170.173544] vfio_pci: add [10de:0a65[ffffffff:ffffffff]] class 0x000000/00000000
 </code> </code>
 +
 +
  
  
 ===== Error code 43 ===== ===== Error code 43 =====
  
 +It is generic error code. Possible reasons:
 +
 +==== KVM detected ====
 Problem with NVidia card GT218. Device detected under Windows 10, driver installed automatically, but device is not working. Error code 43. Problem with NVidia card GT218. Device detected under Windows 10, driver installed automatically, but device is not working. Error code 43.
 +
 +Nvidia drivers detects KVM. KVM can be hidden for guest OS:
 +
 +<file | /etc/pve/qemu-server/702.conf>
 +cpu: host,hidden=1
 +</file>
 +NOTE: Proxmox already contains fixes for Nvidia, so it is not needed. 
 +
 +===== BAR 3: can't reserve =====
 Lots of errors on host dmesg: Lots of errors on host dmesg:
 <code> <code>
-[535751.241394] pcieport 0000:00:03.1: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:26:00.0 +vfio-pci 0000:26:00.0: BAR 3: can't reserve [mem 0xf0000000-0xf1ffffff 64bit pref] 
-[535751.252396] pcieport 0000:00:03.1: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:26:00.0 +... 
-[535751.263460] pcieport 0000:00:03.1: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:26:00.0+pcieport 0000:00:03.1: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:26:00.0 
 +pcieport 0000:00:03.1: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:26:00.0 
 +pcieport 0000:00:03.1: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:26:00.0
 </code> </code>
 +
 +GPU was used as host main adapter in graphic mode. To fix it add following kernel arguments: <code>nomodeset textonly video=vesafb:off video=efifb:off</code>
 +
 +<file /etc/default/grub>
 +GRUB_CMDLINE_LINUX_DEFAULT="nomodeset textonly video=vesafb:off video=efifb:off"
 +</file>
 +
 +<file /etc/kernel/cmdline>
 +root=ZFS=rpool/ROOT/pve-1 boot=zfs rootdelay=4 mitigations=off panic=30 nomodeset textonly video=vesafb:off video=efifb:off
 +</file>
 +
 +<code bash>
 +update-grub
 +pve-efiboot-tool refresh
 +</code>
 +
 +===== This device cannot find enough free resources that it can use. (Code 12) =====
 +
 +Solution was to select "Primary GPU" on PCI Device (x-vga=1 option in Proxmox config file)
 +
 +