Guest additions on Fedora 12

Discussions about using Linux guests in VirtualBox.
Post Reply
V_F_L
Posts: 7
Joined: 29. Mar 2010, 19:49
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Fedora

Guest additions on Fedora 12

Post by V_F_L »

Hello
First, excuse me for my bad english
Second, excuse me, because I know, that this probleme is well-known, but when I see the topics about it, I don't understand that I have to do.
Third, this is my probleme :
I'm under Winows XP, and I want to run Fedora 12 with Virtualbox. It work very well. But I want now to install the guest additions, and I have a probleme.
I write

chmod u+x VBoxLinuxAdditions-x86.run, and

./VBoxLinuxAdditions-x86.run.

Then I can see :

Verifying archive integrity... All good.
Uncompressing VirtualBox 3.1.4 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version of VirtualBox Guest Additions...
Building the VirtualBox Guest Additions kernel modules [ÉCHOUÉ]
(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 experimental X.Org Server 1.7 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 ]


And this is the file /var/log/vboxadd-install.log :

Makefile:23: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.. Arrêt.


Can you help me ?
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: Howto: Install Linux Guest Additions + Xorg conf

Post by fixedwheel »

have a look into the sticky topic on top
Sasquatch wrote: (...)
Fedora users need the following packages:

binutils
gcc
make
patch
libgomp
glibc-headers
glibc-devel
kernel-headers
kernel-devel

Code: Select all

sudo yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
HTH
V_F_L
Posts: 7
Joined: 29. Mar 2010, 19:49
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Fedora

Re: Guest additions on Fedora 12

Post by V_F_L »

It means, that I have to install all this packages, and then I would be able to install the guest Additions. Is that correct ?
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: Guest additions on Fedora 12

Post by fixedwheel »

V_F_L wrote:It means, that I have to install all this packages,
some of them may be already there but that doesnt matter when executing the given command

and make sure that the kernel, kernel-headers and kernel-devel versions match, e.g. see this actual thread => http://forums.virtualbox.org/viewtopic.php?f=3&t=26376


and its all in the howto, manual, and endless number of threads ... ;)
V_F_L
Posts: 7
Joined: 29. Mar 2010, 19:49
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Fedora

Re: Guest additions on Fedora 12

Post by V_F_L »

I installed this packages, but it doesn't work !
I don't understand !
dmcgraw
Volunteer
Posts: 808
Joined: 24. Jun 2008, 17:16
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Ubuntu 9.10
Location: St. Louis, MO, USA

Re: Guest additions on Fedora 12

Post by dmcgraw »

V_F_L wrote:I installed this packages, but it doesn't work !
I don't understand !
I really doesn't do any good to come here and post "it doesn't work !"

There are people here that want to help you, but you have to give more information.

Please post the exact steps which you have tried and detailed results including exact error messages and log files.
V_F_L
Posts: 7
Joined: 29. Mar 2010, 19:49
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Fedora

Re: Guest additions on Fedora 12

Post by V_F_L »

But I wrote more precisly about my probleme in the beginning of the topic !
I just said "it doesn't work" because Fixedwheel has suggested a solution, which has no effect.
SSCBrian
Volunteer
Posts: 365
Joined: 13. Jun 2008, 15:04
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 8 RTM (MSDN)

Re: Guest additions on Fedora 12

Post by SSCBrian »

Somewhere, you're missing one of the kernel development packages. If you select the "Software Development" install set (during initial installation), you would have gotten them. Is there a way to go back and do that after installation?
zhunter3
Posts: 1
Joined: 1. Apr 2010, 23:03
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Fedora 12

Re: Guest additions on Fedora 12

Post by zhunter3 »

I know there are many solutions posted, but I feel that I've tried everything (with my limited Linux knowledge) to get Fedora 12 Guest Additions to work...

I originally had the same kernel issue as posted by this author and most others, and came to learn that the currently used kernel basically needs to match the kernel-devel.

Currently using:
Windows XP Host
Fedora 12 Guest
VBox 3.1.6


uname -r => 2.6.31.5-127.fc12.i686
kernel-devel => 2.6.32.10-90.fc12.i686

Running the kernel update provides me with the matching 2.6.32.10-90.fc12.i686 kernel, so naturally my next attempt at getting the Additions to work is to restart the Guest and boot to the new kernel. Unfortunately I cannot see if this solves my problem, as now Fedora can't complete its boot process.

The loading bar finishes and the system just hangs at that point indefinitely (or at least >1 hour). If I do <esc> to watch the boot process instead, it gets to the point where it loads/checks? the 2.6.32.10-90.fc12.i686 kernel and hangs at the first step: Applying Firewall Rules: _

...[OK]
...[OK]
Running DKMS auto installation service for kernel 2.6.32.10-90.fc12.i686"
.ip6tables: Applying firewall rules: _


I've restarted a number of times trying things like "nomodeset" (no idea what that does) to no avail. The only way I can get a normal startup is to revert to the original kernel. I'm pretty sure this isn't the "black screen of death" problem because I cannot enter any commands (ctrl-f2?) like some have suggested in their fixes.

Thanks in advance for helping or pointing me in the right direction. Sorry I have a pretty pathetic understanding of Linux kernels...
JamesF
Posts: 1
Joined: 3. Apr 2010, 17:37
Primary OS: Fedora other
VBox Version: OSE Fedora
Guest OSses: RHEL5, XP, FC12x64

Re: Guest additions on Fedora 12

Post by JamesF »

I was having the same problem. I upgraded Virtual Box to the latest version - 3.1.6 and installed the Virtual Additions 3.1.6 and it was resolved. If you have a snapshot before installing the additions revert back to it then run the VirtualBox 3.1.6 installer. It will be upgraded. Start your vm and install the additions. Hope this helps - it worked for me.


From the change log: http://www.virtualbox.org/wiki/Changelog

***Linux Additions: fixed hang when starting the X server in Fedora12 guests and in guests with Linux 2.6.33 or later (bug #6198)


**EDIT - The change log says the update fixes an issue with kernel 2.6.33 and later but this worked on my setup: FC12 kernel 2.6.32.10-90.fc12.x86_64.
greyseal96
Posts: 10
Joined: 15. Mar 2009, 05:21

Re: Guest additions on Fedora 12

Post by greyseal96 »

Thank you very much to the people in this thread for finding the solution to this problem. I have been using Ubuntu for a while in my guests because it is always so easy to use. For the most part, it always does what it's supposed to do. I always have these weird problems with Fedora, though, so I don't get around to playing with it so much.

Whenever I need to install the Guest Additions in a Linux guest, I always go to Sasquatch's Howto post on installing the Linux Guest Additions, so I have to say thank you very much to him. I thought that I'd write down the steps that I had to follow just in case it helps somebody else.

If you're starting with a fresh install of FC12, the kernel that you have is probably 2.6.31.5-127.fc12.i686. You can find this out by typing "uname -r" from a terminal. For me, my GA install would not work unless the kernel-devel package matched the kernel. In Sasquatch's post, he says that the kernel-headers package has to match, but for some reason it was different for me. I followed Sasquatch's instructions and fully updated my system, except for the new kernel and the kernel-firmware package. After a reboot, I used PackageKit (Add/Remove Programs) to uninstall the latest version of the kernel-devel package and I installed the kernel-devel package which matched my kernel version (2.6.31.5-127.fc12.i686). After this, I used yum to install: binutils, gcc, make, patch, libgomp, glibc-headers, glibc-devel and kernel-headers. After that, I was able to successfully install the GA.

After a reboot, I updated the kernel, kernel-devel and kernel-firmware to the latest version and rebooted. It either hung on the reboot or was taking a long time so I reset the machine and this time the boot process went more quickly. Maybe the same thing would have happened if I'd been more patient...I dunno. So now it all works.

As I said before, thanks to everyone in this thread for your suggestions; they really helped.

Regards,
John
Post Reply