gpt4 book ai didi

linux - lxc 容器中的 startxfce4 出现错误

转载 作者:太空宇宙 更新时间:2023-11-04 12:27:35 24 4
gpt4 key购买 nike

我想在我的 lxc 容器中启动 GUI。我使用的容器是 ubuntu 14.04 和 xfce4。

ubuntu@test1:/usr/lib/x86_64-linux-gnu/dri$ startxfce4
[1459480.127]
X.Org X Server 1.15.1
Release Date: 2014-04-13
[1459480.127] X Protocol Version 11, Revision 0
[1459480.127] Build Operating System: Linux 3.2.0-76-generic x86_64 Ubuntu
[1459480.127] Current Operating System: Linux test1 3.13.0-24-generic #46-
Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
[1459480.127] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.13.0-24-
generic root=UUID=ff746abe-8309-4531-9677-c9291ae0557e ro
[1459480.127] Build Date: 12 February 2015 02:49:29PM
[1459480.127] xorg-server 2:1.15.1-0ubuntu2.7 (For technical support please
see http://www.ubuntu.com/support)
...
...
[1459480.154] ABI class: X.Org Video Driver, version 15.0
[1459480.154] (II) CIRRUS: driver for Cirrus chipsets: CLGD5430, CLGD5434-4, CLGD5434-8,
CLGD5436, CLGD5446, CLGD5480, CL-GD5462, CL-GD5464, CL-GD5464BD,
CL-GD5465, CL-GD7548, CL-GD7555, CL-GD7556
[1459480.154] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[1459480.154] (II) FBDEV: driver for framebuffer: fbdev
[1459480.154] (II) VESA: driver for VESA chipsets: vesa
[1459480.154] (EE)
Fatal server error:
[1459480.154] (EE) xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
[1459480.154] (EE)
[1459480.154] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[1459480.154] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[1459480.154] (EE)

我可以使用 VNC 连接到我的容器。但我需要的是直接启动 GUI。可能吗?

最佳答案

StackOverflow 上有一个与此问题相关的线程,现已关闭。在该线程中,他们建议执行以下命令来启动 X:

startx -- :1

请注意,您需要首先确保 dev/tty0 存在于您的容器中,如果以上方法没有帮助,请发送 /var/log 中可用的最后几行日志/Xorg.0.log 进一步分析。

希望对您有所帮助。

关于linux - lxc 容器中的 startxfce4 出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44200037/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com