Xorg doesn't start after update on VMs - vboxvideo_drv.so missing

Bug #1759452 reported by David Locke
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
virtualbox (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I'm running a 16.04 KUbuntu guest on a Windows 10 host. Today I updated the virtualbox guest packages and now KDE doesn't display (only a black screen).

If I SSH into the machine using Putty and Xming I can run xcalc but trying to run kate generates the message: "failed to get the current screen resources". There is also an error related to loading virtualbox in /var/log/Xorg.0.log

Revision history for this message
David Locke (redwallknight) wrote :

Here's the relevant section from the Xorg log:

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in virtualbox (Ubuntu):
status: New → Confirmed
Revision history for this message
Dan Hopper (nimblefooted) wrote :

I've experienced the same issue with the same combination of host/guest. I've tried multiple versions of Virtualbox for Windows. Blank screen after after starting X after taking the latest Ubuntu 16.04 updates on Tuesday, 3/28/2018.

This update replaced virtualbox-guest* 5.0.40 with 5.1.34-dfsg-0ubuntu1.16.04.2:
Unpacking virtualbox-guest-x11 (5.1.34-dfsg-0ubuntu1.16.04.2) over (5.0.40-dfsg-0ubuntu1.16.04.2) ...

host: Windows 10 Enterprise
      Virtualbox 5.1.28, 5.1.34, and 5.2.8 (tried each version)

guest: Kubuntu 16.04
       virtualbox-guest-x11 5.1.34-dfsg-0ubuntu1.16.04.2
       sddm 0.13.0-1ubuntu5

I've already reproduced the same blank screen behavior with a fresh Kubuntu 16.04 install into a fresh virtual machine.

I've found the following things produce improved behavior:

1) uninstalling virtualbox-guest-x11. Not desirable from a functionality perspective, but it does produce working video for both the X display manager and KDE.

2) using xdm instead of sddm as /etc/X11/default-display-manager. Now, with the guest-x11 pkg installed, there's working video in the login screen from xdm, although kde plasma still produces a blank screen.

3) uninstalling virtualbox-guest-x11, installing VBoxLinuxAdditions.run 5.2.8 included in the Virtualbox 5.2.8 installation. Works great with the three vbox modules installed.

4) exporting/importing to VMware Player.

So it would appear it's an issue with the virtualbox-guest-x11 5.1.34-dfsg-0ubuntu1.16.04.2 package that was made available recently in the Ubuntu 16.04 updates repo.

Regards,
Dan

Revision history for this message
Daniel Rocher (daniel-rocher) wrote :

I confirm this bug with Ubuntu 16.04 (host) and all my VMs (ubuntu 16.04). Impossible to start "x11".

I reinstall / rebuild (with dkms) all on my host (purge/clean/install) -> no change.

On VMs, reverted to version 5.0.18-dfsg-2build fixed problem.

We have added the following to /etc/apt/preferences to block this version of the package : virtualbox-guest-dkms, virtualbox-guest-utils and virtualbox-guest-x11

summary: - KDE won't display after updating
+ Xorg doesn't start after update on VMs
Revision history for this message
Daniel Rocher (daniel-rocher) wrote : Re: Xorg doesn't start after update on VMs

A workaround is possible : enable 3D support in settings/display/enable 3D acceleration (VirtualBox interface)

In this case, the vboxvideo_dri.so driver is used instead of the vboxvideo_drv.so driver (which is missing).

For me, it works on all my VMs

Compare file list for packages (vboxvideo_drv.so missing in xenial-updates):
 https://packages.ubuntu.com/xenial/amd64/virtualbox-guest-x11/filelist
 https://packages.ubuntu.com/xenial-updates/amd64/virtualbox-guest-x11/filelist

In the update, vboxvideo_drv.so is missing. Why ???

In debian/rules for update, there is a comment :
# debian/$(uxname)/usr/lib/xorg/modules/drivers/vboxvideo_drv.so

Why this change has been introduced?

summary: - Xorg doesn't start after update on VMs
+ Xorg doesn't start after update on VMs - vboxvideo_drv.so missing
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Let me readd!

Revision history for this message
Peter Meiser (meiser79) wrote :

I can run a VM with only 2D perfectly fine (using X). Do you use Wayland or X? Can you uncomment 'WaylandEnable = false' in /etc/gdm3/custom.conf and check if it works for you.

Revision history for this message
Peter Meiser (meiser79) wrote :

Sorry, I thought you run Ubuntu 18.04, but it's Ubuntu 16.04. Please ignore my comment.

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

That file doesn't exist anymore since now we have a kernel module and the *GL stuff for this 3d.
apt-get install virtualbox-guest-dkms should bring that vboxvideo for you

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

also modprobe vboxvideo should work

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package virtualbox - 5.2.10-dfsg-1

---------------
virtualbox (5.2.10-dfsg-1) unstable; urgency=medium

  * New upstream version 5.2.10-dfsg
    - drop notify-send patch: upstream
  * Correct VCS field
  * commit new patch for GL fixes
  * Update watch file and std-version to 4.1.4
  * Patch refresh

 -- Gianfranco Costamagna <email address hidden> Wed, 18 Apr 2018 00:57:55 +0200

Changed in virtualbox (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
technic (alexeytech) wrote :

How do I update to this version on ubuntu 16.04?

Revision history for this message
technic (alexeytech) wrote :

I solved the issue by downgrading virtualbox-guest-x11 and virtualbox-guest-utils downto 5.0.18-dfsg-2build1

Revision history for this message
Wolf (drechsel) wrote :

This problem (still or again) occurs with ubu 18.04 (host), 18.10 (guest) and virtualbox 5.2.18.
After installing the guest additions at the host, the guest system will boot, but x server will crash and state
"Warning, couldn't open module vboxvideo".

Modprobe vboxvideo will load the module, nevertheless X server will crash with the same message.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.