commit
cb4b762a65
|
@ -4,39 +4,51 @@ Intel VT-d & VT-x – Intel Compatible list
|
||||||
All AMD CPUs from Bulldozer onwards should be compatible.
|
All AMD CPUs from Bulldozer onwards should be compatible.
|
||||||
|
|
||||||
2) Get device IDs:
|
2) Get device IDs:
|
||||||
lspci -nn
|
`lspci -nn`
|
||||||
|
|
||||||
3) Enable IOMMU in GRUB (check Intel or AMD commands below - choose the right one)
|
3) Enable IOMMU in GRUB (check Intel or AMD commands below - choose the right one)
|
||||||
nano /etc/default/grub
|
nano /etc/default/grub
|
||||||
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt"
|
|
||||||
GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on"
|
|
||||||
save and exit
|
|
||||||
|
|
||||||
5) run the command "update-grub"
|
`GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt"`
|
||||||
now reboot
|
|
||||||
|
|
||||||
6) Enable VFIO Modules
|
`GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on"`
|
||||||
nano /etc/modules
|
|
||||||
|
Verify that IOMMU is enabled by running `dmesg | grep -e DMAR -e IOMMU` and looking for a line indicating it is enabled
|
||||||
|
|
||||||
|
Save and exit
|
||||||
|
|
||||||
|
4) run the command `"update-grub"` now reboot
|
||||||
|
|
||||||
|
5) Enable VFIO Modules
|
||||||
|
`nano /etc/modules`
|
||||||
Add the following modules:
|
Add the following modules:
|
||||||
|
```
|
||||||
vfio
|
vfio
|
||||||
vfio_iommu_type1
|
vfio_iommu_type1
|
||||||
vfio_pci
|
vfio_pci
|
||||||
vfio_virqfd
|
vfio_virqfd
|
||||||
|
```
|
||||||
Then, save and exit
|
Then, save and exit
|
||||||
|
|
||||||
Next run:
|
6) `update-initramfs -u -k all` and reboot
|
||||||
update-initramfs -u -k all
|
|
||||||
and reboot
|
|
||||||
|
|
||||||
7) GPU Isolation From the Host (amend the below to include the IDs of the device you want to isolate)
|
Verify the modules are enabled with `dmesg | grep -i vfio` and checking the driver version line is present
|
||||||
echo "options vfio-pci ids=10de:1381,10de:0fbc disable_vga=1" > /etc/modprobe.d/vfio.conf
|
|
||||||
|
8) GPU Isolation From the Host (amend the below to include the IDs of the device you want to isolate)
|
||||||
|
|
||||||
|
`echo "options vfio-pci ids=10de:1381,10de:0fbc disable_vga=1" > /etc/modprobe.d/vfio.conf`
|
||||||
|
|
||||||
8) Blacklist GPU drivers (here are all that you would ever need)
|
8) Blacklist GPU drivers (here are all that you would ever need)
|
||||||
|
```
|
||||||
echo "blacklist radeon" >> /etc/modprobe.d/blacklist.conf
|
echo "blacklist radeon" >> /etc/modprobe.d/blacklist.conf
|
||||||
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
|
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
|
||||||
echo "blacklist nvidia" >> /etc/modprobe.d/blacklist.conf
|
echo "blacklist nvidia" >> /etc/modprobe.d/blacklist.conf
|
||||||
echo "blacklist nvidiafb" >> /etc/modprobe.d/blacklist.conf
|
echo "blacklist nvidiafb" >> /etc/modprobe.d/blacklist.conf
|
||||||
echo "blacklist nvidia_drm" >> /etc/modprobe.d/blacklist.conf
|
echo "blacklist nvidia_drm" >> /etc/modprobe.d/blacklist.conf
|
||||||
|
```
|
||||||
|
|
||||||
|
Reboot your machine, be sure to use the web gui because with the gpu passed through you will no longer get video out.
|
||||||
|
The start up will begin but then appear to hang even though proxmox has started fine.
|
||||||
|
|
||||||
9) Create a new VM and add the GPU via hardware menu
|
9) Create a new VM and add the GPU via hardware menu
|
||||||
You may need to set it as primary GPU
|
You may need to set it as primary GPU
|
||||||
|
|
Loading…
Reference in New Issue