Add setup command and fix DNS resolution with NVIDIA GPU passthrough - #264
Add setup command and fix DNS resolution with NVIDIA GPU passthrough#264ViniAman01 wants to merge 2 commits into
Conversation
- Add 'setup' command to re-run initial_setup in existing jails - Filter broad system library dirs from NVIDIA mounts to prevent shadowing jail libc/NSS which breaks DNS resolution - Warn when NVIDIA Container Toolkit is missing in jail
|
If you were running into issues while using TrueNAS 25.10 or newer, the issue was due to a change made by iXsystems. More specifically, they replaced the NVIDIA Proprietary drivers with the NVIDIA Open Kernel drivers. With the proprietary drivers, the library files used to be located in So I don't think the issue is necessarily a DNS resolution issue per se. It's just a side effect because I've created a new fork and just created a new v2.2.0 release, if you're willing to give it a try. It should hopefully prevent the issue you ran into without having to re-run the initial setup in existing jails. Also, the NVIDIA Container Toolkit shouldn't be a requirement for a jail. IMHO, that should be handled via the config template, because it isn't always going to be needed. It'll probably be needed for apps like Beszel, but not other apps that won't be monitoring the GPU. So I don't think it's necessary to warn when that particular package doesn't exist in the jail. Here's a sample of what I have in my config template: |
Proposed fix for DNS resolution failure when gpu_passthrough_nvidia=1 is enabled.
Note: This is untested code, meant as a starting point for discussion. I encountered these issues in my setup and thought this approach might help others.
The issue was caused by mounting broad system library directories (like /usr/lib/x86_64-linux-gnu) which shadowed the jail's libc/NSS libraries, breaking name resolution.
Changes:
setupcommand to re-run initial_setup in existing jails