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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1791935
Title:
Oracle VirtualBox failed to boot
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1791935/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs