I have centos 6.6 installed on virtualbox. In order to use features like copy/paste, being able to share folders, etc, I need to install Guest additions on it.
I've clicked Device -> Insert Guest Additions CD Image
and then doing the following:
However, when I try to run ./VBoxLinuxAdditions run
I get the errors below. I am pasting screenshots because I'm not able to copy/paste since I don't have guest addition.
Error:
Logs:
The /lib/modules/2.6.32-504.e16.x86_64/build
and /lib/modules/2.6.32-504.e16.x86_64/source
folders are both present.
When I do yum remove kernel-devel
and install it again using yum install kernel-devel
this is the version that tries to install. Note that it is 2.6.32-573.18.1.e16
What I've done
Following This answer I did sudo yum install "kernel-devel-uname-r == $(uname -r)"
which doesn't work