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
bsherman16mo 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 Gospo16mo ago
Seems like the issue is only vulkan than since everything worked but vkcube, right? @javvyy
Javvy
Javvy16mo 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
EyeCantCU16mo ago
This is so weird... I wonder if it's some weird disparity between generations of cards or something
bsherman
bsherman16mo 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
Javvy16mo ago
No description
Javvy
Javvy16mo 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 Gospo16mo 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
bsherman16mo 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
Javvy16mo ago
how do i see the renderer of gl/vk?
Kyle Gospo
Kyle Gospo16mo ago
if adding the missing stuff works I can work around this with a post-init script 🙂
Javvy
Javvy16mo 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
bsherman16mo 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
EyeCantCU16mo ago
Does nvidia-smi work ok?
bsherman
bsherman16mo ago
yes
EyeCantCU
EyeCantCU16mo ago
Odd
EyeCantCU
EyeCantCU16mo ago
I'll have a look. Thank you
Javvy
Javvy16mo ago
No description
Javvy
Javvy16mo ago
works on both ubuntu and fedora for me
EyeCantCU
EyeCantCU16mo ago
What about vulkaninfo
Javvy
Javvy16mo ago
any specific thing i need to grep
EyeCantCU
EyeCantCU16mo 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
Javvy16mo ago
yeah discord wont let me send it lol
EyeCantCU
EyeCantCU16mo ago
Nice
Javvy
Javvy16mo ago
No description
EyeCantCU
EyeCantCU16mo ago
Strange
Javvy
Javvy16mo ago
anyway gtg I see @bsherman made some progress in the issue, can't find any errors on my end
EyeCantCU
EyeCantCU16mo ago
I'll create a new container here in a minute and see what's up HA IT WORKS!!! (with bshermans fix)
bsherman
bsherman16mo ago
what's my fix? in the end i needed nothing except NOT using the vkgears in the bazzite-arch image
bsherman
bsherman16mo ago
hah!
Want results from more Discord servers?
Add your server