[Pkg-virtualbox-devel] Bug#865393: [virtualbox] VirtualBox backport 5.1.8 not working with kernel 4.9.0

Francewhoa francewhoa at ubertus.ca
Wed Jun 21 02:44:57 UTC 2017


Package: virtualbox
Version: 5.1.8-dfsg-6~bpo8+2
Severity: normal

--- Please enter the report below this line. ---

Hi Debian enthusiasts :)

Steps to reproduce errors:
1. If VirtualBox is already installed remove it and purge it

2. Reboot

3. Add Debian Backports sources

deb http://ftp.debian.org/debian jessie-backports main contrib

4. Using Terminal as user, refresh your source list

# sudo apt-get update


5. Using Terminal as user, install linux headers

# sudo apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')


6. Using Terminal as user, install Virtualbox from jessie-backport

# sudo apt-get -t jessie-backports install virtualbox

Output start = = = = = = = = =
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  virtualbox-dkms virtualbox-qt
Suggested packages:
  virtualbox-guest-additions-iso
The following NEW packages will be installed:
  virtualbox virtualbox-dkms virtualbox-qt
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/23.6 MB of archives.
After this operation, 104 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package virtualbox-dkms.
(Reading database ... 218475 files and directories currently installed.)
Preparing to unpack .../virtualbox-dkms_5.1.8-dfsg-6~bpo8+2_all.deb ...
Unpacking virtualbox-dkms (5.1.8-dfsg-6~bpo8+2) ...
Selecting previously unselected package virtualbox.
Preparing to unpack .../virtualbox_5.1.8-dfsg-6~bpo8+2_amd64.deb ...
Unpacking virtualbox (5.1.8-dfsg-6~bpo8+2) ...
Selecting previously unselected package virtualbox-qt.
Preparing to unpack .../virtualbox-qt_5.1.8-dfsg-6~bpo8+2_amd64.deb ...
Unpacking virtualbox-qt (5.1.8-dfsg-6~bpo8+2) ...
Processing triggers for systemd (230-7~bpo8+2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for menu (2.1.47) ...
Processing triggers for shared-mime-info (1.5-2~bpo8+1) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for gnome-menus (3.13.3-6) ...
Processing triggers for mime-support (3.58) ...
Setting up virtualbox-dkms (5.1.8-dfsg-6~bpo8+2) ...
Loading new virtualbox-5.1.8 DKMS files...
Building for 4.9.0-0.bpo.3-amd64
Building initial module for 4.9.0-0.bpo.3-amd64
Error! Bad return status for module build on kernel: 4.9.0-0.bpo.3-amd64
(x86_64)
Consult /var/lib/dkms/virtualbox/5.1.8/build/make.log for more information.
Job for virtualbox.service failed because the control process exited
with error code.
See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
Setting up virtualbox (5.1.8-dfsg-6~bpo8+2) ...
Setting up virtualbox-qt (5.1.8-dfsg-6~bpo8+2) ...
Processing triggers for menu (2.1.47) ...
Output end = = = = = = = = =


In the output above notice the error about: "Error! Bad return status
for module build on kernel: 4.9.0-0.bpo.3-amd64 (x86_64)".

Find attached to this ticket the "make.log" file

6. Open VirtualBox

7. Click on "New" button to build a new machine. Let's call it "Lorem".

8. Click on "Start" button. A first error message is display. Find
attached screenshot titled "Error_1---Francewhoa---2017-06-20.jpg".
Text copy below:

Error 1 start = = = = = = = = =
Failed to open a session for the virtual machine Lorem.

The virtual machine 'Lorem' has terminated unexpectedly during startup
with exit code 1 (0x1).


Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
MachineWrap
Interface:
IMachine {b2547866-a0a1-4391-8b86-<MASKED>}
Error 1 end = = = = = = = = =


A second error message is display. Find attached screenshot titled
"Error_2---Francewhoa---2017-06-20.jpg".
Text copy below:

Error 2 start = = = = = = = = =
Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or
there is a permission problem with /dev/vboxdrv. Please reinstall
virtualbox-dkms package and load the kernel module by executing

'modprobe vboxdrv'

as root.

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The
support driver is not installed. On linux, open returned ENOENT.
Error 2 end = = = = = = = = =


Expected outcome:
• VirtualBox from jessie-backport should install without returning error
message. The DKMS module should be build using the kernel 4.9.0.


Notes:
• The kernel 4.9.0 is currently included by default with Debian 8.8
Jessie, 64-bit
• Installed using the instructions at
https://wiki.debian.org/VirtualBox#Debian_8_.22Jessie.22_Backports


What I tried that was not effective:
• After installed VirtualBox, reboot, try to use VirtualBox again
• Remove, purge, reboot, re-install VirtualBox from backport
• Reinstall virtualbox-dkms from backport
• Install VirtualBox with Sudo
• Install VirtualBox with Root
• Install virtualbox-guest-additions-iso
• Install virtualbox-guest-x11


Related
• https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=853878http://forum.openmediavault.org/index.php/Thread/17281-Virtualbox-plugin-installation-fails-on-4-9-0-backport-kernel/http://forum.openmediavault.org/index.php/Thread/17243-Virtualbox-5-1-8-and-kernel-4-9-error/?postID=136405#post136405https://www.virtualbox.org/ticket/16286


System:
• Base: Debian 8.8 Jessie, 64-bit
• Kernel: 4.9.0-0.bpo.3-amd64 #1 SMP Debian 4.9.25-1~bpo8+1 (2017-05-19)
x86_64 GNU/Linux
• Gnome: 3.14.1


Any volunteers for investigating and fixing? I would be happy to
contribute testing and documentation if needed.

Let me know if you have any questions or need anything else

Cheers,

Francewhoa
 

--- System information. ---
Architecture: amd64
Kernel: Linux 4.9.0-0.bpo.3-amd64

Debian Release: 8.8
500 stable repo.skype.com
500 stable dl.google.com
500 oldstable-updates mirror.it.ubc.ca
500 oldstable security.debian.org
500 oldstable mirror.it.ubc.ca
100 jessie-backports ftp.debian.org

--- Package information. ---
Package's Depends field is empty.

Package's Recommends field is empty.

Package's Suggests field is empty.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Error_1---Francewhoa---2017-06-20.jpg
Type: image/jpeg
Size: 39431 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-virtualbox-devel/attachments/20170620/f31c1f5c/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Error_2---Francewhoa---2017-06-20.jpg
Type: image/jpeg
Size: 45554 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-virtualbox-devel/attachments/20170620/f31c1f5c/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.log
Type: text/x-log
Size: 7125 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-virtualbox-devel/attachments/20170620/f31c1f5c/attachment-0001.bin>


More information about the Pkg-virtualbox-devel mailing list