-
Notifications
You must be signed in to change notification settings - Fork 0
NixOS Config for a p2p-enabled nvidia driver installation with lxc container support with GPU paththrough
License
mikex86/nvidia-consumer-p2p-nixos
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
How to launch a container: sudo lxc launch ubuntu:24.04 cuda-container-01 sudo lxc profile add cuda-container-01 bridged # create a bridged profile to get internet access before doing this sudo lxc config device add cuda-container-01 allnvidia gpu vendorid=10de # verify vendor id here sudo lxc exec cuda-container-01 -- su - root -c 'tmux new-session -A -s main' In container: sudo apt update && sudo apt upgrade Install user space libraries (no kernel modules!): wget https://us.download.nvidia.com/XFree86/Linux-x86_64/565.57.01/NVIDIA-Linux-x86_64-565.57.01.run sudo bash NVIDIA-Linux-x86_64-565.57.01.run --no-kernel-modules Install CUDA (no driver!): Install cuda with .run file to explicitly unselect the driver from being installed. apt packages may pull in the driver as a dependency and or install mismatched user space libraries in the process! sudo apt install gcc wget https://developer.download.nvidia.com/compute/cuda/12.6.3/local_installers/cuda_12.6.3_560.35.05_linux.run sudo bash cuda_12.6.3_560.35.05_linux.run # make sure to unselect driver and kernel objects Add /usr/local/cuda/bin to $PATH with method of choice. Enjoy.
About
NixOS Config for a p2p-enabled nvidia driver installation with lxc container support with GPU paththrough
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published