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
VBoxGuestAdditions_4.3.14_RC1.iso
and are using this. But in the first screenshot above the version number5.0.14
is displayed. What is more, it would help if you print the output ofuname -a
(although you already printed this 'indirectly').5.0.14
. I mountedVBoxGuestAdditions_4.3.14_RC1.iso
and thats the only guest additions iso I have on my host. As for theuname -a
this is what is the output2.6.32-504.e16.x86_64