Bug 4239

Summary: Guest additions packages doesn't provide vboxvideo driver for Xorg
Product: Fedora Reporter: Ulisses Furquim <ulissesf>
Component: VirtualBoxAssignee: Sérgio Basto <sergio>
Status: RESOLVED FIXED    
Severity: normal CC: roy.dragseth
Priority: P1    
Version: 24   
Hardware: All   
OS: GNU/Linux   
namespace:
Attachments: Xorg.0.log file

Description Ulisses Furquim 2016-09-06 02:07:24 CEST
VirtualBox-guest-additions package doesn't provide vboxvideo driver for Xorg and thus it doesn't work and errors out that no screens are found.
Comment 1 Sérgio Basto 2016-09-06 09:07:45 CEST
it is by design , have selinux enabled ? if yes please try with selinux disabled
Comment 2 Sérgio Basto 2016-09-06 09:09:05 CEST
anyway please attach /var/log/Xorg.0.log
Comment 3 Ulisses Furquim 2016-09-08 01:07:03 CEST
Created attachment 1618 [details]
Xorg.0.log file
Comment 4 Ulisses Furquim 2016-09-08 01:08:19 CEST
SELINUX is already disabled. Xorg.0.log file attached. Thanks.
Comment 5 Sérgio Basto 2016-09-08 02:34:24 CEST
My  /var/log/Xorg.0.log

[    83.374] (==) Matched vboxvideo as autoconfigured driver 0
[    83.374] (==) Matched vboxvideo as autoconfigured driver 1
[    83.374] (==) Matched modesetting as autoconfigured driver 2
[    83.374] (==) Matched fbdev as autoconfigured driver 3
[    83.374] (==) Matched vesa as autoconfigured driver 4
[    83.374] (==) Assigned the driver to the xf86ConfigLayout
[    83.374] (II) LoadModule: "vboxvideo"
[    83.391] (WW) Warning, couldn't open module vboxvideo
[    83.391] (II) UnloadModule: "vboxvideo"
[    83.391] (II) Unloading vboxvideo
[    83.391] (EE) Failed to load module "vboxvideo" (module does not exist, 0)
[    83.391] (II) LoadModule: "modesetting"

I think you haven't load vboxvideo.ko because is not loading with kernel 4.7 , anyway Fedora could load X with any guest-additions, I tried and loads (again) module modesetting ... . So it is weird, /usr/lib64/xorg/modules/drivers/modesetting_drv.so is part of xorg-x11-server-Xorg package .

Moving on, I can't build VirtualBox 5.1.4 in rpmfusion because kbuild is not updated on F24 repo (I could take some day to fix it) . So I recommend use my copr repo [1] as work around and try new Vbox 5.1.4 , is the same package that will be in RPMFusion soon .

Thanks for the report. 

[1] https://copr.fedorainfracloud.org/coprs/sergiomb/vboxfor23/
Comment 6 Ulisses Furquim 2016-09-10 20:05:06 CEST
Sergio, thanks for sharing your Copr repo. I installed it and new guest additions. The kernel driver is now loading, but Xorg.0.log still mentions it tried to find vboxvideo and then aborts with now screens.

The vboxvideo driver Xorg is complaining about is not the kernel one, I think you know that, right? It's an Xorg driver which used to come with one of the VirtualBox packages before.

Can I see your xorg.conf? Maybe there's something different and yours tries modesetting and mine doesn't. The file modesetting_drv.so is there, I checked.
Comment 7 Sérgio Basto 2016-09-10 22:13:56 CEST
(In reply to Ulisses Furquim from comment #6)
> Sergio, thanks for sharing your Copr repo. I installed it and new guest
> additions. The kernel driver is now loading, but Xorg.0.log still mentions
> it tried to find vboxvideo and then aborts with now screens.
> 
> The vboxvideo driver Xorg is complaining about is not the kernel one, I
> think you know that, right? It's an Xorg driver which used to come with one
> of the VirtualBox packages before.
> 
> Can I see your xorg.conf? Maybe there's something different and yours tries
> modesetting and mine doesn't. The file modesetting_drv.so is there, I
> checked.

I don't have /etc/X11/xorg.conf file, we shouldn't have  /etc/X11/xorg.conf , now configuration are done in /etc/X11/xorg.conf.d , I only have /etc/X11/xorg.conf.d/00-keyboard.conf ... 

Have you tried disable selinux ?
Comment 8 Ulisses Furquim 2016-09-10 22:50:02 CEST
SELINUX is disabled, I told you that. Then I don't know why it doesn't even search for the modesetting driver. :-/
Comment 9 Sérgio Basto 2016-09-11 17:52:14 CEST
*** Bug 4251 has been marked as a duplicate of this bug. ***
Comment 10 Sérgio Basto 2016-09-11 17:56:58 CEST
To build new Virtual 5.1 on Fedora 24 I need kbuild with qt5 support , for that I
need kBuild-0.1.9998-10.r2814 in stable repos 

https://bodhi.fedoraproject.org/updates/FEDORA-2016-c516ed6023
https://bodhi.fedoraproject.org/updates/FEDORA-2016-f4d8180e51

can use give me karma is that bodhi requests ?
Comment 11 Roy Dragseth 2016-09-11 21:38:59 CEST
Sorry, I'd love to help, but I have no clue what karma in bodhi means. I just got myself a fedora account, but cannot find any way to distribute karma.

r.
Comment 12 Sérgio Basto 2016-09-11 21:43:00 CEST
login with your fedora id in https://bodhi.fedoraproject.org goto following links  and approve the packages please 

https://bodhi.fedoraproject.org/updates/FEDORA-2016-c516ed6023
https://bodhi.fedoraproject.org/updates/FEDORA-2016-f4d8180e51
Comment 13 Roy Dragseth 2016-09-11 21:47:46 CEST
OK, pretending that I actually tested it :-)
Comment 14 Sérgio Basto 2016-09-11 22:55:08 CEST
(In reply to Roy Dragseth from comment #13)
> OK, pretending that I actually tested it :-)

Thanks , you will test it soon ;) I hope , now we have to wait more 3 or 5 days to have an update of Vbox in F24 and F23 , because one day to be publish , more one day to be in rpmfusion  buildroots,  build it and publish can take 2 , 4 days ... 

So I recommend use my copr repo [1] as workaround and try new Vbox 5.1.4 , is the same package that will be in RPMFusion soon .

Thanks for the help. 

[1] https://copr.fedorainfracloud.org/coprs/sergiomb/vboxfor23/
Comment 15 Roy Dragseth 2016-09-11 23:08:08 CEST
Wow, that was quick! I used you repo and can confirm that it works correctly.

Again, thanks for the great work!

r.
Comment 16 Sérgio Basto 2016-09-19 04:59:43 CEST
VirtualBox-5.1.6-1 in updates for F23+ , fixed , please reopen if not.