Gentoo Archives: gentoo-user

From: Alexander Puchmayr <alexander.puchmayr@×××××××.at>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] virtualbox: no x-server after kernel upgrade to 4.12.12-gentoo
Date: Fri, 15 Sep 2017 16:41:07
Message-Id: 2023558.URFfuj6DvI@prometheus
In Reply to: Re: [gentoo-user] virtualbox: no x-server after kernel upgrade to 4.12.12-gentoo by R0b0t1
1 Am Freitag, 15. September 2017, 10:43:52 schrieb R0b0t1:
2 > On Fri, Sep 15, 2017 at 9:47 AM, Alexander Puchmayr
3 >
4 > <alexander.puchmayr@×××××××.at> wrote:
5 > > Hi there,
6 > >
7 > > I'm using a gentoo-guest inside a virtual box on a Win10 host. The last
8 > > somewhat working combination was kernel 4.4.39/virtualbox-5.1.24.
9 > >
10 > > When I update to kernel 4.12.12, the X-Server does not work anymore (I've
11 > > also tried with 4.9.xx, same result -- no X)
12 > >
13 > > I used genkernel to compile the kernel, copied the previous 4.4.39-config
14 > > from /proc/config.gz to /usr/src/linux-4.12.12-gentoo via zcat, and did
15 > > no further changes; so nothing relevant should be changed, at least to my
16 > > knowledge.
17 > >
18 > > After compilation of the kernel, required packages have been re-emerged:
19 > > - app-emulation/virtualbox-guest-additions
20 > > - x11-drivers/xf86-video-virtualbox
21 > >
22 > > Booting with 4.12.12:
23 > > - sddm crashes with segfaults
24 > > - Starting X from the command line: X complains missing EGL_MESA_drm
25 > > EGL_MESA_drm_image required.
26 > >
27 > > : CommandLine Error: Option 'asan-instrument-assembly' registered more
28 > > : than
29 > >
30 > > once!
31 > > LLVM ERROR: inconsistency in registered CommandLine options
32 > > [??? No idea where this comes from :-( ]
33 > >
34 > >
35 > > cat /var/log/Xorg.0.log
36 > > [ 793.159] (II) LoadModule: "vboxvideo"
37 > > [ 793.159] (II) Loading /usr/lib64/xorg/modules/drivers/vboxvideo_drv.so
38 > > [ 793.159] (II) Module vboxvideo: vendor="Oracle Corporation"
39 > > [ 793.159] compiled for 1.19.3, module version = 1.0.1
40 > > [ 793.159] Module class: X.Org Video Driver
41 > > [ 793.159] ABI class: X.Org Video Driver, version 23.0
42 > > [ 793.159] (**) Load address of symbol "VBOXVIDEO" is 0x7f3840a24380
43 > > [ 793.160] (II) VBoxVideo: guest driver for VirtualBox: vbox
44 > > [ 793.160] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
45 > > [ 793.160] (II) FBDEV: driver for framebuffer: fbdev
46 > > [ 793.160] (II) VESA: driver for VESA chipsets: vesa
47 > > [ 793.160] (II) vboxvideo: kernel driver found, not loading.
48 > > <-- !!!!!! [ 793.160] (II) vboxvideo: kernel driver found, not loading.
49 > > [ 793.160] (II) modeset(0): using drv /dev/dri/card0
50 > > [ 793.160] (II) Loading sub module "glamoregl"
51 > > [ 793.160] (II) LoadModule: "glamoregl"
52 > > [ 793.160] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
53 > > [ 793.163] (II) Module glamoregl: vendor="X.Org Foundation"
54 > > [ 793.163] compiled for 1.19.3, module version = 1.0.0
55 > > [ 793.163] ABI class: X.Org ANSI C Emulation, version 0.4
56 > > [ 793.163] (II) glamor: OpenGL accelerated X.org driver based.
57 > > [ 793.217] (II) glamor: EGL version 1.4 (DRI2):
58 > > [ 793.217] EGL_MESA_drm_image required.
59 > > [ 793.218] (EE) modeset(0): glamor initialization failed
60 > >
61 > > dmesg shows:
62 > > 5.269630] VBoxService 5.1.24 r117012 (verbosity: 0) linux.amd64 (Sep 15
63 > > 2017 16:09:26) release log
64 > >
65 > > 00:00:00.000046 main Log opened
66 > >
67 > > 2017-09-15T15:23:25.220990000Z
68 > > [ 5.269691] 00:00:00.000133 main OS Product: Linux
69 > > [ 5.269717] 00:00:00.000165 main OS Release: 4.12.12-gentoo
70 > > [ 5.269740] 00:00:00.000191 main OS Version: #1 SMP Fri Sep 15
71 > > 15:33:45 CEST 2017
72 > > [ 5.269772] 00:00:00.000213 main Executable: /usr/sbin/vboxguest-
73 > > service
74 > >
75 > > 00:00:00.000214 main Process ID: 4275
76 > > 00:00:00.000215 main Package type: LINUX_64BITS_GENERIC
77 > >
78 > > (OSE)
79 > > [ 5.272160] 00:00:00.002532 main 5.1.24 r117012 started. Verbose
80 > > level = 0
81 > > [7.780006] vboxvideo 0000:00:02.0: fb0: vboxdrmfb frame buffer device
82 > >
83 > > Booting old 4.4.39 kernel [Just select old kernel in grub]
84 > > - sddm shows login screen
85 > > - /var/log/Xorg.0.log shows lots of lines regarding VBoxVideo driver.
86 > > - dmesg does not show the vboxvideo line from above
87 > >
88 > > Obviously, something is going terribly wrong here, and I'm getting stuck
89 > > as I do not have any Idea where to start. The only thing that changed is
90 > > a kernel upgrade and a rebuild of the virtual box modules.
91 > >
92 > > Any ideas?
93 >
94 > Details on this are sparse but you need to run @x11-modules-rebuild
95 > after a kernel upgrade. You may also want to run @module-rebuild
96 > depending on how you rebuilt your kernel.
97 >
98 > https://wiki.gentoo.org/wiki/X_server/upgrade
99 > https://forums.gentoo.org/viewtopic-p-6633091.html
100 >
101 Thanks for the answer!
102
103 I re-emerged both @x11-modules-rebuild and @module-rebuild, but it did not
104 help a bit. Still the same problem.
105
106 I assume that the key is the vboxvideo line from dmesg. It registers a
107 framebuffer device fb0, which may cause the Xorg-driver to fail. But I do not
108 know how to disable this, since it comes from the vbox driver module itself.
109
110 Regards
111 Alex