-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Error] --nvidia leaves incomplete vulkan installation #848
Comments
By digging a bit deeper I could manged to get all Vulkan related stuff to work properly inside the distrobox. It seems upon creating the container the following files are not mounted into the container:
After manually obtaining those files from my host system and copying the into the container both vkcube and vulkaninfo worked properly. for |
This seems strange, About /etc/, I've just added it If you find that files are still not picked up let's reopen this and someone with an nvidia machine will need to help me :) |
Does the script also copy symlinks? Working host libraries
broken guest libraries
As you can see, you're right, all existing libraries get copied into the container. As you can see in the example above the host has this sysmlink while the (fresh guest) does not. This is true for openSUSE Tumbleweed, Fedora and Arch Linux images (those are the once I have currently installed) While the directory containing the icd file is missing entirely in the conteiner systems: /etc of host:
/etc of guest:
While it is true you are mentioning icd files in the distrobox-init script:
it does not search /etc/vulkan which is where the nvidia driver puts those. I am no expert here, I just took a look a little closer and as I apparently have a nvidia system and hope I could gather enough resources for at least a hint. |
Interesting thanks for this report! About Seems like symlinks are being skipped, I'll try to mock something to also mount the symlinks 👍 |
Oh yes I missed the /etc/ part, which is just a few lines above the once I copy pasted 😅 My bad. And many thanks for looking into this! |
Many thanks! ❤️ |
Describe the bug
Hello there Not sure if I missed it but couldn't find an issue regarding this:
I noticed that a container created with the --nvidia flag seems to not mount the
/etc/vulkan/icd.d/nvidia_icd.json
file into the container which makes vulkan applications not working in a distrobox container.Manually coping the nvidia_icd.json from my host system into the container resolved the issue.
However running vulkaninfo with my modifications still threw some errors which makes me believe there might be more vulkan related driver stuff not properly mounted into the container.
To Reproduce
Expected behavior
Logs
vkcube
vulkaninfo:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: