Building the main Guest Additions module …fail! (Look at /var/log/vboxadd-install.log to find out what went wrong)
Looking at the vboxadd-install.log file, you will find that the cause for the installation failure is because of the missing kernel headers. This may sound complicated to you, but don’t worry, here’s the fix:
Open a terminal (in the Ubuntu VM) and type:
Once the installation is completed, you can proceed to install the guest additions. It should work this time.
That’s it. Enjoy!