VirtualBox Guest Additions on Fedora 22/21, CentOS/RHEL 7.1/6.7/5.11

virtualbox-logo-smallThis is guide, howto install Oracle VirtualBox Guest Additions on Fedora, CentOS and Red Hat (RHEL). This guide should work with Fedora 22/21/20/19/18/17/16/15/14/13/12, CentOS 7.1/6.7/5.11, Red Hat (RHEL) 7.1/6.7/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

2. Make sure that you are running latest kernel

Update virtual machine kernel and reboot

3. Mount VirtualBox Guest Additions

Click Devices > Install Guest Additions… on VirtualBox
VirtualBox Install Guest Additions

Mount VirtualBox Guest Additions device

4. Install following packages

On CentOS/Red Hat (RHEL) 7/6/5, EPEL repo is needed

Install following packages

If you have CentOS/RHEL 6.7 then check this comment. You need older kernel.

5. Add KERN_DIR environment variable

6. Install Guest Additions

Output looks like following:

7. Reboot guest system

Then VirtualBox Guest Additions install is ready.

Check also:

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

Share this post


  1. Hi, I’m having issues installing guest additions on my Fedora 23 virtual machine. I am able to run ./ but I get the following error message:

    “Warning: unsupported pre-release version of X.Org Server installed. Not installing the X.Org drivers”

    Everything else seems to work well, but when I reboot nothing has changed. The max resolution I can get is 1024 x 768. My host machine is a Surface Book (3,000 x 2,000 resolution) so the VM is way too small.

    If you could offer any tips, I’d really appreciate it. Thank you.

    • Hi Pamela,

      You can downgrade Xorg back to 1.17 using following “command” (copy+paste all rows at once as root):

      I wrote this command for users who want to install nVidia drivers on Fedora 23, but should also work with VirtualBox Guest Additions. Add also exclude=xorg-x11* to /etc/dnf/dnf.conf like:

      Then run ./ again.

  2. Hi JR, I can’t see the comment that you posted in response to my concerns about the older version of xorg, but I got it in my email and I just want to say – it works! Finally! My VM is usable at last. Thank you for providing continuous support to your readers.

    • Hi Pamela,

      You are welcome and nice to hear that you got it working!

      It’s caused by the cache that you couldn’t see my comment. If you have cookie which tells to the web server that you are commented something, then you should see live version otherwise you see cached version.



  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 - [...] 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 …
  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: [...]

Submit a Comment

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