nvidia devices not appearing on boot (proxmox)

Sup. I have proxmox configured to start a Jellyfin LXC whenever the host (re)starts. However, the /dev/nvidia* devices do not appear until I manually run nvidia-smi (probably anything nvidia* would would work) on the host, so the autostart is failing. Any ideas why I would need to run something likenvidia-smi first to get/dev/nvidia* devices to show up?

25 points · 3 comments · view on lemmy.world

3 Comments

Shadow@lemmy.ca · 5 pts · 228d

Check lsmod and see if the kernel modules are loaded. Nvidia smi is probably loading them for you on first run.

kumi@feddit.online · 5 pts · 228d

Nope but I guess a workaround would be to make a oneshot workaround-nvidia-gpu.service systemd unit file that runs the command and have the lxc autostart depend on it?

Might be something about PCI resets that running the command triggers 🤷‍♀️

SteveTech@aussie.zone · 2 pts · 227d

Most of the setup guides I've seen, have a udev rule that runs nvidia-modprobe. Here's one I just found.