Advertisement
Guest User

Untitled

a guest
Dec 18th, 2024
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. Step by Step tasks:
  2.  
  3. Step 1: Edit GRUB
  4. Execute: nano /etc/default/grub
  5. Change this line from
  6. GRUB_CMDLINE_LINUX_DEFAULT="quiet"
  7. to
  8. GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction nofb nomodeset video=vesafb:off,efifb:off"
  9. Save file and exit the text editor
  10.  
  11. Step 2: Update GRUB
  12. Execute the command: update-grub
  13.  
  14. Step 3: Edit the module files
  15. Execute: nano /etc/modules
  16. Add these lines:
  17. vfio
  18. vfio_iommu_type1
  19. vfio_pci
  20. vfio_virqfd
  21. Save file and exit the text editor
  22.  
  23. Step 4: IOMMU remapping
  24. a) Execute: nano /etc/modprobe.d/iommu_unsafe_interrupts.conf
  25. Add this line:
  26. options vfio_iommu_type1 allow_unsafe_interrupts=1
  27. Save file and exit the text editor
  28. b) Execute: nano /etc/modprobe.d/kvm.conf
  29. Add this line:
  30. options kvm ignore_msrs=1
  31. Save file and exit the text editor
  32.  
  33. Step 5: Blacklist the GPU drivers
  34. Execute: nano /etc/modprobe.d/blacklist.conf
  35. Add these lines:
  36. blacklist radeon
  37. blacklist nouveau
  38. blacklist nvidia
  39. blacklist nvidiafb
  40. Save file and exit the text editor
  41.  
  42. Step 6: Adding GPU to VFIO
  43. a) Execute: lspci -v
  44. Look for your GPU and take note of the first set of numbers
  45. b) Execute: lspci -n -s (PCI card address)
  46. This command gives you the GPU vendors number.
  47. c) Execute: nano /etc/modprobe.d/vfio.conf
  48. Add this line with your GPU number and Audio number:
  49. options vfio-pci ids=(GPU number,Audio number) disable_vga=1
  50. Save file and exit the text editor
  51.  
  52. Step 7: Command to update everything and Restart
  53. a) Execute: update-initramfs -u
  54. b) Then restart the your Proxmox Node
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement