PCI Passthrough and Mediated GPU

spetrillo

Member
Feb 15, 2024
200
9
18
Hello all,

After ALOT of back and forth on my different posts I have boiled it down for those using the Lenovo M720q and M920q Tiny devices as Proxmox servers and want to do PCIe passthrough or Mediated GPU:

1) Install Proxmox from ISO. I use ZFS as my file system
2) Edit /etc/kernel/cmdline and add: root=ZFS=rpool/ROOT/pve-1 boot=zfs quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction i915.enable_gvt=1
3) Edit /etc/modules and add: vfio, vfio_iommu_type1, vfio_pci, kvmgt. Each should be on its own line.
4) Enter update-initramfs -u -k all from a shell session on the Proxmox server
5) Reboot Proxmox server

Once the server has rebooted run pvesh get /nodes/{nodename}/hardware/pci --pci-class-blacklist "". Change {nodename} to the name of your server. It should list all your PCIe devices in their own IOMMU groups, as well as mark your GPU as mediated.

Thats it...YMMV but thats exactly what I did on 3 M720q Tiny devices.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!