LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to install VirtualBox Guest Addition in Fedora 17 (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-install-virtualbox-guest-addition-in-fedora-17-a-4175435120/)

mia_tech 11-01-2012 02:20 PM

Trying to install VirtualBox Guest Addition in Fedora 17
 
guys, I have Fedora 17 running inside VirtualBox, so I'm trying to install VirtualBox Guest Additions, but it fails. Here's the output

Code:

Verifying archive integrity... All good.
Uncompressing VirtualBox 4.1.18 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing existing VirtualBox DKMS kernel modules          [  OK  ]
Removing existing VirtualBox non-DKMS kernel modules      [  OK  ]
Building the VirtualBox Guest Additions kernel modules
The gcc utility was not found. If the following module compilation fails then
this could be the reason and you should try installing it.

The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
The missing package can be probably installed with
yum install kernel-devel-3.3.4-5.fc17.i686

Building the main Guest Additions module                  [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions              [  OK  ]
Installing the Window System drivers
Installing X.Org Server 1.12 modules                      [  OK  ]
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  ]
Press Return to close this window...


Knightron 11-02-2012 09:02 AM

Quote:

Originally Posted by mia_tech (Post 4819911)
guys, I have Fedora 17 running inside VirtualBox, so I'm trying to install VirtualBox Guest Additions, but it fails. Here's the output

Quote:

yum install kernel-devel-3.3.4-5.fc17.i686
Once you're connected to a network in the virtual machine, open your terminal, su to root and try the above command (from your error message).
Once that's done, try again and see if there's any errors.

John VV 11-03-2012 02:21 AM

Quote:

yum install kernel-devel-3.3.4-5.fc17.i686
it is NOT recommended to use a FULL name for the kernel

it is almost always wrong and will not match the running kernel
please use
Code:

su -
yum update
yum install kernel-devel


mia_tech 11-03-2012 01:02 PM

Quote:

Originally Posted by John VV (Post 4821243)
it is NOT recommended to use a FULL name for the kernel

it is almost always wrong and will not match the running kernel
please use
Code:

su -
yum update
yum install kernel-devel


tried both methods and still doesn't work... somehow installing guest addition in Fedora is a pain in the a$$. I remember doing it before, and I believe that the problem was not having the right kernel-headers. The kernel-headers doesn't have to match those of you os. It has to be the one that virtualbox thinks is the right one

John VV 11-03-2012 03:15 PM

well that is life with fedora
You ARE using it because YOU LIKE to tinker and fix things

this is just another "puzzle" for you to fix
You DO like to and WANT to solve "puzzles" ???

that is why you are using fedora

PierreB. 11-20-2012 06:02 AM

Just a quick post to say that i wrote some stuff on this topics, which might be helpful for this issue...

See it here


All times are GMT -5. The time now is 11:07 PM.