I just installed a virtual machine with Ubuntu 16 on my windows 10 pc using the newest version of virtualbox. I have tried several times to install guest additions but it keeps failing. I mounted the guest additions virtual disk and pressed "run program" after which I get:
This is the log file:
I would really appreciate if you all could help solve this problem for me. I have looked all over YouTube and th internet and tried all the fixes I could...
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.28 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 5.0.28 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
update-initramfs: Generating /boot/initrd.img-4.8.0-22-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-26-generic
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
Building the main Guest Additions module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions ...done.
Press Return to close this window...
Uncompressing VirtualBox 5.0.28 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 5.0.28 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
update-initramfs: Generating /boot/initrd.img-4.8.0-22-generic
update-initramfs: Generating /boot/initrd.img-4.8.0-26-generic
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
Building the main Guest Additions module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions ...done.
Press Return to close this window...
KMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....
make KERNELRELEASE=4.8.0-22-generic -C /lib/modules/4.8.0-22-generic/build M=/var/lib/dkms/vboxguest/5.0.28/build............(bad exit status: 2)
ERROR (dkms apport): binary package for vboxguest: 5.0.28 not found
Error! Bad return status for module build on kernel: 4.8.0-22-generic (x86_64)
Consult /var/lib/dkms/vboxguest/5.0.28/build/make.log for more information.
Failed to install using DKMS, attempting to install without
grep: /lib/modules/4.8.0-22-generic/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/4.8.0-22-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 ; \
/bin/false)
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....
make KERNELRELEASE=4.8.0-22-generic -C /lib/modules/4.8.0-22-generic/build M=/var/lib/dkms/vboxguest/5.0.28/build............(bad exit status: 2)
ERROR (dkms apport): binary package for vboxguest: 5.0.28 not found
Error! Bad return status for module build on kernel: 4.8.0-22-generic (x86_64)
Consult /var/lib/dkms/vboxguest/5.0.28/build/make.log for more information.
Failed to install using DKMS, attempting to install without
grep: /lib/modules/4.8.0-22-generic/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/4.8.0-22-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 ; \
/bin/false)
I would really appreciate if you all could help solve this problem for me. I have looked all over YouTube and th internet and tried all the fixes I could...