Proxmox GPU Passtrough

From Corat Coret

Persiapan

apt update && apt upgrade
apt install pve-headers-*.*.*-*-pve

Buat file untuk mencegah semua driver di-load secara otomatis

nano /etc/modprobe.d/blacklist.conf
blacklist nouveau


Buat udev rules

nano /etc/udev/rules.d/70-nvidia.rules

# Tambahkan
KERNEL=="nvidia", RUN+="/bin/bash -c '/usr/bin/nvidia-smi -L && /bin/chmod 666 /dev/nvidia*'"
KERNEL=="nvidia_modeset", RUN+="/bin/bash -c '/usr/bin/nvidia-modprobe -c0 -m && /bin/chmod 666 /dev/nvidia-modeset*'"
KERNEL=="nvidia_uvm", RUN+="/bin/bash -c '/usr/bin/nvidia-modprobe -c0 -u && /bin/chmod 666 /dev/nvidia-uvm*'"

# Restart
reboot