Oracle VirtualBox failed to boot (kernel-bug-exists-upstream)

Bug #1791935 reported by Pooja Saxena
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
High
Unassigned

Bug Description

Hello Ubuntu Team,
I already reported one of bug related to my new Ubuntu 16.04 installation [1], which has to do with the touchpad not working at all after fresh installation of ubuntu 16.04.

Now I installed the Oracle Virtualbox VM following the instructions given here [2], however it failed to boot, throwing this error-message [3].
The output of 'sudo /sbin/vboxconfig' is given in [4], the dmesg output could be find in attachment as text file.

What has been asked in the instructions does not have any output:
pooja@X1-Carbon-6:~/Downloads$ cat /proc/version_signature > version.log
pooja@X1-Carbon-6:~/Downloads$ sudo lspci -vnvn > lspci-vnvn.log
pooja@X1-Carbon-6:~/Downloads$

Any guidence how to fix this bug is appreciated.

Thanks

[1] https://bugs.launchpad.net/bugs/1791921
[2] https://tecadmin.net/install-oracle-virtualbox-on-ubuntu/

[3]
*******
pooja@X1-Carbon-6:~/Downloads$ virtualbox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (4.15.0-34-generic) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.

[4]
********
pooja@X1-Carbon-6:~/Downloads$ sudo /sbin/vboxconfig
[sudo] password for pooja:
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

There were problems setting up VirtualBox. To re-start the set-up process, run
  /sbin/vboxconfig
as root.

Tags: bionic cscc
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1791935

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: bionic
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote : Re: Oracle VirtualBox failed to boot

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.19 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19-rc3

Changed in linux (Ubuntu):
importance: Undecided → High
status: Confirmed → Incomplete
Revision history for this message
Gavin Hull (hullgj) wrote :
Download full text (3.4 KiB)

BACKGROUND:
Ubuntu 4.15.0-34.37-generic 4.15.18 Ubuntu 18.04.1 LTS 64-bit running on VMWare Workstation 12 with VT-X enabled. VirtualBox 5.2 worked prior to kernel upgrade.

PROBLEM:
VirtualBox won't start, apparently due to missing header file `packed_struct.h`

FAILED ATTEMPTS TO FIX:
Re-installing virtualbox 5.2/5.1, linux-headers

I have a similar issue where VirtualBox 5.2 was running, but since the kernel was upgraded according to /var/log/dpkg.log:

`2018-09-20 11:36:33 upgrade linux-libc-dev:amd64 4.15.0-33.36 4.15.0-34.37`

I have been experiencing issues, as described by the OP, where running VirtualBox results in an error:

`$ sudo virtualbox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (4.15.0-34-generic) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /sbin/vboxconfig

         You will not be able to start VMs until this problem is fixed.
`

Running `$ sudo /sbin/vboxconfig` results in the following output:

`vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.

There were problems setting up VirtualBox. To re-start the set-up process, run
  /sbin/vboxconfig
as root.`

Output of /var/log/vbox-install.log the interesting output being:

`In file included from ./include/linux/rhashtable.h:24:0,
                 from ./include/linux/ipc.h:7,
                 from ./include/uapi/linux/sem.h:5,
                 from ./include/linux/sem.h:9,
                 from ./include/linux/sched.h:15,
                 from ./include/linux/uaccess.h:5,
                 from ./include/linux/highmem.h:9,
                 from ./include/linux/pagemap.h:11,
                 from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:99,
                 from /tmp/vbox.0/linux/SUPDrv-linux.c:33:
./include/linux/jhash.h:27:10: fatal error: linux/unaligned/packed_struct.h: No such file or directory
 #include <linux/unaligned/packed_struct.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:332: recipe for target '/tmp/vbox.0/linux/SUPDrv-linux.o' failed
make[2]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 1
make[2]: *** Waiting for unfinished jobs....
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/SUPDrvSem.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/SUPDrvSem.o"; fi; fi;
   ./tools/objtool/objtool check --module --retpoline "/tmp/vbox.0/SUPDrvGip.o";
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/SUPDrvGip.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/SUPDrvGip.o"; fi; fi;
   ./tools/objtool/objtool check --module --retpoline "/tmp/vbox.0/SUPDrv.o";
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/SUPDrv.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount "/tmp/vbox.0/SUPDrv.o"; fi; fi;
Makefile:1552: recipe for target '_module_/tmp/vbox.0' failed
make[1]: *** [_module_/tmp/vbox.0] Error 2
Makefile:305: recipe for target 'vboxdrv' failed
make: *** [vboxdrv] Error 2
`

It appears to be complaining about a missing file: lin...

Read more...

Gavin Hull (hullgj)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Gavin Hull (hullgj)
summary: - Oracle VirtualBox failed to boot
+ Oracle VirtualBox failed to boot (kernel-bug-exists-upstream)
Revision history for this message
Gavin Hull (hullgj) wrote :

Tried the upstream header kernel `linux-headers-4.19.0-041900rc5`, which wasn't being displayed as an option in grub's advanced menu. There was no error after installing with `$ sudo dpkg -i lin...deb`, so assumed upstream was installed.

To confirm the bug is due to 4.15.0-34, I rolled back to 4.15.0-33 and tested VirtualBox. I can confirm VirtualBox 5.2 - 5.2.18 r124319 (Qt5.9.5) - works under kernel 4.15.0-33.

Let me know if you would like me to retry any installations of upstream linux headers.

Revision history for this message
Pooja Saxena (nrjrasaxena) wrote :

Hello,
many thanks for your input, very much appreciated.
The Oracle Virtual VM got installed smoothly after upgrading the Kernal to latest one 4.19.

Regards,
pooja

Brad Figg (brad-figg)
tags: added: cscc
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.