[lxc-users] can't run “glxgears” in root on lxc 2.0 container

Marat Khalili mkh at rqc.ru
Thu Sep 22 17:08:52 UTC 2016


On 22/09/16 20:01, manik sheeri wrote:
>
> I was able to fix it and run |glxgears| in root mode. The problem was 
> with the xauth.
>
> The host system already had |xauth|.The idea is to use the key of the 
> already trusted user, which in my case was |manik| on the host system.
>
> Using command |xauth list| on host gave me the following output:
>
> |manik/unix:0 MIT-MAGIC-COOKIE-1 a4f6256398303725763c5595f404afbb |
>
> I am going to use the key in hex(right-most most entry above) in my 
> root user account inside container.
>
> I installed xauth package in the container:
>
> |sudo apt-get install xauth |
>
> Inside |root| user prompt in container:
>
> |export DISPLAY=":0" xauth add $DISPLAY . 
> a4f6256398303725763c5595f404afbb |
>
> And now |glxgears| works fine in root mode.
>
Wow! Looks like a way to proper solution, but do you think it's possible 
to automate this?

--

With Best Regards,
Marat Khalili

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160922/92b06398/attachment-0001.html>


More information about the lxc-users mailing list