Cannot Install Virtualbox Guest Additions

General support questions including new installations
grubdude
Posts: 48
Joined: 2010/01/07 17:50:49

Cannot Install Virtualbox Guest Additions

Post by grubdude » 2010/02/15 17:46:14

Hi,
I have 2 Centos 5.4 builds...one is x64 and the other on aother box is 32 bit...Both are running in virtual machines with version 3.1.4 Virtualbox.

I have tried on both versions to install the guest additions and on each the terminal comes up briely and then does not install...No error messages. Any ideas?

Is this possibly a permissions issue?

Thanks!

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Cannot Install Virtualbox Guest Additions

Post by scottro » 2010/02/15 18:00:03

How are you installing them? One thing I've found, that works better for troubleshooting, is to rather than click on the icon, just do something like

cd
./Program_name (I can't think of the name off the top of my head, LinuxGuestAddtions-amd64.sh or whatever it is.)

Sometimes, the problem is that we've forgotten to install kernel-devel, which it will need to make the guest addtions.

grubdude
Posts: 48
Joined: 2010/01/07 17:50:49

Re: Cannot Install Virtualbox Guest Additions

Post by grubdude » 2010/02/15 18:06:07

Yes, just clicking on the executable. I will try it your way and see if it helps...I need to check about the kernel-devel....Thanks

I have installed this on another Linux distro as well as Solaris 10 and Opensolaris with no problems, so was wondering why Centos was acting differently.....

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Cannot Install Virtualbox Guest Additions

Post by pschaff » 2010/02/15 18:21:50

The other thing that is good to have installed is dkms from [url=http://wiki.centos.org/Repositories/RPMForge]RPMforge repo[/url]. This will automate rebuilding the kernel modules for new kernels.

grubdude
Posts: 48
Joined: 2010/01/07 17:50:49

Re: Cannot Install Virtualbox Guest Additions

Post by grubdude » 2010/02/15 18:23:56

Thanks much appreciated! :-)

grubdude
Posts: 48
Joined: 2010/01/07 17:50:49

Re: Cannot Install Virtualbox Guest Additions

Post by grubdude » 2010/02/17 00:26:14

Any idea why I would be getting this?

[root@localhost ]# '/media/VBOXADDITIONS_3.1.4_57640/VBoxLinuxAdditions-amd64.run'
bash: /media/VBOXADDITIONS_3.1.4_57640/VBoxLinuxAdditions-amd64.run: /bin/sh: bad interpreter: Permission denied

Thanks.

DrLove73
Posts: 70
Joined: 2009/03/14 12:12:06
Location: Serbia
Contact:

Re: Cannot Install Virtualbox Guest Additions

Post by DrLove73 » 2010/02/17 00:48:02

It does not like bash if I remember correctly. Known issue, at least for me Try:

[code] sh /media/VBOXADDITIONS_3.1.4_57640/VBoxLinuxAdditions-amd64.run[/code]. I think this should solve it

grubdude
Posts: 48
Joined: 2010/01/07 17:50:49

Re: Cannot Install Virtualbox Guest Additions

Post by grubdude » 2010/02/17 00:59:21

Thanks that worked but now I got this:


Uncompressing VirtualBox 3.1.4 Guest Additions for Linux........
VirtualBox Guest Additions installer
Building the VirtualBox Guest Additions kernel modules [FAILED]
(Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong)
Installing the Window System drivers
Installing X.Org 7.1 modules [ OK ]

You appear to be running an older version of the X Window system in your
guest. Seamless mode and dynamic resizing will not work!

Setting up the Window System to use the Guest Additions [ OK ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services componen[ OK ]
[root@localhost ]#

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Cannot Install Virtualbox Guest Additions

Post by scottro » 2010/02/17 01:16:27

Ok, that looks as if you haven't installed kernel-devel and a few others. Some advise installing the entire development tools group, but, as I'm not a developer, I usually start with something like

yum install gcc gcc-c++ make automake kernel-devel

This pulls in several other things too. (And some of those may pull in others, I've never cared enough to research that one fully.)

If you do decide you want the entire development tools package you can do


yum install @development-tools

(or more traditionally)

yum groupinstall 'Development Tools'

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Cannot Install Virtualbox Guest Additions

Post by pschaff » 2010/02/17 13:34:15

... and if you read the [url=http://wiki.centos.org/HowTos/Virtualization/VirtualBox]VirtualBox Wiki article[/url] you may decide to install "dkms" as well - hmmm - sounds familiar, oh yeah, Post #4 - should have mentioned the Wiki and "Development Tools" then and possibly saved the OP some grief. [Gotta' get around to updating that page again soon.]

Post Reply