IMX8MP - lxc container weston issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX8MP - lxc container weston issue

5,691 次查看
Geek
Contributor I

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?

0 项奖励
回复
6 回复数

5,342 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

You need also share the /dev/galcore device which will be used in OpenGL API.

Best Regards,
Zhiming

0 项奖励
回复

5,308 次查看
Geek
Contributor I

I believe my lxc container doesn't have galcore device. These are the dev I have inside the container. I'm trying to access tty1 device which gives "Permission denied" error. But as you can see in the attachment root user has read/write permission.

0 项奖励
回复

4,744 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @Geek 

You should passed the /dev/galcore node form host into the container using lxc-config and lxc-device

0 项奖励
回复

4,712 次查看
Geek
Contributor I

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

 

0 项奖励
回复

4,599 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

We don't know much about this container you're using. Please seek support from the container community.


Best Regards,
Zhiming

0 项奖励
回复

4,578 次查看
Geek
Contributor I
Thanks!
0 项奖励
回复