Nvidia distrobox integration not working...

GitHub
Nvidia distrobox integration not working · Issue #61 · ublue-os/baz...
Distrobox with the --nvidia flag is supposed to copy the host's Nvidia drivers into the container. It seems this may be incomplete, as currently this results in a broken installation. This is a...
32 Replies
bsherman
bsherman17mo ago
so... I'm starting to test things related to this and adding to the ticket do you have any suggested packages to install for fedora/ubuntu for simple testing of vulkan/opengl? glx-utils seems like it would work for gl on fedora and mesa-utils for ubuntu
Kyle Gospo
Kyle GospoOP17mo ago
Seems like the issue is only vulkan than since everything worked but vkcube, right? @javvyy
Javvy
Javvy17mo ago
didnt test specific engines but things like steam etc worked fine from earlier testing could go test that again rq steam utilizes my gpu just fine any other tests i could do with games directly off the fedora repos or we
EyeCantCU
EyeCantCU17mo ago
This is so weird... I wonder if it's some weird disparity between generations of cards or something
bsherman
bsherman17mo ago
I updated the issue with my (failed) vulkan test results of course, now i want to test on my hybrid laptop and i did,... same results on laptop with 3050 as on desktop with 1660
Javvy
Javvy17mo ago
No description
Javvy
Javvy17mo ago
these are my specs dont have any other hybrid laptop or desktop to test on atm tho @bsherman is your display' s laptop wired to the dgpu or igpu that could make a difference
Kyle Gospo
Kyle GospoOP17mo ago
suppose the next question is are you missing any of the files from the upstream issue and does adding them resolve the issue?
bsherman
bsherman17mo ago
I have same behavior on desktop and laptop... desktop is wired to nvidia (only gpu) laptop is wired to intel (nvidia is "prime" mode or whatever) i can document more specifics in ticket, but the /etc/vulkan dir is empty on my host, so mapping it as a volume changes nothing in the distrobox instance... adding that volume mount for /usr/lib64/libnvidia-vulkan-producer.so did change the error... and i'm going to test that again in fedora-nvidia as i think the error could have been library related
Javvy
Javvy17mo ago
how do i see the renderer of gl/vk?
Kyle Gospo
Kyle GospoOP17mo ago
if adding the missing stuff works I can work around this with a post-init script 🙂
Javvy
Javvy17mo ago
aaa
❯ DRI_PRIME=1 glxgears
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
33634 frames in 5.0 seconds = 6726.710 FPS
❯ DRI_PRIME=1 glxgears
libGL error: glx: failed to create dri3 screen
libGL error: failed to load driver: nouveau
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
33634 frames in 5.0 seconds = 6726.710 FPS
this might be of interest
bsherman
bsherman17mo ago
oh, it works [bsherman@fedora-nvidia ~]$ vkcube Selected GPU 0: NVIDIA GeForce GTX 1660 Ti, type: DiscreteGpu [bsherman@fedora-nvidia2 ~]$ vkcube Selected GPU 0: NVIDIA GeForce GTX 1660 Ti, type: DiscreteGpu so vulkan works for me when using fedora distrobox, but didn't on bazzite what did i do that made me think vulkan wasn't working before? and this works on my laptop too, from fedora distrobox $ vkcube Selected GPU 1: NVIDIA GeForce RTX 3050 Ti Laptop GPU, type: DiscreteGpu and now it works on laptop from bazzite-arch
bazzite-arch in ~ took 2s
at 12:50:31 ⬢ ❯ vkcube
Selected GPU 0: NVIDIA GeForce RTX 3050 Ti Laptop GPU, type: DiscreteGpu
bazzite-arch in ~ took 2s
at 12:50:31 ⬢ ❯ vkcube
Selected GPU 0: NVIDIA GeForce RTX 3050 Ti Laptop GPU, type: DiscreteGpu
bazzite-arch in ~ took 3s
at 12:50:37 ⬢ ❯ vkgears
vkgears: ../mesa-demos-9.0.0/src/vulkan/vkgears.c:400: create_swapchain: Assertion `surface_caps.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR' failed.
Aborted (core dumped)
bazzite-arch in ~ took 3s
at 12:50:37 ⬢ ❯ vkgears
vkgears: ../mesa-demos-9.0.0/src/vulkan/vkgears.c:400: create_swapchain: Assertion `surface_caps.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR' failed.
Aborted (core dumped)
but not vkgears, this was what i saw earlier and thought it failed
EyeCantCU
EyeCantCU17mo ago
Does nvidia-smi work ok?
bsherman
bsherman17mo ago
yes
EyeCantCU
EyeCantCU17mo ago
Odd
EyeCantCU
EyeCantCU17mo ago
I'll have a look. Thank you
Javvy
Javvy17mo ago
No description
Javvy
Javvy17mo ago
works on both ubuntu and fedora for me
EyeCantCU
EyeCantCU17mo ago
What about vulkaninfo
Javvy
Javvy17mo ago
any specific thing i need to grep
EyeCantCU
EyeCantCU17mo ago
I'm just curious if it actually outputs and doesn't display an error like it does for me You can see the GPU fine there too?
Javvy
Javvy17mo ago
yeah discord wont let me send it lol
EyeCantCU
EyeCantCU17mo ago
Nice
Javvy
Javvy17mo ago
No description
EyeCantCU
EyeCantCU17mo ago
Strange
Javvy
Javvy17mo ago
anyway gtg I see @bsherman made some progress in the issue, can't find any errors on my end
EyeCantCU
EyeCantCU17mo ago
I'll create a new container here in a minute and see what's up HA IT WORKS!!! (with bshermans fix)
bsherman
bsherman17mo ago
what's my fix? in the end i needed nothing except NOT using the vkgears in the bazzite-arch image
bsherman
bsherman17mo ago
hah!
Want results from more Discord servers?
Add your server