# Proxmox PCI Passthrough ## GPU ### Reference * [Proxmox Wiki - PCI_Passthrough](https://pve.proxmox.com/wiki/PCI_Passthrough) * [The Ultimate Beginner's Guide to GPU Passthrough (Proxmox, Windows 10)](https://www.reddit.com/r/homelab/comments/b5xpua/the_ultimate_beginners_guide_to_gpu_passthrough/) ## iGPU 1. Edit GRUB `nano /etc/default/grub.d/igpu-passthrough.cfg` ``` + GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on i915.enable_gvt=1 iommu=pt pcie_acs_override=downstream,multifunction video=efifb:off video=vesa:off vfio_iommu_type1.allow_unsafe_interrupts=1 kvm.ignore_msrs=1" ``` 2. Update GRUB `update-grub` 3. Add modules `nano /etc/modules-load.d/igpu-passthrough.conf` ``` vfio vfio_iommu_type1 vfio_pci vfio_virqfd kvmgt ``` 4. IOMMU remapping 1. `sudo echo "options vfio_iommu_type1 allow_unsafe_interrupts=1" >> /etc/modprobe.d/iommu_unsafe_interrupts.conf` 2.`sudo echo "options kvm ignore_msrs=1" >> /etc/modprobe.d/kvm.conf` * Options Blacklist the GPU drivers `nano /etc/modprobe.d/blacklist.conf` ``` blacklist radeon blacklist nouveau blacklist nvidia blacklist nvidiafb ``` 5. Adding GPU to VFIO 1. find pci card address `lspci -v | grep VGA` 2. get GPU vendors number `lspci -n -s {pci_card_address}` 3. `sudo echo "options vfio-pci ids={gpu_number},{audio_number} disable_vga=1" >> /etc/modprobe.d/vfio.conf` 6. Update Settings `update-initramfs -u` 7. Restart `sudo reboot` * VM Config ### **VM 建立 PCI device 後,就無法從 proxmox web 上連進 VM GUI,需事先建立好遠端桌面環境 ( anydesk etc... )** ### Reference * [Integrated GPU Passthrough to a Virtual Machine in Proxmox (Step-by-Step Tutorial)](https://www.youtube.com/watch?v=UoL8YJAc-vE) * [Alderlake direct passthrough to Linux VM is working with HDMI output!](https://forum.proxmox.com/threads/alderlake-direct-passthrough-to-linux-vm-is-working-with-hdmi-output.138049/) ## vGPU ### Reference * [PVE-Intel-vGPU](https://github.com/Upinel/PVE-Intel-vGPU)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up