I'm trying to run the Weston compositor inside an LXC container, but I'm encountering "Permission denied" errors when it tries to access DRM devices like /dev/dri/card0. The devices are available on the host and passed into the container using lxc-config and lxc-device, but Weston fails to initialize due to insufficient permissions. The DRM devices are owned by root and the video group on the host, and it seems the container user (root) doesn’t have the required group membership or access rights. I've tried adjusting permissions and group memberships but still can't resolve the issue. Has anyone faced this problem or have suggestions for ensuring proper DRM access while running Weston in a container?
Hello,
You need also share the /dev/galcore device which will be used in OpenGL API.
Best Regards,
Zhiming
Hi @Geek
You should passed the /dev/galcore node form host into the container using lxc-config and lxc-device
I added /dev/galcore inside the container and started Weston. And Weston is running now, But I encountered the following errors:
[14:39:24.221] atomic: couldn't commit new state: Permission denied
[14:39:24.221] repaint-flush failed: No such file or directory
I have attached the screenshots for weston.ini file for reference
Hello,
We don't know much about this container you're using. Please seek support from the container community.
Best Regards,
Zhiming