Page 1 of 1

Help with GuestAdditions....

Posted: 13. Aug 2014, 14:39
by hikerguy
Hello,

I'm trying to get GuestAddtions running withing CentOS. I'm running Windows7 host and CentOS 6.5 guest. When I issue the mount command, I see:

/dev/sr0 on /media/VBOXADDTIONS_4.3.12_93733 ......etc.

I then run the following command:

sudo sh VBoxLinuxAdditions.run

Everything goes smooth, except I keep getting this error message:

Building the main Guest Additions module [FAILED]

Any help would be appreciated. I'm going through an Intro to Linux course through edX and need to get this going so I can cut and paste between Win and CentOS.

Thanks,

ANdy

Re: Help with GuestAdditions....

Posted: 13. Aug 2014, 15:02
by Perryg
We need the rest of the error message. The part that says what went wrong or if it told you to look at a specific log then we need to see that log.

Re: Help with GuestAdditions....

Posted: 13. Aug 2014, 15:58
by hikerguy
I went back and looked at the error messages and noticed it said the "gcc utility could not be found". I installed gcc and tried to install GAs again, but got another error message. See the attached screenshot (sorry for the screenshot, but I currently can't cut and paste between my host and guest. I'm guessing that will be fixed once I get GAs fixed).

Thanks,

Andy

Re: Help with GuestAdditions....

Posted: 13. Aug 2014, 16:47
by Perryg
It tells you what to do to fix this in the error message.

Re: Help with GuestAdditions....

Posted: 18. Aug 2014, 03:31
by hikerguy
I checked out the log and it repeats this message about 5 times.

***Error: unable to find the sources of your current Linux kernal. Specify KERN_DIR=<directory> and run Make again. Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

I have no idea how to "run Make". What is it telling me to do exactly?

Thanks,

Andy

Re: Help with GuestAdditions....

Posted: 18. Aug 2014, 03:40
by Perryg
Read the image you posted earlier. It tells you to install a missing package and even gives you the command that is needed.

Re: Help with GuestAdditions....

Posted: 18. Aug 2014, 17:25
by hikerguy
Correct, and I did that (I noted that I installed gcc). But I'm still getting that error message. That's why I re-posted. I'm not sure what step to take next.

Thanks,

Andy

Re: Help with GuestAdditions....

Posted: 18. Aug 2014, 17:49
by Perryg
I have no idea what you are reading but the message says that you need to install kernel-devel for your running kernel. It even tells you what to type.

I will quote it for you.

"The missing package can be probably installed with
yum install kernel-devel-2.6.32-431.el6.x86_64"

Re: Help with GuestAdditions....

Posted: 19. Aug 2014, 00:56
by hikerguy
Can't see the forest for the trees. Don't know how I missed that. I ran that, installed Guest Additions again, and it completed with no
errors this time. Thanks for your help (and patience!).

Posted: 16. Oct 2014, 23:47
by untmdsprt
Took me awhile to get everything installed myself. I want to add that I needed to run "su" then enter my password to be a superuser to get everything to work. I also had to install gcc.

At least we're learning how to do things! :)