diff --git a/_Inbox/2026-04-27 2233 setting up gpu with proxmox lxc.md b/_Inbox/2026-04-27 2233 setting up gpu with proxmox lxc.md index 2cd10e4..e1ef32d 100644 --- a/_Inbox/2026-04-27 2233 setting up gpu with proxmox lxc.md +++ b/_Inbox/2026-04-27 2233 setting up gpu with proxmox lxc.md @@ -22,5 +22,23 @@ passing thought gpu to [[Proxmox]] lxc container - exec `update-initramfs -u` - reboot - enable power management on the host - - `nvidia-smi -pm 1` -- \ No newline at end of file + - exec `nvidia-smi -pm 1` + - you will need to create a system service that starts this a boot + - `nano /etc/systemd/system/nvidia-monitor.service` +``` +[Unit] +Description=Enable NVIDIA Persistence Mode +After=nvidia-kernel-common.service +Wants=nvidia-kernel-common.service + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/bin/nvidia-smi -pm 1 + +[Install] +WantedBy=multi-user.target +``` + + - systemctl daemon-reload + - systemctl enable --now nvidia-monitor.service