Cannot Install Virtualbox Guest Additions
Cannot Install Virtualbox Guest Additions
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!
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!
Re: Cannot Install Virtualbox Guest Additions
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.
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.
Re: Cannot Install Virtualbox Guest Additions
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.....
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.....
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Cannot Install Virtualbox Guest Additions
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.
Re: Cannot Install Virtualbox Guest Additions
Thanks much appreciated! :-)
Re: Cannot Install Virtualbox Guest Additions
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.
[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.
Re: Cannot Install Virtualbox Guest Additions
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
[code] sh /media/VBOXADDITIONS_3.1.4_57640/VBoxLinuxAdditions-amd64.run[/code]. I think this should solve it
Re: Cannot Install Virtualbox Guest Additions
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 ]#
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 ]#
Re: Cannot Install Virtualbox Guest Additions
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'
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'
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Cannot Install Virtualbox Guest Additions
... 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.]