May 6, 2010

How to Install VirtualBox Guest Additions in Fedora 12

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
# export KERN_DIR=/usr/src/kernels/2.6.31.9-174.fc12.x86_64
# cd /media/VBOXADDITIONS_3.1.2_56127
# ./VBoxLinuxAdditions-amd64.run

This time the kernel modules should compile. Then restart the system.

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.)

Run
# 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-devel package, 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-devel package, you may want to remove it:
# yum remove kernel-devel
as it can confuse things.
Then, everything else should be the same.

2 comments:

  1. Anonymous7/5/10 08:39

    죄송하지만...블로그에 쓰신 영어에 틀린 부분이 왜 이리 많습니까...?

    ReplyDelete
  2. 한글도 제대로 못하는데 영어라고 괜춘할리 있을까요 :)

    ReplyDelete