Help with GuestAdditions....

Discussions related to using VirtualBox on Windows hosts.
Post Reply
hikerguy
Posts: 36
Joined: 27. Nov 2008, 20:11

Help with GuestAdditions....

Post 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
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Help with GuestAdditions....

Post 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.
hikerguy
Posts: 36
Joined: 27. Nov 2008, 20:11

Re: Help with GuestAdditions....

Post 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
Attachments
GA errors.JPG
GA errors.JPG (92.96 KiB) Viewed 1569 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Help with GuestAdditions....

Post by Perryg »

It tells you what to do to fix this in the error message.
hikerguy
Posts: 36
Joined: 27. Nov 2008, 20:11

Re: Help with GuestAdditions....

Post 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
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Help with GuestAdditions....

Post 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.
hikerguy
Posts: 36
Joined: 27. Nov 2008, 20:11

Re: Help with GuestAdditions....

Post 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
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Help with GuestAdditions....

Post 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"
hikerguy
Posts: 36
Joined: 27. Nov 2008, 20:11

Re: Help with GuestAdditions....

Post 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!).
untmdsprt
Posts: 16
Joined: 14. Apr 2010, 18:47
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Linux, macOS X
Location: Kansas City, MO

Post 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! :)
Post Reply