# statistics and reporting experience >

How to PCI passthrough on Proxmox

PCI passthrough allows you to use a physical PCI device (graphics card, network card) inside a VM (KVM virtualization only).

If you “PCI passthrough” a device, the device is not available to the host anymore.

#edit grub

# nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction"

# nano /etc/modprobe.d/iommu_unsafe_interrupts.conf
options vfio_iommu_type1 allow_unsafe_interrupts=1

# nano /etc/modprobe.d/kvm.conf
options kvm ignore_msrs=1

# nano /etc/modprobe.d/blacklist.conf
blacklist nvidiafb
blacklist radeon
blacklist nouveau
blacklist nvidia

# nano /etc/modprobe.d/vfio.conf				
# id pci card หาจาก #lspci -nn เอาเลข ด้านหลัง card ที่ต้องการที่อยู่ในปีกกามาใส่ เช่น [8086:10a4] ที่ ids
options vfio-pci ids=8086:10a4

# nano /etc/modules-load.d/modules.conf
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

$ update-initramfs -u -k all
$ update-grub
$ reboot
Share on facebook
Facebook
Share on google
Google+
Share on twitter
Twitter
Share on linkedin
LinkedIn
Share on pinterest
Pinterest