Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Can't start X in VirtualBox: no screens found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 645
Location: San Diego, CA

PostPosted: Mon Jul 08, 2019 3:29 pm    Post subject: [Solved] Can't start X in VirtualBox: no screens found Reply with quote

I updated a Gentoo guest (i.e. "emerge -vDuN @world" and kernel) in VirtualBox, and now X doesn't start anymore.

Xorg.0.log: https://pastebin.com/N1FuiZjj
Code:
[    90.506] (EE) Failed to load module "vboxvideo" (module does not exist, 0)
[    90.506] (EE) No drivers available.
[    90.506] (EE)
Fatal server error:
[    90.531] (EE) no screens found(EE)

dmesg: https://pastebin.com/UnLzhqN9

Sure enough, "lsmod" doesn't show "vboxvideo".
Code:
$ lsmod
Module                  Size  Used by
snd_hda_intel          32768  0
vboxguest             290816  0
snd_hda_codec         110592  1 snd_hda_intel
snd_hwdep              16384  1 snd_hda_codec
snd_hda_core           69632  2 snd_hda_intel,snd_hda_codec


"modprobe vboxvideo" does load the module, but "no screens found" problem persists. I'd appreciate any suggestions.
__
sol


Last edited by solamour on Thu Jul 11, 2019 3:15 am; edited 1 time in total
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3545
Location: Illinois, USA

PostPosted: Mon Jul 08, 2019 3:52 pm    Post subject: Reply with quote

Is the guest runni8ng systemd or OpenRC? If OpenRC, which version?
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 645
Location: San Diego, CA

PostPosted: Mon Jul 08, 2019 4:31 pm    Post subject: Reply with quote

Tony0945 wrote:
Is the guest runni8ng systemd or OpenRC? If OpenRC, which version?

It has OpenRC.
Code:
[I] sys-apps/openrc
     Available versions:  0.34.11 0.38.3 0.38.3-r1 0.41.2 **9999 {audit bash debug ncurses +netifrc newnet pam prefix selinux static-libs unicode KERNEL="FreeBSD linux"}
     Installed versions:  0.41.2(22:04:53 07/06/19)(ncurses netifrc pam unicode -audit -bash -debug -newnet -prefix -selinux -static-libs KERNEL="linux -FreeBSD")
     Homepage:            https://github.com/openrc/openrc/
     Description:         OpenRC manages the services, startup and shutdown of a host


Code:
$ rc-status
Runlevel: default
 hdparm                                                            [  started  ]
 consolefont                                                       [  started  ]
 metalog                                                           [  started  ]
 sshd                                                              [  started  ]
 dbus                                                              [  started  ]
 net.enp0s3                                                        [  started  ]
 netmount                                                          [  started  ]
 local                                                             [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
Dynamic Runlevel: manual

__
sol
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44921
Location: 56N 3W

PostPosted: Mon Jul 08, 2019 5:14 pm    Post subject: Reply with quote

solamour,

The vboxvideo module is the video driver for Xorg, not a kernel module.
What do you have in the guests VIDEO_CARDS in make.conf ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3545
Location: Illinois, USA

PostPosted: Mon Jul 08, 2019 5:27 pm    Post subject: Reply with quote

two things:
1. try "rc-update add modules boot" I'm not sure that's needed on late OpenRC, but try it.

2. Make sure vboxvideo is built as a module:
Code:
TUX ~ # zgrep VBOX /proc/config.gz
CONFIG_VBOXGUEST=m
CONFIG_DRM_VBOXVIDEO=m
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 645
Location: San Diego, CA

PostPosted: Mon Jul 08, 2019 6:27 pm    Post subject: Reply with quote

NeddySeagoon wrote:

What do you have in the guests VIDEO_CARDS in make.conf ?

I have the following.
Code:
VIDEO_CARDS="virtualbox"


Code:
[ebuild   R    ] x11-base/xorg-drivers-1.20::gentoo  INPUT_DEVICES="evdev -elographics -joystick -keyboard -libinput -mouse -synaptics -vmmouse -void -wacom" VIDEO_CARDS="virtualbox -amdgpu -ast -dummy -fbdev (-freedreno) (-geode) -glint -i915 -i965 -intel -mga -nouveau -nv -nvidia (-omap) -qxl -r128 -radeon -radeonsi -siliconmotion (-tegra) (-vc4) -vesa -via -vmware" 0 KiB


And I just verified both "CONFIG_VBOXGUEST" and "CONFIG_DRM_VBOXVIDEO" are built as modules.
__
sol
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44921
Location: 56N 3W

PostPosted: Mon Jul 08, 2019 7:25 pm    Post subject: Reply with quote

solamour,

Don't use a /etc/X11/xorg.conf file. Let the automatics do their thing.
Code:
[    90.479] (==) Using config file: "/etc/X11/xorg.conf"
[    90.491] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    90.506] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    90.506] (==) ServerLayout "Default Layout"
[    90.506] (**) |-->Screen "Screen-vboxvideo" (0)
[    90.506] (**) |   |-->Monitor "<default monitor>"
[    90.506] (**) |   |-->Device "Device-vboxvideo"


The autodetect is missing from your Xorg.0.log.

What does
Code:
emerge -1pv x11-drivers/xf86-video-vboxvideo
show. Is it N for New or R for rebuild.
If its N, emerge it because you need it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 645
Location: San Diego, CA

PostPosted: Thu Jul 11, 2019 3:14 am    Post subject: Reply with quote

Here is something I didn't know before.

VirtualBox provides 3 different video settings: VBoxVGA, VMSVGA, and VBoxSVGA (https://docs.oracle.com/cd/E97728_01/F12470/html/gui-changes.html). VBoxVGA and VBoxSVGA are recognized as "InnoTek Systemberatung GmbH VirtualBox Graphics Adapter", while VMSVGA as "VMware SVGA II Adapter".

VMSVGA: This is the default setting for Linux, and there isn't much to add in the kernel configuration. "VIDEO_CARDS" should have the right value, though.
Code:
/etc/portage/make.conf
VIDEO_CARDS="vmware"
If you change "VIDEO_CARDS", you might as well do "emerge -v libdrm mesa xorg-drivers", just for the good measure.

VBoxSVGA: This is the default setting for Windows, but it works in Linux as well if you include the following setting.
Code:
Device Drivers
    Staging drivers (STAGING)
        Virtual Box Graphics Card (DRM_VBOXVIDEO)

/etc/portage/make.conf
VIDEO_CARDS="virtualbox"
Again, if you change "VIDEO_CARDS", it might be a good idea to rebuild "libdrm mesa xorg-drivers".

Also, unlike what "app-emulation/virtualbox-guest-additions" says at the end of emerge, remove "/etc/X11/xorg.conf" in both cases and let X do its thing, as @NeddySeagoon mentioned. Thank you everyone for taking time to share your thoughts.
__
sol
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum