Update: Whoa! Looks like my instructions only work for 64-bit guests. Scroll down to the bottom for the changes you need to make for a 32-bit Fedora guest.
This was not quite as straightforward as I remember it being in Fedora 11. I ran into a problem and couldn’t find the solution in 5 minutes of searching, so I offer it here: the steps to install VBox Guest Additions in Fedora 12.
I’m assuming you’re using VBox 3.1.2 (latest as of writing) and the kernel version is 22.214.171.124 on an x86_64. What does all that mean? In the long strings of numbers, some of them might change for you.
First, in the VM menu (not the Guest but the chrome around it) go to Devices > Install Guest Additions. It will mount a new disc image. Then fire up terminal.
``` $ su
yum install kernel-headers kernel-devel gcc
This time the kernel modules should compile. Then restart the system.
There’s a pretty good chance that some directories will be different, so rather than typing this out, you probably want to make liberal use of the tab key. Navigate to the right source directory (probably the only one in
/usr/src/kernels) and then try:
# export KERN_DIR=pwd``
There’s also a small chance you might get an error that says
gksu: not found, and most probably the autorun script won’t do anything. I ran
# ln -s /usr/bin/sudo /bin/gksu and it seemed to clear the problem up. (I only ran into this when starting the install via
autorun.sh, not with the
Update for 32-bit Guests
A few possible changes if this doesn’t work for you with a 32-bit guest. (It didn’t for me, so I had to play around/research a bit more.)
# uname -r. If you see the letters
PAE, then you’ll need to follow the rest of these steps. If you don’t see
PAE, you should be fine.
- If so, make sure your kernel is up to date with
# yum update kernel-PAE. After this, restart.
- Instead of the
kernel-develpackage, you’ll need to install
kernel-PAE-devel. That makes the second line of the example above:
# yum install kernel-headers kernel-PAE-devel gcc
- If you’d already installed the
kernel-develpackage, you may want to remove it:
# yum remove kernel-develas it can confuse things.
- Then, everything else should be the same.