I recently got help here building the VirtualBox headers so I can use my whole screen. I was getting an error which I was told was harmless unless I was using that feature. Apparently I was using that feature, since now I cannot share any folder on my host (Windows) system. I found this when trying to push my changes back to my host using the shared folder, then finding the folder was completly empty in Bodhi Linux (Client).
The command I used (which worked before "fixing" the headers by installing linux-headers-3.16.0-29) is:
$ sudo mount -t vboxsf bp_inv bp_inv
/sbin/mount.vboxsf: mounting failed with the error: No such device
bp_inv still appears unchanged in my VirtualBox "shared folders list" but not in the mount -l command.
Can I have both full screen and shared folders? How do I get the headers to match -or- the installer to look in the right place?
What I've done so far.
Output (exerpt) from VBoxLinuxAdditions.run:
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
Building the shared folder support module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
looking in that log file I see:
make KERNELRELEASE=3.16.0-29-generic -C /lib/modules/3.16.0-29-generic/build M=/var/lib/dkms/vboxguest/4.3.12/build............(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.16.0-29-generic (i686)
Consult /var/lib/dkms/vboxguest/4.3.12/build/make.log for more information.
Failed to install using DKMS, attempting to install without
grep: /lib/modules/3.16.0-29-generic/build/include/linux/version.h: No such file or directory <---1053 .h files but no version.h. In fact "locate version.h" shows no version.h file anywhere under /lib/modules, so I am suspecting something is looking in the wrong place. I found a 2-line version.h in /usr/include/linux that matched exactly one in /usr/src/linux-headers-3.16.0-29-generic/include/generated/uapi/linux/version.h, but I don't know if it has any relevance.
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/3.16.0-29-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
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 ; \
again, missing under /lib/modules, but not /usr/src/linux-headers-3.16.0-29-generic/ but I don't know why it is looking in the wrong place. I looked at VBoxLinuxAdditions.run but that was no help.
Does this give any useful clues?