<div dir="ltr">Hi,<div><br></div><div>Pardon me if the syntax of the email is incorrect. I am a newbie here.</div><div>Hope to learn from you experts.</div><div><br></div><div>I am facing some issues running glxgears app in root mode on lxc2.0 privileged container.</div><div><br></div><div><div>I am running lxc2.0 container(privileged) on Ubuntu 16.0.4LTS 32-bit.</div><div><br></div><div>Inside the container I installed `mesa-utils` that has the `glxgears` app.</div><div><br></div><div>my container config file `/var/lib/lxc/mk7i_container/config` is:</div><div><br></div><div>     Template used to create this container: /usr/share/lxc/templates/lxc-download</div><div>    # Parameters passed to the template: --no-validate</div><div>    # For additional config options, please look at lxc.container.conf(5)</div><div><br></div><div>    # Uncomment the following line to support nesting containers:</div><div>    #lxc.include = /usr/share/lxc/config/nesting.conf</div><div>    # (Be aware this has security implications)</div><div><br></div><div><br></div><div>    # Distribution configuration</div><div>    lxc.include = /usr/share/lxc/config/ubuntu.common.conf</div><div>    lxc.arch = x86</div><div><br></div><div>    lxc.cgroup.devices.allow = c 1:1 rwm</div><div><br></div><div>    lxc.cgroup.devices.allow = c 130:* rwm</div><div>    lxc.cgroup.devices.allow = c 124:* rwm</div><div>    lxc.cgroup.devices.allow = c 122:* rwm</div><div>    lxc.cgroup.devices.allow = c 123:* rwm</div><div>    lxc.cgroup.devices.allow = c 126:* rwm</div><div>    lxc.cgroup.devices.allow = c 127:0 rwm</div><div>    lxc.cgroup.devices.allow = c 120:0 rwm</div><div><br></div><div>    # Container specific configuration</div><div>    lxc.rootfs = /var/lib/lxc/mk7i_container/rootfs</div><div>    lxc.rootfs.backend = dir</div><div>    lxc.utsname = mk7i_container</div><div><br></div><div>    # Network configuration</div><div>    lxc.network.type = veth</div><div>    lxc.network.link = lxcbr0</div><div>    lxc.network.flags = up</div><div>    lxc.network.hwaddr = 00:16:3e:c8:fd:1e</div><div><br></div><div>    #mounts for XServer DISPLAY</div><div>    lxc.mount.entry = /dev/dri dev/dri none bind,optional,create=dir</div><div>    lxc.mount.entry = /tmp/.X11-unix tmp/.X11-unix none bind,optional,create=dir</div><div>    lxc.mount.entry = /dev/video0 dev/video0 none bind,optional,create=file</div><div><br></div><div><br></div><div>To log in into the container as user 'Ubuntu', I am using the following command:</div><div><br></div><div>    sudo lxc-console -n mk7i_container</div><div><br></div><div>After login, I set the `DISPLAY` env variable as:</div><div><br></div><div>    export DISPLAY=":0.0"</div><div><br></div><div>And run `glxgears` and it runs fine. I can see the Xwindow with gears moving in it.</div><div><br></div><div>However, after that I enter root mode via `sudo su` command.</div><div>And try to run glxgears, but I get the following error:</div><div><br></div><div>    No protocol specified</div><div>    Error: couldn't open display :0.0</div><div><br></div><div>Not sure why this error is coming. If user `ubuntu` runs x apps fine , I expected root to do the same.</div><div><br></div><div>Anyone know what's wrong here ?</div></div><div><br></div><div><br></div><div>Thanks</div></div>