The gcc utility was not found. If the following module compilation fails then this could be the reason and you should try installing it.The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason. The missing package can be probably installed with yum install kernel-devel-3.10.0-327.el7.x86_64Building the main Guest Additions module[FAILED] (Look at /var/log/vboxadd-install.log to find out what went wrong)Doing non-kernel setup of the Guest Additions[ OK ]Press Return to close this window...^CSignal caught, cleaning upPress Return to close this window...
Fortunately, the answer has already been posted.
You can find it here: How To Install VirtualBox 5 Additions on CentOS 7.
In summary, the steps were:
- $ sudo yum -y update
- $ sudo yum install epel-release
- $ sudo yum install dkms kernel-devel
- install GuestAdditions from CD
- via auto-installer, or
- $ cd /run/media/<yourid>/VBOXADDITIONS_x_x_x_xxxxx
- $ sudo ./VBoxLinuxAdditions.run