I'm trying to get a display manager (slim) and Xorg-server working in a LXC container. I'm using systemd.

I can successfully ssh into the container and:

systemctl start slim.service

with everything working as desired.

However, when slim.service is started as part of the container's startup, the Xserver fails to start because:

Oct 02 07:54:57 XorgContainer slim[37]: Fatal server error:
Oct 02 07:54:57 XorgContainer slim[37]: (EE) xf86OpenConsole: Cannot open virtual console 7 (Operation not permitted)

The permissions on tty7:

# ls -l /dev/tty7
crw--w---- 1 root tty 4, 7 Oct  2 07:52 /dev/tty

The server's log has:

[   138.732]    ABI class: X.Org Video Driver, version 23.0
[   138.732] (II) LoadModule: "evdev"
[   138.732] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[   138.732] (II) Module evdev: vendor="X.Org Foundation"
[   138.732]    compiled for 1.19.5, module version = 2.10.6
[   138.732]    Module class: X.Org XInput Driver
[   138.732]    ABI class: X.Org XInput driver, version 24.1
[   138.732] (II) LoadModule: "kbd"
[   138.732] (II) Loading /usr/lib64/xorg/modules/input/kbd_drv.so
[   138.732] (II) Module kbd: vendor="X.Org Foundation"
[   138.732]    compiled for 1.19.5, module version = 1.9.0
[   138.732]    Module class: X.Org XInput Driver
[   138.732]    ABI class: X.Org XInput driver, version 24.1
[   138.732] (II) vmware: driver for VMware SVGA: vmware0405, vmware0710
[   138.732] (EE)
Fatal server error:
[ 138.732] (EE) xf86OpenConsole: Cannot open virtual console 7 (Operation not permitted)

/etc/slim.conf has:

xserver_arguments   -nolisten tcp -br -deferglyphs 16 -keeptty vt07

The use flags and Xorg driver specification in make.conf are:

USE="X acpi fontconfig gallium gtk icu inotify jpeg
lcms libkms mpi png policykit rdp smp sockets svg symlink syslog systemd threads tiff truetype udev usb vmware xft xorg -consolekit -dbis -fortran -ipv6 -nls -sendmail"

VIDEO_CARDS="vmware"
INPUT_DEVICES="evdev"

There is one package specific use flag:
# package.use# required by x11-drivers/xf86-video-vmware-13.3.0::gentoo
# required by x11-base/xorg-drivers-1.19::gentoo[video_cards_vmware]
# required by x11-base/xorg-server-1.19.5-r2::gentoo[xorg]
# required by x11-drivers/xf86-input-keyboard-1.9.0::gentoo
# required by @selected
# required by @world (argument)
 >=media-libs/mesa-18.1.6 xa



The LXC container is a privileged container.

The software is up-to-date as of this AM.

I'm not sure how to debug this.

--

John R. Shannon
j...@johnrshannon.com


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to