meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vm:proxmox:kvm:gpu_poassthrough [2020/05/13 16:22] – niziak | vm:proxmox:kvm:gpu_poassthrough [2021/07/17 13:48] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
====== GPU passthrough ====== | ====== GPU passthrough ====== | ||
+ | ===== AMD APU ===== | ||
+ | [[https:// | ||
+ | |||
+ | ===== PCIe ===== | ||
<code bash> | <code bash> | ||
Line 6: | Line 11: | ||
update-initramfs -u | update-initramfs -u | ||
</ | </ | ||
+ | |||
+ | <code bash> | ||
+ | lcpci | ||
+ | 26:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2) | ||
+ | |||
+ | lspci -n -s 26:00.0 | ||
+ | 26:00.0 0300: 10de:0a65 (rev a2) | ||
+ | |||
+ | echo " | ||
+ | |||
+ | rmmod vfio-pci | ||
+ | modprobe vfio-pci | ||
+ | |||
+ | dmesg | ||
+ | [536167.737504] vfio-pci 0000: | ||
+ | [536170.155565] vfio-pci 0000: | ||
+ | [536170.173544] vfio_pci: add [10de: | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
===== 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, | Problem with NVidia card GT218. Device detected under Windows 10, driver installed automatically, | ||
+ | |||
+ | Nvidia drivers detects KVM. KVM can be hidden for guest OS: | ||
+ | |||
+ | <file | / | ||
+ | cpu: host, | ||
+ | </ | ||
+ | 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: | ||
< | < | ||
- | [535751.241394] pcieport 0000: | + | vfio-pci 0000:26:00.0: BAR 3: can't reserve [mem 0xf0000000-0xf1ffffff 64bit pref] |
- | [535751.252396] | + | ... |
- | [535751.263460] | + | pcieport 0000: |
- | </code. | + | pcieport 0000: |
+ | pcieport 0000: | ||
+ | </code> | ||
+ | |||
+ | GPU was used as host main adapter in graphic mode. To fix it add following kernel arguments: < | ||
+ | |||
+ | <file / | ||
+ | GRUB_CMDLINE_LINUX_DEFAULT=" | ||
+ | </ | ||
+ | |||
+ | <file / | ||
+ | root=ZFS=rpool/ | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | update-grub | ||
+ | pve-efiboot-tool refresh | ||
+ | </ | ||
+ | |||
+ | ===== This device cannot find enough free resources that it can use. (Code 12) ===== | ||
+ | |||
+ | Solution was to select " | ||
+ | |||