Proxmox GPU/PCIE passthrough

Опубликовано: 09 Октябрь 2021
на канале: LoRes DIY
62,426
1k

Setting Proxmox up to allow a GPU to passthrough to a virtual machine.

Websites I used as references

https://pve.proxmox.com/wiki/Pci_pass...

https://www.reddit.com/r/homelab/comm...

Edit GRUB

nano /etc/default/grub

Change this line from

GRUB_CMDLINE_LINUX_DEFAULT="quiet"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on iommu=pt pcie_acs_override=downstream,multifunction nofb nomodeset video=vesafb:off,efifb:off"

save file and update grub

update-grub

Reboot the node

Edit the module file

VFIO = Virtual Function I/O

nano /etc/modules

Add these lines

vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

save and reboot

IOMMU remapping (some systems are not good at mapping the IOMMU, this will help)

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

Blacklist the GPU drivers (this will kkeep the host system from trying to use the new GPU)

nano /etc/modprobe.d/blacklist.conf

blacklist radeon
blacklist nouveau
blacklist nvidia
blacklist nvidiafb

Adding GPU to VFIO

lspci -v

Look for your GPU and take note of the first set of numbers this is your PCI card address.

Then run this command

lspci -n -s (PCI card address)

This command gives use the GPU vendors number.

Use those numbers in this command

nano /etc/modprobe.d/vfio.conf

options vfio-pci ids=(GPU number,Audio number) disable_vga=1

Run this command to update everything

update-initramfs -u

Then restart the server.

Make a new VM

Bios is OMVF(UEFI)
Machine is q35

Start the new VM and make sure remote desktop is active
and find the IP Adress

Not affiliate Links

https://www.ebay.com/usr/theartofserv...

https://www.amazon.com/dp/B06XT1Z9TF?...

#LoResDIY

My Channel:    / loresdiy  


Смотрите видео Proxmox GPU/PCIE passthrough онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь LoRes DIY 09 Октябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 62,42 раз и оно понравилось 1 тысяч людям.