VirtualBox Guest Additions on Fedora 18/17, CentOS/RHEL 6.4/5.9

This is guide, howto install Oracle VirtualBox Guest Additions on Fedora, CentOS and Red Hat (RHEL). This guide should work with Fedora 18/17/16/15/14/13/12, CentOS 6.4/6.3/6.2/6.1/6.0/5.9, Red Hat (RHEL) 6.4/6.3/6.2/6.1/6/5.9.

VirtualBox Guest Additions is special software that can be installed inside Linux virtual machines to improve performance and make integration much more seamless. Among the features provided by these VirtualBox Guest Additions are mouse pointer integration and arbitrary screen solutions (e.g. by resizing the guest window).

Install VirtualBox Guest Additions on Fedora, CentOS and Red Hat (RHEL)

1. Change root user

su -
## OR ##
sudo -i

2. Mount VirtualBox Guest Additions

Click Devices > Install Guest Additions… on VirtualBox

Mount VirtualBox Guest Additions device

mkdir /media/VirtualBoxGuestAdditions
mount -r /dev/cdrom /media/VirtualBoxGuestAdditions

3. Make sure that you are running latest kernel

Update virtual machine kernel and reboot

yum update kernel*
reboot

4. Install following packages

yum install gcc kernel-devel kernel-headers dkms make bzip2

5. Add KERN_DIR environment variable

## Current running kernel on Fedora, CentOS 6 and Red Hat (RHEL) 6 ##
KERN_DIR=/usr/src/kernels/`uname -r`
 
## Current running kernel on CentOS 5 and Red Hat (RHEL) 5 ##
KERN_DIR=/usr/src/kernels/`uname -r`-`uname -m`
 
## Fedora example ##
KERN_DIR=/usr/src/kernels/2.6.33.5-124.fc13.i686
 
## CentOS and Red Hat (RHEL) example ##
KERN_DIR=/usr/src/kernels/2.6.18-194.11.1.el5-x86_64
 
## Export KERN_DIR ##
export KERN_DIR

6. Install Guest Additions

cd /media/VirtualBoxGuestAdditions
 
# 32-bit and 64-bit systems run following
./VBoxLinuxAdditions.run

Output looks like following:

[root@fedora VBoxGuestAdditions]# ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.1.6 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing installed version 4.1.6 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules           [  OK  ]
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module                   [  OK  ]
Building the shared folder support module                  [  OK  ]
Building the OpenGL support module                         [  OK  ]
Doing non-kernel setup of the Guest Additions              [  OK  ]
You should restart your guest to make sure the new modules are actually used

Installing the Window System drivers
Installing X.Org Server 1.11 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  ]

7. Reboot guest system

reboot

Then VirtualBox Guest Additions install is ready.

Check also:

Install VirtualBox (with yum) on Fedora, CentOS, Red Hat (RHEL)

Follow If Not True Then False Updates!

98 Comments

  1. One tweak to this :
    The kernel headers on an ia32 Centos install have a trailing ‘ -i686′

    thus KERN_DIR=/usr/src/kernels/`uname -r`-i686

    • Hi telnet,

      Excellent addition. I added your tweak to this manual, but I used following method:

      KERN_DIR=/usr/src/kernels/`uname -r`-`uname -m`

      Now this KERN_DIR with kernel version and 32-bit (i386/i686) and 64-bit (x86_64) architecture should work on CenOS and Red Hat (RHEL) without problems.

      • please help me, i gave d command “uname -r” “2.6.18-308.4.1.el5.centos.plusxen”

        how can i add kernel ??
        i gave d command of “KERN_DIR=/usr/src/kernels/2.6.18-308.4.1.el5.centos.plusxen”

        is it correct or not.. ??
        if correct still i’m having problem

        Please help me

        Thanks..

  2. JR,
    In my experience with this tutorial (thank you, btw) I spent an upwards of five hours toying with this. I am running the newest version of VirtualBox (not sure which one) and Centos 5.5. After a lot of persistence, I found that the only way I could get this method to work was to change the permissions of the VBoxLinuxAdditions-x86.run file! Like a madman I kept trying and trying, so after eliciting [ls -l] I saw that even as root, I did not have permissions to execute it! I elicted the command [chmod +x VBoxLinuxAdditions-x86] as root and executed after your step #4 above to get this to work. I hope this helps somebody else. Lucky for me I had some free time today and didn’t give up. Thanks for writing this!

  3. Thank you very much, it worked like charm.

  4. Works great. Really appreciate your help.

  5. Thanks for the guide, I’m having an issue with the guest additions though.
    My host machine is 32bit Win7 and the guest machine I’m installing is CentOS 5.5 32bit.
    It seems to install fine and so do the guest additions, and the resolution resizes fine which is great.
    Unfortunately the cursor on the CentOS is displayed as 2 cursors with the left being the active one. It’s a weird double image kind of thing.
    Not a show stopper, just very annoying.

    When installing the guest additions everything installed [ OK ] but it said that openGL and 3d hardware acceleration were not supported and that I’d have to update the linux kernel if I wanted support. I couldn’t care less, but perhaps that’s related to the double cursor?

    Aside: I’m fairly new to all things linux.

    • 3d support isn’t kernel update related like I thought:
      http://www.virtualbox.org/manual/ch04.html#guestadd-3d
      and it doesn’t fix the odd double pointer issue.

      I played about for a while trying to install the VBoxAdditions with the slightly different method outlined here:
      http://www.windofkeltia.com/notes/sunvbox.html#kernel
      Amounted to the same.
      I’m confused though, my kernel sourc dir is:
      /usr/src/kernels/2.6.18-194.17.4.el5-i686/
      which is listed as Fedora in your example, even though it’s CentOS 5.5 I’m installing.
      Like I said, I’m a linux noob so I’m sure the answer is obvious.

      My host machine is a windows box, nvidia graphics card and drivers.
      I have a dual monitor setup, both rotated 90 degrees so they’re vertical.
      If I flip a monitor back to horizontal and move the guest VM window to that machine the surplus pointer disappears.
      Sigh.

      • Hi justsomeguy,

        Sounds weird problem, but your kernel source dir looks just OK. You have 32-bit CentOS kernel source dir.

        It is a little unclear, did you get that problem fixed?

        If not then you maybe could take screenshot about that problem and post it to some image service, like imageshack?

        • annoying workaround:
          - When the monitor is in normal horizontal mode, the mouse pointer is perfectly normal.
          - If I flip the monitor in the windows host OS using nvidia control panel (and actually flipping the monitor 90 degrees clockwise), centOS adjusts to the new screen size [1200x1600], and the cursor goes back to being displayed as two cursors one beside the other.

          Sorry if I’m not being clear.
          I tried to take a screenshot but centOS removes the mouse pointer from screenshots!

          • @justsomeguy
            Are you fix problem with two (double) cursors?

          • To fix the two cursors problem you have to disable the mouse integration !

            • I fixed the double cursor issue by turning on all the acceleration option for the VM in the GUI on the host. I turned on Enable PAE/NX and Enable VT-x/AMD-V and Enable Nested Paging. Not sure which fixed it, but it went away next boot.

  6. Thank you this worked perfectly for me with one tweak. I had to run VBoxLinuxAdditions-amd64.run like this: sh ./VBoxLinuxAdditions-amd64.run because the file system was mounted read-only.

  7. Hi JR,

    excelent tutorial. After linux guest additions on centos 5.5 went fine, i try to switch from GUI (Ctrl+Alt+F7) and CLI (Ctrl+Alt+F1-F6), but screen is black when i switch again from CLI to GUI. Do you have some work arround for this? Thanks.

    • Hi maronio,

      You could use Hostkey+F1-F7 to change from CLI to GUI and vice versa. Hostkey is normally Right Ctrl button.

  8. Thank you so for this tutorial!!! Really Really Helpful!!!!

    I have a suggestion, i.e IF you could do a howto on web interface for VirtualBox that would be great, I have tried it but unsuccessful… I am using VB 3.2.12 on Linux Mint 10..

  9. Very good! It’s works fine! Tks

  10. [root@localhost Desktop]# sh ./VBoxLinuxAdditions.run
    Verifying archive integrity… All good.
    Uncompressing VirtualBox 4.1.4 Guest Additions for Linux………
    VirtualBox Guest Additions installer
    Removing installed version 4.1.4 of VirtualBox Guest Additions…
    Removing existing VirtualBox DKMS kernel modules [ OK ]
    Removing existing VirtualBox non-DKMS kernel modules [ OK ]
    Building the VirtualBox Guest Additions kernel modules
    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-2.6.32-71.el6.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.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 ]
    [root@localhost Desktop]#

    please help me on this

    • Hi suresh,

      Did you installed gcc, kernel-devel and kernel-headers packages with following command:

      yum install gcc kernel-devel kernel-headers
    • I’ve had the same problem although I had already installed gcc, kernel-devel and kernel-headers packages.

      When I looked at /var/log/vboxadd-install.log file it said that KERN_DIR did not point to a directory.

      I solved it with the command (and then rebooting the vm):

      yum install kernel*

      which I saw in this discussion:

      http://www.oraclenerd.com/2011/03/oel-6-virtualbox-guest-additions.html

      It installed other dependencies needed for the kernel.

      This warning that you have I also had and it disappeared after running the above command.

      “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-2.6.32-71.el6.i686″

      Then VBoxGUestAdditions installation worked properly.

      I hope this helps!!!

      • Hi Tarciso,

        This is normal problem if you are running old kernel on virtual machine and thanks for note I add this to this guide too, because someone else might also run old kernel… :)

      • Tarciso you are my hero, thanks so much for this tip!

  11. On a CentOs 6 (clean install) machine I had to also install make and perl before running the ./VBoxLinuxAdditions.run script.

    Thanks for these instructions.

    Cheers!

  12. In Centos 6.0 works great, thanks! :-)

  13. hi! where should i install the Guest Addition? on the guest machine? do i have to type all of those code on the guest machine? what if i use windows on the guest machine?

    • Hi renegado,

      This is method, howto install VirtualBox Guest Additions on Fedora 16/15, CentOS/RHEL 6/5.7. So this is not Windows guest method.

      On Windows click “Install Guest Additions…” and if you have “autostart” enabled then installer should start and if it’s not starting then find VBoxWindowsAdditions.exe from VirtualBox CD and run it. Then you should see installer/wizard… :)

  14. You legend, ive been looking for hours to guest additions to play ball, this worked like a charm

  15. Thanks!!!

  16. There is a bug with the Centos 6.2 OpenGL part. See

    http://wiki.centos.org/HowTos/Virtualization/VirtualBox/CentOSguest

    for fix.

    • Thanks! This helped resolve the OpenGL [failed] problem.

  17. Hi, Telnet,

    I’m using VB 4.1.8 and Fedora 16 as my guest system,

    I was following below steps trying to install Guest Addition on my guest system, but failed as described below.

    1. Configured the RPMfusion repos for my guest system:

    yum --nogpgcheck install http://rpm.livna.org/livna-release.rpm http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

    2. Successfully to “yum update kernel” successfully, until this command report “Nothing marked for update”.

    3. Reboot guest system.

    4. Tried to run “yum install gcc kernel-devel kernel-headers”, however, this step ended in “Nothing to update” too. But my guest system is empty at folder /usr/src/kernels.

    5. Then I ignored the result in step 4 and proceeded with installing Guest Additions by invoking command: sh ./VBoxLinuxAdditions.run
    Everything runs fine except it fails to build the main Guest Additions module

    Building the main Guest Additions module [FAILED]
    (Look at /var/log/vboxadd-install.log to find out what went wrong)

    And here is the content in the vboxadd-install.log

    /tmp/vbox.0/Makefile.include.header:94: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.

    So I think the main problem with my environment is why the /usr/src/kernels folder is empty. Is that right? To solve my problem, do you think I should re-install the guest OS?

    • Hi Winnie,

      Could you post output of following commands:

      rpm -qa gcc kernel\* |sort
       
      ls -la /usr/src/kernels
  18. I am running Fedora 16 64 bit. I have this output when I run /etc/init.d/vboxdrv setup:
    Stopping VirtualBox kernel modules [ OK ]
    Uninstalling old VirtualBox DKMS kernel modules [ OK ]
    Trying to register the VirtualBox kernel modules using DKMS[FAILED]
    (Failed, trying without DKMS)
    Recompiling VirtualBox kernel modules [FAILED]

    Now, folllowing some of the directions from the discussion with Victor, I did run
    KERN_DIR=/usr/src/kernels/`uname -r`

    export KERN_DIR

    I wanted to link the directory, but discovered I have nothing in /usr/src/kernels, it is an empty directory.
    Running # rpm -qa gcc kernel\* |sort ,

    gave me this:

    gcc-4.6.2-1.fc16.x86_64
    kernel-3.2.1-3.fc16.x86_64
    kernel-3.2.5-3.fc16.x86_64
    kernel-3.2.6-3.fc16.x86_64
    kernel-headers-3.2.6-3.fc16.x86_64

    # ls -la /usr/src/kernels gave me:

    total 8
    drwxr-xr-x. 2 root root 4096 Jul 29 2011 .
    drwxr-xr-x. 4 root root 4096 Feb 15 19:29 ..

    I understand that I need to run a symbolic link, but the thing is that I don’t know where to point it to? Can you help me on this? Thanks.

    • Hi RW,

      Are you installing VirtualBox guest additions on Fedora 16 64-bit guest or installing VirtualBox on Fedora 16 64-bit host?

    • I think I was having a similar problem and I solved it by upgrading from Virtual Box 4.1.1 to Virtual Box 4.2.6.

  19. Hello JR,
    Thank you a lot for this excellent tutorial!
    Helped me installing VirtualBox Guest Additions on Fedora 14 – works fine now.
    Great work!
    Cheers!

  20. Hi JR,
    Thanks, your solution worked at the first go..!! super :)

  21. Great stuff. Though i faced the error described above
    Building the VirtualBox Guest Additions kernel modules
    The make utility was not found. If the following module compilation fails then
    this could be the reason and you should try installing it.

    Building the main Guest Additions module [FAILED]
    (Look at /var/log/vboxadd-install.log to find out what went wrong)

    I installed make – yum install make

    and then re ran ./VBoxLinuxAdditions.run
    Worked like a charm!!!

    my guest os is Centos 6.2 – 2.6.32-220.13.1.el6.i686

    Thanks a heap JR – Not being able to use mouse was driving me crazy!

  22. /usr/src/vboxguest-4.1.12/vboxguest/build_in_tmp: line 55: make: command not found

    Anyone else getting this error on centos 6.2?

    Thanks!

    • Hi Spence,

      You probably dont the “make” utility

      Try installing it – yum install make

      and then try installing the guest additions

  23. @RR
    Indeed,the ‘make’ was the missing piece of puzzle.
    Thank you man!

    Deniz

  24. Good to hear…. sometimes we ignore the most obvious!

  25. Thank you very much my friend!

    Just had to install theses packages to make it work :

    yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-uek-headers-2.6.32-300.11.1.el5uek.x86_64

    Great tuto!

  26. thanks mate. it works for fedora with kernel 3.4.0-1.fc17.x86_64

  27. I followed your method precisely, but get
    Building the shared folder support module [ Failed ]

    Virtualbox 4.1.4
    Host : Windows 7 64-bit Home

    /var/log/vboxadd-install.log
    ERROR : Kernel configuration is invalid

    About to give up, and stick with Slackware and Ubuntu.

    • Install dkms, that help me with that, it was driving me crazy.
      sudo yum install dkms

  28. excellent!!!
    This worked for me :)

  29. Works great on Centos 5.7 /5.8.
    Thank you!

  30. Excellent! This worked perfectly for me on Fedora Core 17. Thanks!

  31. Thanks for this, it worked as expected.

  32. Thank you, it almost worked for me. Just had to set
    KERN_DIR=/usr/src/kernels/
    after all the installs
    CentoOS 6.2

  33. thanks, this article was very helpful. worked.

  34. THANK YOU VERY MUCH
    IT WORKED SUCCESFULLY !!

  35. THANK YOU

  36. I just dont know what to do anymore..i have followed you instructions, installed ALL the necessary packages, updated yum, updated the whole system… I continue to get the same stupid error:

    “echo ” ERROR: Kernel configuration is invalid.”; \
    echo ” include/generated/autoconf.h or include/config/auto.conf are missing.”;\
    echo ” Run ‘make oldconfig && make prepare’ on kernel src to fix it.”; \

    What does this mean? Make oldconfig and make prepare? I tried to run these commands as root in the kernels directory and nothing happened. What am I supposed to do? Is Linux really that difficult to understand, or am I just doing things wrong?

    • Hi Help,

      When do you get this error?
      You seem to be missing something.

      what does the logs say? /var/log/vboxadd-install.log

      Below is a link to a similar issue and fix
      https://forums.virtualbox.org/viewtopic.php?f=6&t=48595

      Linux isnt hard.
      It gives the user control of everything. So It takes patience to understand all the details.
      Eventually you will feel that you can pretty much change anything on the system!

      • Hi RoadRunner: :)

        Thanks for the reply. Sorry for my frustration, it was just that I really wanted to dive into Fedora and see what it had to offer. I did some research on virtualbox.org and found that the problem was caused by fedora kernel update (version 3.5) I repaired it by using the virtualbox guest editions 4.2 beta1 at http://download.virtualbox.org/virtualbox/4.2.0_BETA1/.

        Since then everything is working fine, except for seamless mode.. Whenever I activate it, I only see the windows desktop but not the fedora taskbar, which should be located at the top of the screen. I find this most strange, since it works flawlessly with CentOS 6.3. Is there something in the setting that I need to activate in order to see the taskbar?

        • Sorry for my bad typing. It is very late here in Germany, and I am tired.. I meant to say that I fixed it using Virtualbox guest additions 4.2 beta1. There was a discussion over the problem here: https://forums.virtualbox.org/viewtopic.php?f=3&t=50748

          I thought it best to describe the situation that I am having with seamless mode:

          My guest OS is windows server 2008. When I activate seamless mode in Virtualbox the fedora desktop completely disappears, leaving only the Windows desktop and the Virtualbox taskbar on the bottom of the screen. The Fedora taskbar that should be located at the top of the screen is not visible. The only time I see anything from Fedora in seamless mode is when I have a window open. However when I close that window I am unable to use Fedora again until I switch to a different mode (fullscreen for example).

          My question is if there is something in the settings that I must change, or is there anything extra that I must download in order to get Fedora fully integrated in seamless mode? Thanks for the response. :)

        • Sorry mate.

          I have no idea whether its a settings issue. Im not running virtualbox atm so I cannot test either.

  37. Thanks for this article. It was very helpful.

  38. Hi. I found yur ToDo.
    If i use Kernel 3.3.4-5 it is work.
    If i use Kernel 3.5.1-1 i beca a error

    “Building the main Guest Additions module [FAILED]

    What is wrong? It is a bug??

    Thanks for help.

    • Hi Branislav,

      Yes, it is bug. More info about this problem from here. Should be fixed on VirtualBox Guest Additions 4.2.0_Beta1 version.

  39. Thank to everyone: i had ALL the problems above til the bug mentioned last post.
    I solved with the new beta version 4.2.0 Beta 1 you can find here: https://forums.virtualbox.org/viewtopic.php?f=15&t=50763.
    bye

  40. A million thanks.
    It worked fine for an Oracle enterprise linux 2.6.39 as Guest on an Ubuntu 10.04 LTS as Host.

    • Hi JC,

      You are very welcome! Nice to hear that it worked with Oracle enterprise linux! :)

  41. Fedora 17 x86_64, worked first time. Great work!

  42. Thanks@! works like a charm!

  43. thank you! it helpful! I thought it won’t help, but it really did!

  44. JR,

    First off. Thank you for all your tutorials. I wish there was a way to pay your or compensate you, maybe just recommending your site to friends. But, please, accept my many thanks!

    New to linux, have used many of ur tutorials. This one made me stuck.

    My problem is from the beginning.
    When I input: mount -r /dev/cdrom /media/VirtualBoxGuestAdditions
    Sys output: mount: no medium found on /dev/sr0

    From here, I follow instructions to finish w/out visible errors until the end.
    I input: ./VBoxLinuxAdditions.run
    Sys output: -bash: ./VBoxLinuxAdditions.run: No such file or directory

    I don’t know what I am doing wrong, all kernel updates say:
    no packages marked for update or already installed and latest version

    please help (at your earliest convenience of course!) :)

    • Hi Zosimo,

      What happens when you click “Install Guest Additions…”?

      Does it mount automatically Virtual Box guest additions on your system?

  45. Hello,
    I have spent the better part of my night trying to install the Virtual Box Guest additions
    My issue was that the install could not find any flies related to kernels under /usr/src/kernels.
    The folder showed as empty.
    The issue was I could not view the files in that folder when logged in to the root account…
    When I logged out and logged back in as “user” then I could view the files and install Virtual Bx guest with no issues…..
    I hope this save someone some time!
    Can any one tell me why I could not view the files in /usr/src/kernels logged in as root?

    • Hi Net@this,

      This sounds interesting, could you post output of following command as normal user and root user:

      ls -la /usr/src/kernels

      Could you also post output of following commmand:

      rpm -qa kernel\* |sort
  46. Here is the output:

    [root@localhost ~]# ls -la /usr/src/kernels
    total 12
    drwxr-xr-x. 3 root root 4096 Nov 21 23:53 .
    drwxr-xr-x. 4 root root 4096 Nov 22 00:45 ..
    drwxr-xr-x. 22 root root 4096 Nov 22 00:45 2.6.32-279.14.1.el6.x86_64
    [root@localhost ~]# rpm -qa kernel\* |sort
    kernel-2.6.32-279.14.1.el6.x86_64
    kernel-2.6.32-279.el6.x86_64
    kernel-devel-2.6.32-279.14.1.el6.x86_64
    kernel-firmware-2.6.32-279.14.1.el6.noarch
    kernel-headers-2.6.32-279.14.1.el6.x86_64
    [root@localhost ~]#

    I’m not sure what I did but after getting the tools on CentOS 6.3 the files now show in the /user/src/kernels directory….
    this only happen after logging in as “USER” and installing the tools under that account

    The first time I ran this command “rpm -qa kernel\* |sort” before getting the tolls installed
    it only showed a total of 8 and not 12…

    this is day 3 of me “playing” with Linux so I’m a bit lost in all of this….

    • Your output looks just normal now. It’s hard to say why you get different output now, but normally you should see all files as root user.

  47. Thanks! Woks fine for me!

  48. Hi,

    This is a nice guide, thank you!
    But I am running into an issue at this step-

    ## Current running kernel on CentOS and Red Hat (RHEL) ##
    KERN_DIR=/usr/src/kernels/`uname -r`-`uname -m`

    I am trying to install Centos 6.3 on a Virtual Box.

    When I run the above command, I get-

    bash: -i686: command not found

    I saw one of the earlier comments and tried the above command with a ‘-i686′ at the end, but that gave the exact same error as well.

    I am stuck, and would really appreciate help!

    Thank you much and regards!

    • Hi Sumi,

      Could you post output of following commands:

      ls -la /usr/src/kernels/
       
      uname -a
  49. Hi JR,

    Thanks for your response. After my last post, I set KERN_DIR to point to 2.6.32-279.14.1.el6.i686 in usr/src/kernels. But I don’t know if that will cause any trouble. I haven’t used the virtualbox much since then. I am curious why it doesn’t like the path with the ” `uname” and stuff.

    Here are the outputs of the commands you asked me to run-

    [root@vmCentos sire]# ls -la /usr/src/kernels
    total 16
    drwxr-xr-x. 4 root root 4096 Dec 18 19:39 .
    drwxr-xr-x. 4 root root 4096 Dec 18 20:31 ..
    drwxr-xr-x. 22 root root 4096 Dec 18 20:31 2.6.32-279.14.1.el6.i686
    drwxr-xr-x. 22 root root 4096 Dec 18 16:55 2.6.32-279.el6.i686
    [root@vmCentos sire]# uname -a
    Linux vmCentos 2.6.32-279.14.1.el6.i686 #1 SMP Tue Nov 6 21:05:14 UTC 2012 i686 i686 i386 GNU/Linux

    Thanks and look forward to hearing from you!

    • Hi again Sumi,

      Yes you can use latest kernel path directly.

      What you get if you try following commands:

      echo /usr/src/kernels/`uname -r`
       
      echo /usr/src/kernels/`uname -r`-`uname -m`
  50. Package requirements also include bzip2 and make

    • Correction… requires dkms also… Tested on a minimal install. You should update your walkthrough.

      Package requirements also include bzip2 and make

      yum install gcc kernel-devel kernel-headers dkms make bzip2

      • Hi Kent,

        Thanks for this information! I updated this guide!

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackbacks/Pingbacks

  1. Install VirtualBox 3.2.8 on Fedora 13, CentOS 5.5, Red Hat (RHEL) 6 | If Not True Then False - [...] Groupusermod -a -G vboxusers user_nameStart VirtualBoxUse launcher or simply:VirtualBoxCheck also:Install VirtualBox Guest Additions on Fedora 13, CentOS 5.5, Red ...
  2. Инсталяция virtualbox 4 guest additions на centos 5. | Якши Гора - [...] Вот классная ссылка на статью о том как устанавливать virtualbox guest additions на centos 5: Install VirtualBox Guest Additions ...
  3. Install VirtualBox Guest Additions on Fedora 16/15, CentOS/RHEL 6/5.7 « Micro Tech Bytes - [...] http://www.if-not-true-then-false.com/2010/install-virtualbox-guest-additions-on-fedora-centos-red-h... Share this:TwitterFacebookLike this:LikeBe the first to like this post. [...]
  4. failed to install vbox addon on Fedora 17 - [...] guys, I'm trying to install virtualbox addon tools on Fedora 17. I'm using this guide http://www.if-not-true-then-false.co...-red-hat-rhel/ ...
  5. I am new in Linux OS, NEED HELP IN RED HAT 9 INTERNET CONNECTION WITH VMWARE 9 - [...] Since you also asked about virtualbox-guest-additions, follow this guide: http://www.if-not-true-then-false.co...-red-hat-rhel/ [...]