Devcontainer with GPU access

Here’s a message you can use for Discord: --- Hi everyone,
I've got a question about using envbuilder and devcontainer. We're trying to access the GPUs of our server, but during the build process, we encounter this error:
temp remount: temp remount: bind mount /usr/bin/nvidia-smi => /.envbuilder/mnt/usr/bin/nvidia-smi: operation not permitted
temp remount: temp remount: bind mount /usr/bin/nvidia-smi => /.envbuilder/mnt/usr/bin/nvidia-smi: operation not permitted
Is it possible to mount the GPUs? Any insights or tips would be greatly appreciated!
Thank you for your help 🙂
6 Replies
Codercord
Codercord2mo ago
<#1308453800050167880>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Atif
Atif2mo ago
There is some related discussions here: https://github.com/coder/envbuilder/issues/143
GitHub
Investigate GPU support · Issue #143 · coder/envbuilder
Some users will want to mount a GPU to an envbuilder-backed workspace. Can we investigate in which scenarios (if any) this works today and if/how we can patch upstream Kaniko to improve the experie...
Phorcys
Phorcys2w ago
hey @Zebrazinker, did you figure this out?
aarosil
aarosil2w ago
Hey there, I think you can set this env var, it should skip over certain paths "ENVBUILDER_IGNORE_PATHS": "/usr/local/nvidia,/etc/vulkan,/var/run", Just add that env var with a list of the read-only mount points are there for your GPU driver
Phorcys
Phorcys5d ago
closing as stale, feel free to reopen
Codercord
Codercord5d ago
@Phorcys closed the thread.

Did you find this page helpful?