3 hours ago · Tech · 0 comments

From Plex GPU transcoding in Docker on LXC on Proxmox v2: # make sure that all nvidia devices are loaded upon boot cat >/etc/systemd/system/nvidia-pre-lxc-init.service <<'EOF' [Unit] Description=Initialize NVIDIA devices early (before Proxmox guests) After=systemd-modules-load.service Before=pve-guests.service Wants=pve-guests.service [Service] Type=oneshot RemainAfterExit=yes ExecStartPre=-/sbin/modprobe nvidia ExecStartPre=-/sbin/modprobe nvidia_uvm ExecStart=-/usr/bin/nvidia-smi -L ExecStart=-/usr/bin/nvidia-modprobe -u -c=0 [Install] WantedBy=multi-user.target EOF systemctl daemon-reload systemctl enable nvidia-pre-lxc-init.service reboot then try nvidia-smi to confirm function.

No comments yet. Log in to reply on the Fediverse. Comments will appear here.