Fedora 12 guest addition installation issue

Discussions about using Linux guests in VirtualBox.
remy06
Posts: 9
Joined: 31. Aug 2009, 16:51
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Fedora 12 guest addition installation issue

Post by remy06 »

hi all,

I've encountered an error while trying to install guest additions on fedora 12 guest.

The steps I've used to install after searching around are:

Code: Select all

yum install gcc -y

yum install kernel sources -y 

yum install kernel-devel -y

sh VBoxLinuxAdditions-x86.run
However I get the following error message while installing:

Code: Select all

..
..
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)
..
In /var/log/vboxadd-install.log file :

Code: Select all

Makefile:23: *** Error: Unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run MAKE again.. Stop.
Can anyone advice or guide me on how to solve this? Although the guest additions state the installation was successful,I'm still unable to resize the guest window etc etc.

Windows host
Fedora 12 guest
virtualbox 3.12
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Fedora 12 guest addition installation issue

Post by Perryg »

Try a yum update to make sure that all depends are installed then try installing the GAs again.
bboaz
Posts: 5
Joined: 17. Aug 2009, 18:22
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows XP

Re: Fedora 12 guest addition installation issue

Post by bboaz »

I've been doing this a lot over the last few days (trying a bunch of free Linux OS's), and I have the same problem every time:

The kernel source downloaded by using yum or yast2 or zypper doesn't match the kernel currently being run.

If that happens to you, you'll see the error you're seeing every time.

These automatic update tools (yum, yast2, zypper) by default grab the latest and greatest stuff which in all likelihood won't match the kernel version number you're virtual OS is currently running.

To fix the problem, you MUST either upgrade your kernel (relatively hard) or tell your update tool to download and install a specific version of the package you want (relatively easy).

To get the matching kernel source, do a 'uname -r' -- which will tell you what kernel version you're using.

Then with your update tool grab the matching kernel source.

So for instance, I just did this with a version of OpenSUSE 11.1 that I installed a few minutes ago.

'uname -r' returned 2.6.27.7-9

Then to grab the matching kernel source, I did: zypper in kernel-source.x86_64=2.6.27.7-9

On Fedora, yum's syntax is slightly different but you can still specify the version number on the yum command line. Something like yum install kernel-source.2.6.27.7-9 (you get the idea).

Good luck.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Fedora 12 guest addition installation issue

Post by Perryg »

Fedora does not use the kernel-source! It uses kernel-devel and kernel-headers. You can run yum install kernel-headers-$(uname -r) which will match the kernel to the headers and do the same thing but I have seen a lot of people with Fedora that the kernel they had and the kernel-headers were the same.
doing a yum update after usually fixes this.
Also these are the suggested packages to install for Fedora:
SU <enter>then password<enter>

Code: Select all

yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
remy06
Posts: 9
Joined: 31. Aug 2009, 16:51
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Fedora 12 guest addition installation issue

Post by remy06 »

Just to check,so I shld run a yum update and install the updates first before anything?Or attempt to install the guest additions first which will generate the error then followed by a yum update??

Shld I still use this?together with the suggested packages that Perryg recommended?:

Code: Select all

yum install gcc -y

yum install kernel-devel -y

yum install kernel-headers
fyi,I have tried doing a yum update and installed all updates right after installing fedora,then i installed gcc,kernel-devel etc and install the guest additions but still the error is there.

I've restore my fedora back alrdy..pls advice.thanks
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Fedora 12 guest addition installation issue

Post by Perryg »

All you should need to do after you install the OS as guest and before you install the guest additions is to copy the line I sent you in a terminal window (on the guest) and run it as SU.
After that you install the guest additions.
masterix
Posts: 2
Joined: 24. Jan 2010, 02:09
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Everything

Re: Fedora 12 guest addition installation issue

Post by masterix »

I just fixed the same problem. Probably it happened because of this:

yum install kernel-devel -y

Try the following:

1- Uninstall all kernel-devel versions with rpm -e kernel-devel (all versions installed will be listed)
Repeat rpm -e kernel-devel for each version
For example: rpm -e kernel-devel-2.6.31.6-162.fc12.i686

2- Install the correct version:
yum install kernel-devel-2.6.31.5-127.fc12.i686
or
yum install kernel-devel-${uname -r}

uname -r returns the kernel version.

Answer y[es] when asked.



3- Install guest additions again and reboot.

See http://forums.virtualbox.org/viewtopic. ... =0#p115547 for more details.
remy06
Posts: 9
Joined: 31. Aug 2009, 16:51
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Fedora 12 guest addition installation issue

Post by remy06 »

hi all

thanks for the info.Managed to solve it following Perryg's help as well so heres what i did:
after fresh install,I ran the following cmd then i install the guest additions:

Code: Select all

yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
didn't work. so I did a yum update and update all but still not working.

finally managed to get it working by installing :

Code: Select all

yum install kernel-PAE-devel.i686
then i reinstall guest additions and it install w/o errors this time.

seems to work fine now.
nazar.sh
Posts: 1
Joined: 30. Jan 2010, 16:53
Primary OS: MS Windows 7
VBox Version: OSE Fedora
Guest OSses: Fedora

Re: Fedora 12 guest addition installation issue

Post by nazar.sh »

Thanks for your help!
That solved it for me as well.
josiah14
Posts: 9
Joined: 15. Apr 2010, 05:04
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: PeppermintOS (highly modified), Debian Wheezy

Re: Fedora 12 guest addition installation issue

Post by josiah14 »

I did everything in this thread, yet I still cannot get Fedora to run seamless. I also cannot get 1680x1050 resolution (full screen for my larger monitor).

I'm running the newest VBox version
I have kernel version 2.6.32.11-99.fc12.i686

using gcc 4.4.3-4.fc12
glibc-devel 2.11.1-4
glibc-headers 2.11.1-4
kernel-PAE-devel 2.6.32.11-99.fc12
kernel-headers 2.6.32.11-99.fc12

If you can help, I'd really appreciate it. I'm a novice at virtualization, and def. not a Linux expert, even though I do work with it.
josiah14
Posts: 9
Joined: 15. Apr 2010, 05:04
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: PeppermintOS (highly modified), Debian Wheezy

Re: Fedora 12 guest addition installation issue

Post by josiah14 »

ADDITIONAL:

I looked at the log file for the error:
Makefile:23: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.. Stop.
josiah14
Posts: 9
Joined: 15. Apr 2010, 05:04
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: PeppermintOS (highly modified), Debian Wheezy

Re: Fedora 12 guest addition installation issue

Post by josiah14 »

Update:
I got the kernel modules to load. I had to re-install kernel-devel after my update. Now, when I installed the VBox tools, I got Zero errors.

Despite this, seamless mode is still disabled and still can't get 1680x1050 res. Also, I can't run desktop effects. It crashes every time i try to load it.

I'm running Windows 7 64-bit as the Host OS. Is this a problem for anyone else, that seamless mode does not work for Fedora 12 2.6.32.11-99 on a Windows 7 host?
josiah14
Posts: 9
Joined: 15. Apr 2010, 05:04
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: PeppermintOS (highly modified), Debian Wheezy

Re: Fedora 12 guest addition installation issue

Post by josiah14 »

UPDATE:

I had to re-install the VirtualBox video drivers. Once I did that, everything started working, inclucing auto Display resolution resizing with window resizing. Everything, that is, EXCEPT Seamless mode. Now, when I go seamless mode, I cant see anything from the Guest Linux OS. I can hit Host+L to get out of it as long as the virtual machine is seen as being the active window (even though I can't see it, I can use the "Show" button in the VirtualBox window to bring the application to the front).

Is this possibly caused by my dual monitor setup?

I am running a 1680x1050 LCD in display port0 and 1280x1024 in display port1. My guest Fedora Linux OS only wants to recognize the larger display, and I cant get the dual head working (I cant select a graphics card in the system-config-display for the second monitor). It would seem the guest OS has no idea my second monitor is even connected.

Any help would be appreciated, thanks.

I forgot, I still can't get Desktop Effects to work (can't even get the configuration utility for them to run). I'm not as concerned about that, though. I'd be really happy if I could get seamless mode.
SSCBrian
Volunteer
Posts: 365
Joined: 13. Jun 2008, 15:04
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Windows 8 RTM (MSDN)

Re: Fedora 12 guest addition installation issue

Post by SSCBrian »

josiah14 wrote:Is this possibly caused by my dual monitor setup?

I am running a 1680x1050 LCD in display port0 and 1280x1024 in display port1. My guest Fedora Linux OS only wants to recognize the larger display, and I cant get the dual head working (I cant select a graphics card in the system-config-display for the second monitor). It would seem the guest OS has no idea my second monitor is even connected.
Seamless only works on the primary monitor. VBox currently does NOT support going seamless on other monitors in the system.

Guest OS' only see a single display. They're not give the details on the physical displays available, just the single logical display provided by VBox.
mpehman
Posts: 2
Joined: 26. Apr 2010, 05:27
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: XP,Fedora12,unbuntu

Re: Fedora 12 guest addition installation issue

Post by mpehman »

I'm trying to follow along here.

I did the yum install

and trying to set the KERN_DIR manually

BUT

Where are the kern-devel files installed to so that I can set the KERN_DIR ?
Post Reply