Skip to content

Instantly share code, notes, and snippets.

@tbr
tbr / tbr_pcie_pt
Last active September 5, 2023 17:05
Proxmox PCIe passthru with vfio-pci by exact device address (rather than per complete kernel module and VID/DEV)
#!/bin/sh
# Place in /etc/initramfs-tools/scripts/init-top (+x)
#
# This way of PCIe passthru allows for example to select a single NIC
# for a VM, while allowing other NICs to be still used by Proxmox.
#
# In my case, to passthru one SFP+ slot of a dual NIC card.
#
PREREQ=""
prereqs()