I've been using an Ubuntu 16.04 guest on a Windows 7 host for a while successfully. Recently, I got a notification about a new version of guest additions being available. (Edit: the guest additions version is 5.2.1.) When I install it, I always get an error that says:
VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what went wrong
I've tried several times and it always throws this error. The latest time, it also said:
VirtualBox Guest Additions: modprobe vboxsf failed.
I notice the following a few times in the log file
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."; \
but I don't know how to do this or if this is the right way to fix the error. I also don't know how to search to see if one or both files are missing from the proper directory
I did some searching and didn't find any recent results. In the past the following has been suggested:
at (link removed due to this being my first post). Anyway, the topic was "building-guest-additions-in-virtualbox-with-38-kernel-fails-871284/"
it was suggested to run "sudo apt-get install build-essential module-assistant;"
Not sure if the semicolon at the end is an accident
Another answer was
You need to create a symlink:
Code: Select all
ln -s /usr/src/linux-headers-2.6.38-1-686/include/generated/autoconf.h /usr/src/linux-headers-2.6.38-1-686/include/linux/