While this deals with a specific product (Oracle VirtualBox) the problem, and solution, appears to be more generically Ubuntu related.
When I purchased my laptop, running Ubuntu 16.04 LTS, a couple of years ago one of the first things I did was install Oracle VirtualBox. Have upgraded it several times since, and have never had a problem with it from Day One. Then a few days ago (have not used it in a few weeks) I needed to do some work with one of the VMs created under Vbox. The Vbox control console opened just fine, but when I tried to start any one of the VMs, I got this:
![]()
So, following the instructions there:
Advice?
When I purchased my laptop, running Ubuntu 16.04 LTS, a couple of years ago one of the first things I did was install Oracle VirtualBox. Have upgraded it several times since, and have never had a problem with it from Day One. Then a few days ago (have not used it in a few weeks) I needed to do some work with one of the VMs created under Vbox. The Vbox control console opened just fine, but when I tried to start any one of the VMs, I got this:

So, following the instructions there:
ed@ed-Gazelle-00:~$ sudo /sbin/vboxconfig
[sudo] password for ed:
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.
contents of the log file:[sudo] password for ed:
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.
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /lib/modules/4.4.0-47-generic/build -j4 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/tmp/vbox.0
@
The man page for make says nothing about 'oldconfig' or 'prepare', and doing a little googling about it what I find sounds like it can be pretty dangerous to your system if you don't take a lot of precautions.make[1]: warning: -jN forced in submake: disabling jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/tmp/vbox.0
@
Advice?