You are not logged in.

#1 2015-08-05 10:47:36

Abaddon
Member
From: Poland
Registered: 2004-05-03
Posts: 249

/tmp/.X11-unix/X0 is removed from host after strting lxc with Ubuntu

Xorg        354            root    1u  unix 0xffff8800caf81500      0t0  13313 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root    3u  unix 0xffff8800caf82680      0t0  13314 /tmp/.X11-unix/X0 type=STREAM
Xorg        354            root    4u  unix 0xffff8800caee9f80      0t0  13608 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root    6u  unix 0xffff880129816a00      0t0   9951 type=STREAM
Xorg        354            root    7u  unix 0xffff880129816300      0t0   9952 type=STREAM
Xorg        354            root    8u  unix 0xffff880129816d80      0t0   9953 type=STREAM
Xorg        354            root    9u  unix 0xffff880129817100      0t0   9954 type=STREAM
Xorg        354            root   10u  unix 0xffff880129817480      0t0   9955 type=STREAM
Xorg        354            root   11u  unix 0xffff880129817800      0t0   9956 type=STREAM
Xorg        354            root   12u  unix 0xffff880129817b80      0t0   9957 type=STREAM
Xorg        354            root   13u  unix 0xffff880129816680      0t0   9958 type=STREAM
Xorg        354            root   14u  unix 0xffff8800cf372d80      0t0  12531 type=STREAM
Xorg        354            root   41u  unix 0xffff8801286ad500      0t0  13613 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   42u  unix 0xffff8800bf034a80      0t0  12735 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   43u  unix 0xffff8800cf8a1f80      0t0  12739 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   44u  unix 0xffff88001ab7fb80      0t0 117062 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   45u  unix 0xffff8800cf371880      0t0  12900 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   46u  unix 0xffff8801286adf80      0t0  11623 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   47u  unix 0xffff8801286ad880      0t0  12918 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   48u  unix 0xffff8800a880ed80      0t0  23780 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   49u  unix 0xffff880125731880      0t0  14451 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   50u  unix 0xffff8800caee9500      0t0  12942 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   51u  unix 0xffff880125733800      0t0  13750 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   52u  unix 0xffff8800b4df8700      0t0  13097 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   53u  unix 0xffff8800bbc06680      0t0  13118 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   54u  unix 0xffff88006da2e680      0t0 115672 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   55u  unix 0xffff880125733b80      0t0  14486 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   56u  unix 0xffff880125730700      0t0  14488 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   57u  unix 0xffff880123007800      0t0  14506 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   58u  unix 0xffff8800b19ddc00      0t0  14512 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   59u  unix 0xffff8800b19df100      0t0  14519 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   60u  unix 0xffff8800b19dca80      0t0  14526 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   61u  unix 0xffff8800a9bf9f80      0t0  13823 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   62u  unix 0xffff8800a9bf9180      0t0  13814 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   63u  unix 0xffff8800a9be1f80      0t0  14555 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   64u  unix 0xffff8800a880f480      0t0  14586 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   65u  unix 0xffff88009f163b80      0t0  23060 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   66u  unix 0xffff8800b4dfad80      0t0  14000 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   67u  unix 0xffff88009f162300      0t0  23929 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   68u  unix 0xffff88009f1f3100      0t0  22524 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   70u  unix 0xffff8801152c5500      0t0  30403 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   71u  unix 0xffff88004a2fa300      0t0  57863 @/tmp/.X11-unix/X0 type=STREAM
Xorg        354            root   72u  unix 0xffff88009f1ee300      0t0  55907 @/tmp/.X11-unix/X0 type=STREAM
# LANG=en_EN ls -al /tmp/.X11-unix/X0
ls: cannot access /tmp/.X11-unix/X0: No such file or directory

Xorg works fine, but because of lack of this socket GUI applications doesn't work from lxc containder that mounts this folder. When I check that around 1 month ago it was ok. Have I broken something?

EDIT:

For what I see after reboot socket is there on host, but gets removed after I start lxc container.

EDIT2:

It happens when I start lxc container with Ubuntu inside, when I start containder with archlinux it's ok.

Last edited by Abaddon (2015-08-05 11:49:50)


Gnome - The weakest link!
Linux, *not* GNU/Linux!

Offline

#2 2016-02-23 18:39:24

Kido
Member
Registered: 2009-01-07
Posts: 6

Re: /tmp/.X11-unix/X0 is removed from host after strting lxc with Ubuntu

I mount /tmp/.X11-unix as readonly, it prevents guests from deleting files from it:

lxc.mount.entry = /tmp/.X11-unix tmp/.X11-unix none bind,ro,optional,create=dir

Offline

Board footer

Powered by FluxBB