Proxmox GPU Passtrough: Difference between revisions

From Corat Coret
No edit summary
 
Line 10: Line 10:
nano /etc/modprobe.d/blacklist.conf
nano /etc/modprobe.d/blacklist.conf
blacklist nouveau
blacklist nouveau
</syntaxhighlight>
Buat udev rules
<syntaxhighlight lang="bash">
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
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 19:16, 22 June 2024

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