1 |
I'm trying to get a display manager (slim) and Xorg-server working in a |
2 |
LXC container. I'm using systemd. |
3 |
|
4 |
I can successfully ssh into the container and: |
5 |
|
6 |
systemctl start slim.service |
7 |
|
8 |
with everything working as desired. |
9 |
|
10 |
However, when slim.service is started as part of the container's |
11 |
startup, the Xserver fails to start because: |
12 |
|
13 |
Oct 02 07:54:57 XorgContainer slim[37]: Fatal server error: |
14 |
Oct 02 07:54:57 XorgContainer slim[37]: (EE) xf86OpenConsole: Cannot |
15 |
open virtual console 7 (Operation not permitted) |
16 |
|
17 |
The permissions on tty7: |
18 |
|
19 |
# ls -l /dev/tty7 |
20 |
crw--w---- 1 root tty 4, 7 Oct 2 07:52 /dev/tty |
21 |
|
22 |
The server's log has: |
23 |
|
24 |
[ 138.732] ABI class: X.Org Video Driver, version 23.0 |
25 |
[ 138.732] (II) LoadModule: "evdev" |
26 |
[ 138.732] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so |
27 |
[ 138.732] (II) Module evdev: vendor="X.Org Foundation" |
28 |
[ 138.732] compiled for 1.19.5, module version = 2.10.6 |
29 |
[ 138.732] Module class: X.Org XInput Driver |
30 |
[ 138.732] ABI class: X.Org XInput driver, version 24.1 |
31 |
[ 138.732] (II) LoadModule: "kbd" |
32 |
[ 138.732] (II) Loading /usr/lib64/xorg/modules/input/kbd_drv.so |
33 |
[ 138.732] (II) Module kbd: vendor="X.Org Foundation" |
34 |
[ 138.732] compiled for 1.19.5, module version = 1.9.0 |
35 |
[ 138.732] Module class: X.Org XInput Driver |
36 |
[ 138.732] ABI class: X.Org XInput driver, version 24.1 |
37 |
[ 138.732] (II) vmware: driver for VMware SVGA: vmware0405, vmware0710 |
38 |
[ 138.732] (EE) |
39 |
Fatal server error: |
40 |
[ 138.732] (EE) xf86OpenConsole: Cannot open virtual console 7 |
41 |
(Operation not permitted) |
42 |
|
43 |
/etc/slim.conf has: |
44 |
|
45 |
xserver_arguments -nolisten tcp -br -deferglyphs 16 -keeptty vt07 |
46 |
|
47 |
The use flags and Xorg driver specification in make.conf are: |
48 |
|
49 |
USE="X acpi fontconfig gallium gtk icu inotify jpeg |
50 |
lcms libkms mpi png policykit rdp smp sockets svg symlink syslog |
51 |
systemd |
52 |
threads tiff truetype udev usb vmware xft xorg -consolekit -dbis |
53 |
-fortran -ipv6 -nls -sendmail" |
54 |
|
55 |
VIDEO_CARDS="vmware" |
56 |
INPUT_DEVICES="evdev" |
57 |
|
58 |
There is one package specific use flag: |
59 |
# package.use# required by x11-drivers/xf86-video-vmware-13.3.0::gentoo |
60 |
# required by x11-base/xorg-drivers-1.19::gentoo[video_cards_vmware] |
61 |
# required by x11-base/xorg-server-1.19.5-r2::gentoo[xorg] |
62 |
# required by x11-drivers/xf86-input-keyboard-1.9.0::gentoo |
63 |
# required by @selected |
64 |
# required by @world (argument) |
65 |
>=media-libs/mesa-18.1.6 xa |
66 |
|
67 |
|
68 |
|
69 |
The LXC container is a privileged container. |
70 |
|
71 |
The software is up-to-date as of this AM. |
72 |
|
73 |
I'm not sure how to debug this. |
74 |
|
75 |
-- |
76 |
|
77 |
John R. Shannon |
78 |
john@××××××××××××.com |