Hi! I post step by step tutorial how to install NVIDIA drivers on Promox server. I hope it will be usefull for someone:
1. Blacklist nouveau:
2. Paste, save and quit:
3. Update initramfs:
4. Check if nouveau is enabled:
5. Disable nouveau and verify:
6. Ensure GPU is visible:
7. Download driver (check for most recent version compatible with nvidia-utils-xxx-server):
8.Install build packages:
9. Run instalation:
10. Check if instalation was successfull:
11. [optional] Turn on persistane mode if necessary (lowers IDLE power consumption):
https://docs.nvidia.com/deploy/driver-persistence/index.html
12. After creating CT shut it down and edit lxc configuration file (location might be diffrent):
13. Paste, save and quit. If you have more than one GPU, change
14. Start your CT and install (on the CT):
15. Verify installation (on the CT)
1. Blacklist nouveau:
vi /etc/modprobe.d/blacklist-nouveau.conf
2. Paste, save and quit:
blacklist nouveau
options nouveau modeset=0
3. Update initramfs:
update-initramfs -u
4. Check if nouveau is enabled:
lsmod | grep nouveau
5. Disable nouveau and verify:
rmmod nouveau
lsmod | grep nouveau
6. Ensure GPU is visible:
lspci | grep NVIDIA
7. Download driver (check for most recent version compatible with nvidia-utils-xxx-server):
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/550.90.07/NVIDIA-Linux-x86_64-550.90.07.run
chmod +x NVIDIA-Linux-x86_64-550.90.07.run
8.Install build packages:
apt install build-essential pve-headers-$(uname -r)
9. Run instalation:
./NVIDIA-Linux-x86_64-550.90.07.run
10. Check if instalation was successfull:
nvidia-smi
11. [optional] Turn on persistane mode if necessary (lowers IDLE power consumption):
https://docs.nvidia.com/deploy/driver-persistence/index.html
nvidia-smi --persistence-mode=1 #only for current session
nvidia-persistenced
12. After creating CT shut it down and edit lxc configuration file (location might be diffrent):
vi /etc/pve/nodes/pve/lxc/10001.conf
13. Paste, save and quit. If you have more than one GPU, change
/dev/nvidia0 /dev/nvidia0
to /dev/nvidia<GPU ID> /dev/nvidia<GPU ID>
:lxc.cgroup2.devices.allow: c 195:* rwm
lxc.cgroup2.devices.allow: c 243:* rwm
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file
lxc.mount.entry: /dev/nvidia0 dev/nvidia0 none bind,optional,create=file
lxc.mount.entry: /dev/nvidiactl dev/nvidiactl none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-uvm dev/nvidia-uvm none bind,optional,create=file
lxc.mount.entry: /dev/nvidia-uvm-tools dev/nvidia-uvm-tools none bind,optional,create=file
14. Start your CT and install (on the CT):
apt install nvidia-utils-550-server
15. Verify installation (on the CT)
nvidia-smi