luckyyyyy / blog

William Chan's Blog
https://williamchan.me/
172 stars 28 forks source link

Proxmox 安装 NVIDIA 驱动 直通LXC 嵌套 docker 各种疑难杂症 #72

Open luckyyyyy opened 1 year ago

luckyyyyy commented 1 year ago

基本操作

# 屏蔽nouveau 添加一句 blacklist nouveau
vim /etc/modprobe.d/blacklist.conf
# 修改生效
update-initramfs -u
# 重启
reboot
# 到nvidia官方下载对应驱动 给运行权限
chmod +x NVIDIA-Linux-x86_64-525.116.04.run 
# 安装
./NVIDIA-Linux-x86_64-525.116.04.run 

错误

  1. Error: the distribution-provided pre-install script failed.
  2. Error: Unable to find the development tool 'cc' in your path.
  3. Error: Unable to find the development tool 'make' in your path.
  4. Error: The kernel module failed to load. Secure boot is enabled on this system.
  5. The signed kernel module failed to load.
  6. Error: Unable to load the kernel module 'nvidia.ko'
  7. Error: An NVIDIA kernel 'nvidia-drm' appears to already be loaded in your kernel.
  8. Error: An NVIDIA kernel module 'nvidia-modeset' appears to already be loaded in your kernel.
  9. WARNING: Unable to find a suitable destination to install 32-bit compatibility libraries.
  10. WARNING: Unable to determine the path to install the libglvnd EGL vendor library config files.

解决

image

LXC Docker

参考NVIDIA官方的安装手册 https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html