您尚未登录。

#1 2016-04-18 15:53:24

lq197912
会员
注册时间: 2016-03-20
帖子: 9

【已临时解决】在virtualbox中安装archlinux-2016.04.01-dual.iso,安装增强功后无法启动X

无论是在菜单中选择安全增强功能,然后在光盘中运行./VBoxLinuxAdditions.run还是直接pacman -S virtualbox-guest-utils
都出现同样的错误

AddScreen/Screeninit failed for driver 0

我在家里的物理机下看/usr/share/X11/xorg.conf.d文件夹下有一个nvidia.conf的文件,里面有配置文件,可想而知系统启动时使用的是这个配置文件
但是在虚拟机里/usr/share/X11/xorg.conf.d文件夹下仅有2个10-evdev.conf 10-quirks.conf文件,其中并没有配置显示、驱动的项目
那么虚拟机安装了增强功能后,系统是如何加载相应的 配置文件的呢

当我卸载掉 virtualbox-guest-utils后,就可以启动X了,但是/usr/share/X11/xorg.conf.d文件夹下还是没有相应的配置文件

记得之前在4.4.5内核的时候,都在vbox下正常安装过好几次,也没有出现安装增强功能就无法启动x的问题

求大神解救,这几天为这个问题搞疯了,百度谷歌了好久都没答案。。。。

最近编辑记录 lq197912 (2016-04-18 20:44:23)

离线

#2 2016-04-18 20:01:11

lq197912
会员
注册时间: 2016-03-20
帖子: 9

Re: 【已临时解决】在virtualbox中安装archlinux-2016.04.01-dual.iso,安装增强功后无法启动X

在多台虚拟机对比装./VBoxLinuxAdditions.run   和 pacman -S virtualbox-guest-utils的日志后,发现并无太大差别,贴下日志求高手:

[root@varch dev]# cat /var/log/Xorg.0.log
[   131.232]
X.Org X Server 1.18.3
Release Date: 2016-04-04
[   131.233] X Protocol Version 11, Revision 0
[   131.233] Build Operating System: Linux 4.2.5-1-ARCH x86_64
[   131.234] Current Operating System: Linux varch 4.5.0-1-ARCH #1 SMP PREEMPT Tue Mar 15 09:41:03 CET 2016 x86_64
[   131.234] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=c158800e-3a16-4404-aa36-c1502f825632 rw quiet
[   131.235] Build Date: 05 April 2016  05:24:02PM
[   131.236] 
[   131.236] Current version of pixman: 0.34.0
[   131.237]     Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[   131.237] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   131.240] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Apr 18 11:16:57 2016
[   131.240] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   131.240] (==) No Layout section.  Using the first Screen section.
[   131.240] (==) No screen section available. Using defaults.
[   131.240] (**) |-->Screen "Default Screen Section" (0)
[   131.240] (**) |   |-->Monitor "<default monitor>"
[   131.240] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[   131.241] (==) Automatically adding devices
[   131.241] (==) Automatically enabling devices
[   131.241] (==) Automatically adding GPU devices
[   131.241] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   131.241] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[   131.241]     Entry deleted from font path.
[   131.241] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
[   131.241]     Entry deleted from font path.
[   131.241]     (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   131.241] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
[   131.241]     Entry deleted from font path.
[   131.241]     (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   131.241] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/OTF/
[   131.241] (==) ModulePath set to "/usr/lib/xorg/modules"
[   131.241] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[   131.241] (II) Loader magic: 0x819d20
[   131.241] (II) Module ABI versions:
[   131.241]     X.Org ANSI C Emulation: 0.4
[   131.241]     X.Org Video Driver: 20.0
[   131.241]     X.Org XInput driver : 22.1
[   131.241]     X.Org Server Extension : 9.0
[   131.242] (++) using VT number 1

[   131.242] (--) controlling tty is VT number 1, auto-enabling KeepTty
[   131.245] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[   131.245] (II) xfree86: Adding drm device (/dev/dri/card0)
[   131.246] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 paused 0
[   131.249] (--) PCI:*(0:0:2:0) 80ee:beef:0000:0000 rev 0, Mem @ 0xe0000000/134217728
[   131.249] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   131.249] (II) LoadModule: "glx"
[   131.249] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   131.252] (II) Module glx: vendor="X.Org Foundation"
[   131.252]     compiled for 1.18.3, module version = 1.0.0
[   131.252]     ABI class: X.Org Server Extension, version 9.0
[   131.252] (==) AIGLX enabled
[   131.252] (==) Matched vboxvideo as autoconfigured driver 0
[   131.252] (==) Matched vboxvideo as autoconfigured driver 1
[   131.252] (==) Matched modesetting as autoconfigured driver 2
[   131.252] (==) Matched fbdev as autoconfigured driver 3
[   131.252] (==) Matched vesa as autoconfigured driver 4
[   131.252] (==) Assigned the driver to the xf86ConfigLayout
[   131.252] (II) LoadModule: "vboxvideo"
[   131.252] (II) Loading /usr/lib/xorg/modules/drivers/vboxvideo.so
[   131.252] (II) Module vboxvideo: vendor="Oracle Corporation"
[   131.252]     compiled for 1.18.3, module version = 1.0.1
[   131.252]     Module class: X.Org Video Driver
[   131.252]     ABI class: X.Org Video Driver, version 20.0
[   131.252] (**) Load address of symbol "VBOXVIDEO" is 0x7f898652b3e0
[   131.252] (II) LoadModule: "modesetting"
[   131.252] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   131.253] (II) Module modesetting: vendor="X.Org Foundation"
[   131.253]     compiled for 1.18.3, module version = 1.18.3
[   131.253]     Module class: X.Org Video Driver
[   131.253]     ABI class: X.Org Video Driver, version 20.0
[   131.253] (II) LoadModule: "fbdev"
[   131.253] (WW) Warning, couldn't open module fbdev
[   131.253] (II) UnloadModule: "fbdev"
[   131.253] (II) Unloading fbdev
[   131.253] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   131.253] (II) LoadModule: "vesa"
[   131.253] (WW) Warning, couldn't open module vesa
[   131.253] (II) UnloadModule: "vesa"
[   131.253] (II) Unloading vesa
[   131.253] (EE) Failed to load module "vesa" (module does not exist, 0)
[   131.253] (II) VBoxVideo: guest driver for VirtualBox: vbox
[   131.253] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   131.253] (WW) Falling back to old probe method for modesetting
[   131.253] (II) VBoxVideo(0): VirtualBox guest additions video driver version 5.0.16_OSEr105871
[   131.253] (II) Loading sub module "ramdac"
[   131.253] (II) LoadModule: "ramdac"
[   131.253] (II) Module "ramdac" already built-in
[   131.253] (II) Loading sub module "fb"
[   131.253] (II) LoadModule: "fb"
[   131.253] (II) Loading /usr/lib/xorg/modules/libfb.so
[   131.254] (II) Module fb: vendor="X.Org Foundation"
[   131.254]     compiled for 1.18.3, module version = 1.0.0
[   131.254]     ABI class: X.Org ANSI C Emulation, version 0.4
[   131.254] (II) Loading sub module "shadowfb"
[   131.254] (II) LoadModule: "shadowfb"
[   131.254] (II) Loading /usr/lib/xorg/modules/libshadowfb.so
[   131.254] (II) Module shadowfb: vendor="X.Org Foundation"
[   131.254]     compiled for 1.18.3, module version = 1.0.0
[   131.254]     ABI class: X.Org ANSI C Emulation, version 0.4
[   131.254] (II) Loading sub module "vgahw"
[   131.254] (II) LoadModule: "vgahw"
[   131.254] (II) Loading /usr/lib/xorg/modules/libvgahw.so
[   131.254] (II) Module vgahw: vendor="X.Org Foundation"
[   131.254]     compiled for 1.18.3, module version = 0.1.0
[   131.254]     ABI class: X.Org Video Driver, version 20.0
[   131.254] (II) Loading sub module "dri2"
[   131.254] (II) LoadModule: "dri2"
[   131.254] (II) Module "dri2" already built-in
[   131.254] (II) VBoxVideo(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[   131.254] (==) VBoxVideo(0): Depth 24, (--) framebuffer bpp 32
[   131.254] (--) VBoxVideo(0): Virtual size is 32766x32766 (pitch 32766)
[   131.254] (**) VBoxVideo(0):  Built-in mode "800x600": 29.3 MHz (scaled from 0.0 MHz), 36.4 kHz, 60.0 Hz
[   131.254] (II) VBoxVideo(0): Modeline "800x600"x0.0   29.31  800 802 804 806  600 602 604 606 (36.4 kHz b)
[   131.254] (**) VBoxVideo(0):  Built-in mode "800x600": 29.3 MHz (scaled from 0.0 MHz), 36.4 kHz, 60.0 Hz
[   131.254] (II) VBoxVideo(0): Modeline "800x600"x0.0   29.31  800 802 804 806  600 602 604 606 (36.4 kHz b)
[   131.254] (II) VBoxVideo(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0
[   131.254] (==) VBoxVideo(0): RGB weight 888
[   131.254] (==) VBoxVideo(0): Default visual is TrueColor
[   131.254] (==) VBoxVideo(0): Using gamma correction (1.0, 1.0, 1.0)
[   131.254] (==) VBoxVideo(0): DPI set to (96, 96)
[   131.254] (II) UnloadModule: "modesetting"
[   131.254] (II) Unloading modesetting
[   131.254] (--) Depth 24 pixmap format is 32 bpp
[   131.255] (EE)
Fatal server error:
[   131.255] (EE) AddScreen/ScreenInit failed for driver 0
[   131.255] (EE)
[   131.255] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
for help.
[   131.255] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   131.255] (EE)
[   131.260] (EE) Server terminated with error (1). Closing log file.

离线

#3 2016-04-18 20:16:47

lq197912
会员
注册时间: 2016-03-20
帖子: 9

Re: 【已临时解决】在virtualbox中安装archlinux-2016.04.01-dual.iso,安装增强功后无法启动X

wiki说要加载vboxguest、vboxsf、vboxvideo
我前后对比了一下,日志并没有什么不同

离线

#4 2016-04-18 20:33:13

lq197912
会员
注册时间: 2016-03-20
帖子: 9

Re: 【已临时解决】在virtualbox中安装archlinux-2016.04.01-dual.iso,安装增强功后无法启动X

在https://bbs.archlinux.org/viewtopic.php?id=211331这个帖子勉强看了一下,好像大概意思是kernel4.5的bug?
有降级正常使用的
如果是bug我就不折腾了

离线

#5 2016-04-18 20:43:53

lq197912
会员
注册时间: 2016-03-20
帖子: 9

Re: 【已临时解决】在virtualbox中安装archlinux-2016.04.01-dual.iso,安装增强功后无法启动X

解决了:就是在上边那个帖子的某层,可惜只是知其然不知其所以然,有大神能解读一下吗?

方法:
编辑  /etc/default/grub
将这行修改为这个模样:GRUB_CMDLINE_LINUX_DEFAULT="quiet iomem=relaxed"   就是加上后边的 iomem=relaxed
然后:sudo grub-mkconfig -o /boot/grub/grub.cfg
重启或不重启,再次运行startxfce4就ok了,屏幕可以扩大,看来增强功能是用上了。

离线

#6 2016-04-19 07:54:51

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: 【已临时解决】在virtualbox中安装archlinux-2016.04.01-dual.iso,安装增强功后无法启动X

贴链接时注意前后加空格,或者用 bbcode。

这个问题是 virtualbox 在 X 不以 root 运行时的 bug。昨天发布的 5.0.18 版本中已经修复。

离线

#7 2016-04-19 08:33:27

lq197912
会员
注册时间: 2016-03-20
帖子: 9

Re: 【已临时解决】在virtualbox中安装archlinux-2016.04.01-dual.iso,安装增强功后无法启动X

bbcode是什么?
root非root我都试过,不行
后来在那个论坛用修改grub配置的方法就ok了
你说的5.0.18是指vbox?

离线

#8 2016-04-19 08:41:09

shizzmk
会员
注册时间: 2016-01-22
帖子: 19

Re: 【已临时解决】在virtualbox中安装archlinux-2016.04.01-dual.iso,安装增强功后无法启动X

lq197912 说:

bbcode是什么?

bbcode

离线

#9 2016-04-19 09:41:51

lq197912
会员
注册时间: 2016-03-20
帖子: 9

Re: 【已临时解决】在virtualbox中安装archlinux-2016.04.01-dual.iso,安装增强功后无法启动X

依云 说:

贴链接时注意前后加空格,或者用 bbcode。

这个问题是 virtualbox 在 X 不以 root 运行时的 bug。昨天发布的 5.0.18 版本中已经修复。


5.0.18并没有修复这个问题啊,我今天又在5.0.18的虚拟机上重新安装了一次,装了virtualbox-guest-utils之后,仍然无法启动xfce4,错误日志貌似一样
还是要修改grub配置才行

离线

#10 2016-04-19 09:45:34

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: 【已临时解决】在virtualbox中安装archlinux-2016.04.01-dual.iso,安装增强功后无法启动X

5.0.18 还没进源啊,源里的是 5.0.16。这个 bug 在 vbox 的 guest 部分不是 host 部分。

离线

#11 2016-04-19 10:18:13

lq197912
会员
注册时间: 2016-03-20
帖子: 9

Re: 【已临时解决】在virtualbox中安装archlinux-2016.04.01-dual.iso,安装增强功后无法启动X

依云 说:

5.0.18 还没进源啊,源里的是 5.0.16。这个 bug 在 vbox 的 guest 部分不是 host 部分。

是的,我把grub配置改回去,卸载guest,然后从虚拟光盘安装增强功能,再重启,也能正常使用xfce了

离线

#12 2016-04-19 11:44:34

lq197912
会员
注册时间: 2016-03-20
帖子: 9

Re: 【已临时解决】在virtualbox中安装archlinux-2016.04.01-dual.iso,安装增强功后无法启动X

依云 说:

5.0.18 还没进源啊,源里的是 5.0.16。这个 bug 在 vbox 的 guest 部分不是 host 部分。

又出问题了,重启以后图形界面不会随着外框窗口扩展了,只是固定大小,但是和主机复制粘贴什么都能用,不知道是什么问题

离线

页脚