general/other Freebsd Podman opening a Wayland application in a Ubuntu container

I have installed the Freebsd podman-suite pkg and created a Ubuntu container

The XDG_RUNTIME_DIR is mounted from Freebsd to the Ubuntu container
so i can access the Wayland socket

Then i installed qt5ct on Ubuntu,
created a user and set up the shell and exported the xdg directories

qt5ct running in a Ubuntu podman container displayed using Wayland on the Freebsd host

podman.png



error message related to the gpu

Code:
libEGL warning: wayland-egl: could not open /dev/dri/renderD129 (No such file or directory)
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen

there is a podman option called

Code:
--gpus all

that should resolve the gpu issue

audio should be possible by mounting the pulseaudio socket from Freebsd to the container

which would mean we could run linux gui applications using a podman container

the advantage is that you can simply pull the container and run it
as opposed to setting up a jail and installing everything manually

the reason i decided to have a look at podman
is to see if i could get invidious working in a podman container on Freebsd

 
Code:
libEGL warning: wayland-egl: could not open /dev/dri/renderD129 (No such file or directory)
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen

I have already seen a similar error when I tried to use the Intel integrated GPU inside the Ubuntu container instead of the nvidia GPU...I never been able to fix it.
 
mounting the /dev directory works
but thats not a good idea and breaks stuff in the container

Code:
doas podman run --os=linux --net=host -v /dev:/dev -v /var/run/xdg/djwilcox:/var/run/user/1001 -it docker.io/library/ubuntu:latest /bin/bash

but trying to mount /dev/dri doesnt

Code:
doas podman run --os=linux --net=host -v /dev/dri:/dev/dri -v /var/run/xdg/djwilcox:/var/run/user/1001 -it docker.io/library/ubuntu:latest /bin/bash

tried device, but ran into the same issues as in this thread

 
Back
Top