[lxc-users] xserver inside lxc

Alex Mestiashvili alex at biotec.tu-dresden.de
Fri Jan 16 11:07:03 UTC 2015


Hi All,

trying to start the xorg server in the container I receive the following 
messages:


[ 61645.425] (II) NVIDIA dlloader X Driver  340.65  Tue Dec  2 08:47:36 
PST 2014
[ 61645.425] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 61645.425] (--) using VT number 2

[ 61645.426] (WW) xf86OpenConsole: VT_GETSTATE failed: Inappropriate 
ioctl for device
[ 61645.426] (EE)
Fatal server error:
[ 61645.426] (EE) xf86OpenConsole: VT_ACTIVATE failed: Inappropriate 
ioctl for device


startx /usr/bin/startx -- :10 vt10

fails as we do not have /dev/tty10 yet:

Fatal server error:
(EE) xf86OpenConsole: Cannot open virtual console 10 (No such file or 
directory)

mknod -m 666 /dev/tty10 c 4 10

startx /usr/bin/startx -- :10 vt10

gives again:

Fatal server error:
(EE) xf86OpenConsole: VT_ACTIVATE failed: Inappropriate ioctl for device

the lxc config has lxc.cgroup.devices.allow = c 4:10 rwm


one difference between the container and the host system is that major 
numbers for tty devices are different:

inside container:
  ls -l /dev/tty*
crw-rw-rw- 1 root root   5, 0 Jan 16 11:44 /dev/tty
crw------- 1 root tty  136, 1 Jan 16 12:06 /dev/tty1
crw--w---- 1 root tty  136, 2 Jan 16 11:44 /dev/tty2
crw--w---- 1 root tty  136, 3 Jan 16 11:44 /dev/tty3
crw--w---- 1 root tty  136, 4 Jan 16 11:44 /dev/tty4

where on the host system they have MAJOR number 4.


I've tried templates with ubunty trusty, debian jessie and wheezy with 
no luck, the startx fails on xf86OpenConsole.

LXC version on the host system: 1:1.0.7-1
System Debian Jessie, kernel verision: 3.16.0-4-amd64

Any hints will be greatly appreciated.

Alex








More information about the lxc-users mailing list