IMX8MP - lxc container weston issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8MP - lxc container weston issue

5,708 Views
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 Kudos
Reply
6 Replies

5,359 Views
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 Kudos
Reply

5,325 Views
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 Kudos
Reply

4,761 Views
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 Kudos
Reply

4,729 Views
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 Kudos
Reply

4,616 Views
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 Kudos
Reply

4,595 Views
Geek
Contributor I
Thanks!
0 Kudos
Reply