Dear all,
 
I am trying to run Xserver inside a priviledged LXC container with access to the hardware. Unfortunately I cannot get it to work. When I try to startx I get the following error:

xf86OpenConsole: Switching VT failed

System is Intel Bay Trail with Intel HD 515 graphics, the container is Devuan Stable. LXC is version 2.1.1.

I am trying to run the entire x11 server inside the container with direct access to the hardware. I am aware that there is a solution to run the server on the host and only the apps in the container but that is not what I am looking for.

Any help would be really appreciated! Please help I am really stuck here…

Thank you,
Alex

config of the LXC container:

lxc.cgroup.devices.allow = c 226:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:7 rwm
lxc.cgroup.devices.allow = c 4:8 rwm

Script inside container:

mknod -m 666 /dev/dri/card0 c 226 0
mknod -m 666 /dev/tty0 c 4 7
mknod -m 666 /dev/tty7 c 4 7
mknod -m 666 /dev/tty8 c 4 8

Error message from Xorg

[ 4733.780]
X.Org X Server 1.19.2
Release Date: 2017-03-02
[ 4733.781] X Protocol Version 11, Revision 0
[ 4733.781] Build Operating System: Linux 4.9.0-8-amd64 x86_64 Debian
[ 4733.781] Current Operating System: Linux desktop 4.14.95 #0 SMP Wed Jan 30 12:21:02 2019 x86_64
[ 4733.781] Kernel command line: BOOT_IMAGE=/boot/vmlinuz root=PARTUUID=3bbf27a1-02 rootfstype=ext4 rootwait i915.modeset=0 acpi_enforce_resources=lax console=tty0 console=ttyS0,115200n8 noinitrd
[ 4733.781] Build Date: 03 November 2018 03:09:11AM
[ 4733.781] xorg-server 2:1.19.2-1+deb9u5 (https://www.debian.org/support)
[ 4733.781] Current version of pixman: 0.34.0
[ 4733.781] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 4733.781] Markers: (–) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 4733.782] (==) Log file: “/var/log/Xorg.0.log”, Time: Sat May 25 18:16:33 2019
[ 4733.783] (==) Using system config directory “/usr/share/X11/xorg.conf.d”
[ 4733.783] (==) No Layout section. Using the first Screen section.
[ 4733.783] (==) No screen section available. Using defaults.
[ 4733.783] (
) |–>Screen “Default Screen Section” (0)
[ 4733.783] (**) | |–>Monitor “”
[ 4733.784] (==) No monitor specified for screen “Default Screen Section”.
Using a default monitor configuration.
[ 4733.784] (==) Automatically adding devices
[ 4733.784] (==) Automatically enabling devices
[ 4733.784] (==) Automatically adding GPU devices
[ 4733.784] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 4733.784] (WW) The directory “/usr/share/fonts/X11/cyrillic” does not exist.
[ 4733.784] Entry deleted from font path.
[ 4733.784] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
[ 4733.784] (==) ModulePath set to “/usr/lib/xorg/modules”
[ 4733.784] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 4733.784] (II) Loader magic: 0x56489ee7ee00
[ 4733.784] (II) Module ABI versions:
[ 4733.784] X.Org ANSI C Emulation: 0.4
[ 4733.784] X.Org Video Driver: 23.0
[ 4733.784] X.Org XInput driver : 24.1
[ 4733.784] X.Org Server Extension : 10.0
[ 4733.787] (–) using VT number 2
[ 4733.787] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 4733.788] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 4733.793] (–) PCI:*(0:0:2:0) 8086:0f31:1458:1000 rev 14, Mem @ 0xd0000000/4194304, 0xc0000000/268435456, I/O @ 0x0000f080/8, BIOS @ 0x???/131072
[ 4733.793] (II) LoadModule: “glx”
[ 4733.793] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 4733.797] (II) Module glx: vendor=“X.Org Foundation”
[ 4733.798] compiled for 1.19.2, module version = 1.0.0
[ 4733.798] ABI class: X.Org Server Extension, version 10.0
[ 4733.798] (==) Matched modesetting as autoconfigured driver 0
[ 4733.798] (==) Matched fbdev as autoconfigured driver 1
[ 4733.798] (==) Matched vesa as autoconfigured driver 2
[ 4733.798] (==) Assigned the driver to the xf86ConfigLayout
[ 4733.798] (II) LoadModule: “modesetting”
[ 4733.798] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 4733.799] (II) Module modesetting: vendor=“X.Org Foundation”
[ 4733.799] compiled for 1.19.2, module version = 1.19.2
[ 4733.799] Module class: X.Org Video Driver
[ 4733.799] ABI class: X.Org Video Driver, version 23.0
[ 4733.799] (II) LoadModule: “fbdev”
[ 4733.800] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 4733.800] (II) Module fbdev: vendor=“X.Org Foundation”
[ 4733.800] compiled for 1.19.0, module version = 0.4.4
[ 4733.800] Module class: X.Org Video Driver
[ 4733.800] ABI class: X.Org Video Driver, version 23.0
[ 4733.800] (II) LoadModule: “vesa”
[ 4733.801] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[ 4733.801] (II) Module vesa: vendor=“X.Org Foundation”
[ 4733.801] compiled for 1.19.0, module version = 2.3.4
[ 4733.801] Module class: X.Org Video Driver
[ 4733.801] ABI class: X.Org Video Driver, version 23.0
[ 4733.801] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 4733.801] (II) FBDEV: driver for framebuffer: fbdev
[ 4733.801] (II) VESA: driver for VESA chipsets: vesa
[ 4733.802] (WW) xf86OpenConsole: VT_GETSTATE failed: Inappropriate ioctl for device
[ 4733.802] (WW) xf86OpenConsole: VT_ACTIVATE failed: Inappropriate ioctl for device
[ 4733.802] (EE)
Fatal server error:
[ 4733.802] (EE) xf86OpenConsole: Switching VT failed
[ 4733.802] (EE)
[ 4733.802] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 4733.802] (EE) Please also check the log file at “/var/log/Xorg.0.log” for additional information.
[ 4733.802] (EE)
[ 4733.803] (WW) xf86CloseConsole: KDSETMODE failed: Inappropriate ioctl for device
[ 4733.803] (WW) xf86CloseConsole: VT_GETMODE failed: Inappropriate ioctl for device
[ 4733.803] (EE) Server terminated with error (1). Closing log file.

_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Reply via email to