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:

[![enter image description here](https://i.stack.imgur.com/80zaJ.png)](https://i.stack.imgur.com/80zaJ.png)

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:

[![enter image description here](https://i.stack.imgur.com/m103g.png)](https://i.stack.imgur.com/m103g.png)

Logs:

[![enter image description here](https://i.stack.imgur.com/5Mb4v.png)](https://i.stack.imgur.com/5Mb4v.png)

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. 

[![enter image description here](https://i.stack.imgur.com/fbtg9.png)](https://i.stack.imgur.com/fbtg9.png)

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`

[![enter image description here](https://i.stack.imgur.com/RQBGb.png)](https://i.stack.imgur.com/RQBGb.png)

**What I've done**

Following [This answer](https://unix.stackexchange.com/a/110685) I did `sudo yum install "kernel-devel-uname-r == $(uname -r)"` which doesn't work

[![enter image description here](https://i.stack.imgur.com/7KJD2.png)](https://i.stack.imgur.com/7KJD2.png)