Skip to content

Add setup command and fix DNS resolution with NVIDIA GPU passthrough#264

Open
ViniAman01 wants to merge 2 commits intoJip-Hop:mainfrom
ViniAman01:main
Open

Add setup command and fix DNS resolution with NVIDIA GPU passthrough#264
ViniAman01 wants to merge 2 commits intoJip-Hop:mainfrom
ViniAman01:main

Conversation

@ViniAman01
Copy link

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:

  • Filter system library dirs from NVIDIA bind mounts to preserve jail DNS
  • Add setup command to re-run initial_setup in existing jails
  • Make docker template idempotent for safe re-execution
  • Warn when NVIDIA Container Toolkit is missing in jail

vsa added 2 commits February 17, 2026 17:49
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant