VirtualBox Guest Additions on Fedora 27/26, CentOS/RHEL 7.4/6.9/5.11 - Comment Page: 2

This is guide, howto install Oracle VirtualBox Guest Additions on Fedora, CentOS and Red Hat (RHEL). This guide should work with Fedora 27/26/25/24/23/22/21/20/19/18/17/16, CentOS 7.4/6.9/5.11, Red Hat (RHEL) 7.4/6.9/5.11. 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. Make sure...

258 comments on “VirtualBox Guest Additions on Fedora 27/26, CentOS/RHEL 7.4/6.9/5.11 - Comment Page: 2

1 2 3 4 11
  1. 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

    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 ./
    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?

  2. 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:


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

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

  4. 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 ./
    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!

  5. /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?


    • Hi Spence,

      You probably dont the “make” utility

      Try installing it – yum install make

      and then try installing the guest additions

  6. 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!

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

    Virtualbox 4.1.4
    Host : Windows 7 64-bit Home

    ERROR : Kernel configuration is invalid

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

1 2 3 4 11

Leave a Reply

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