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:
linux/unaligned/packed_struct.h, which Google pointed me to the actual
file on GitHub for the Linux Kernel https://github.com/torvalds/linux.
OK, so I am going to attempt testing the latest upstream kernel, as
advised by Joseph Salisbury in the above comment.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1791935
Title:
Oracle VirtualBox failed to boot
Status in linux package in Ubuntu:
Incomplete
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1791935/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp