From 4239bf30a403641794e9180c708516409782fcab Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 23 Dec 2020 16:40:20 +0000 Subject: [PATCH] Mention that drivers can be installed from Nvidia direct --- content/posts/lxc-nvidia-gpu-passthrough.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/posts/lxc-nvidia-gpu-passthrough.md b/content/posts/lxc-nvidia-gpu-passthrough.md index 22648a4..f6e6532 100644 --- a/content/posts/lxc-nvidia-gpu-passthrough.md +++ b/content/posts/lxc-nvidia-gpu-passthrough.md @@ -83,6 +83,8 @@ There's my GPU being detected correctly, using driver version `418.152.00` - we' (This is just a temporary GPU until I purchase something more suited for transcoding. Don't judge me.) +As an alternative to installing through your system package manager, you may prefer to install direct from [nvidia.com](https://www.nvidia.com/Download/index.aspx). This has the downside of requiring manual updates for newer versions, but means it's much easier to match versions between the host and guest OS (more on that later). + ### 2. Configure container Next, create your container. There's nothing special about this process, just choose the OS and resource requirements for you. @@ -127,6 +129,8 @@ The gist of the configuration is to also install the nvidia drivers, but without To install on Ubuntu, you'll need to install the `nvidia-headless-no-dkms-418-server` package for the actual drive and `nvidia-utils-418-server` for some of the extra utils (and `nvidia-smi`). Note that the "418" in these packages matches the major version number of the driver installed on the host. If you install the wrong ones, it'll install correctly, but attempting to use the GPU will fail due to the mismatch (it's nice enough to tell you this is the issue, though). +As with the host, it's also possible to install these drivers through [nvidia.com](https://www.nvidia.com/Download/index.aspx), although be sure to run the install with `--no-kernel-module`. + ### 4. Test it Now, from your container, you should be able to run `nvidia-smi`, and it'll show the right version GPU and driver.