VirtualBox 4.3.26 on Fedora 21/20, CentOS/RHEL 7.1/6.6/5.11

virtualbox-logo-smallOracle VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. VirtualBox is a general-purpose full virtualizer for x86 hardware. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software.

VirtualBox supports a large number of guest operating systems:

  • Windows 3.x
  • Windows NT 4.0
  • Windows 2000
  • Windows XP
  • Windows Server 2003
  • Windows Vista
  • Windows 7
  • Windows 8
  • Windows 8.1
  • DOS
  • Linux (2.4, 2.6, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11)
  • Solaris
  • OpenSolaris
  • OpenBSD

This guide shows howto install VirtualBox 4.3 (currently 4.3.26) on Fedora 21/20/19/18/17, CentOS 7.1/6.6/5.11, Red Hat (RHEL) 7.1/6.6/5.11. This guide uses Virtual Box own yum repositories.

Note: Fedora 16 users can install VirtualBox 4.2, Fedora 15/14 users can install VirtualBox 4.1, Fedora 13 users can install VirtualBox 4.0 and Fedora 12 users can install VirtualBox 3.2.

1. Change to root User

2. Install Fedora or RHEL Repo Files

3. Update latest packages and check your kernel version

Update packages

Check that that you are running latest installed kernel version
Output of following commands version numbers should match:

Note: If you got kernel update or run older kernel than newest installed then reboot:

4. Install following dependency packages

CentOS 7/6/5 and Red Hat (RHEL) 7/6/5 needs EPEL repository, install it with following command:

5. Install VirtualBox Latest Version 4.3 (currently 4.3.22)

This command create automatically vboxusers group and VirtualBox user must be member of that group.
This command also build needed kernel modules.

Rebuild kernel modules with following command:

6. Add VirtualBox User(s) to vboxusers Group

Replace user_name with your own user name or some another real user name.

7. Start VirtualBox

Use launcher from menu or simply run:


If you have problems with KERN_DIR parameter or your kernel directory is not automatically detected then set KERN_DIR environment variable manually, using following method:

Check also:

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

Share this post


  1. Virtualbox only run as root
    But can’t run as user.

    Message :

    Failed to create the VirtualBox COM object.

    The application will now terminate.

    Callee RC: NS_BASE_STREAM_WOULD_BLOCK (0x80470007)

    • Hi Ruben,

      Could you first change normal user and post output of following commnand:

  2. Hi,
    I’ve upgraded my system to Fedora 21, and I try to install Virtualbox using the method above, but it doesn’t work :(
    I am unable to use VBox on F21 which is a very bad thing :(
    Could you help me how to install VBox on F21?

    • Hi VChris,

      You could use Fedora 20 VirtualBox on Fedora 21, but you have to modify your /etc/yum.repos.d/virtualbox.repo file looks like following:

      I use this on Fedora Rawhide (Fedora 22), so it should work also on Fedora 21. I update this guide, when official VirtualBox Fedora 21 exists.

      Please let me know do you get it working or if you have some problems.

      • Thanks for your reply, it works :)

        • Excellent! You are welcome! :)

      • I don’t feel comfortable using the “old” 20 link for a 21 installation. Can’t this lead to dependency conflicts or other unwanted behavior? I guess the guys at Oracle will soon provide a 21 repo. I hope…

        • Hi Nick,

          Actually VirtualBox packages looks exactly same for Fedora 18, Fedora 19 and Fedora 20 (I guess that F19 and F20 are just symlinks to F18 builds). I didn’t checked md5sums, but I have personally used just latest available version on rawhide very long time without any problems.

          Of course this might lead some problems, but if you need VirtualBox now, then this one way to install it. And when Oracle releases Fedora 21 repo, then you could change repo file back to normal without hardcoded parts.

          But I hope too that Oracle releases Fedora 21 repo soon.

        • Hi Nick and VChris,

          Now VirtualBox Fedora 21 repo is available. :) I updated this guide too.

          • Awesome, thanks for the info! :)

          • Thanks for the good news :)

  3. Hi,

    I followed the steps without any problem, but when I try to run VirtualBox I get a message saying

    Failed to create the VirtualBox COM object
    The application will now terminate

    Any ideas on how to fix this?

    Thanks a lot for your help

    • Hi Franz,

      This sounds like a problem with permissions.

      Did you add your user to vboxusers group on step 6.?

      Could you try to start VirtualBox from command line to see more information about the error?

      • Hi Jr,

        thanks foor your reply. In fact it was a permission issue with the /tmp folder and some leftovers in the /tmp folders from a previous VB installation which I removed. All is working now.

        drwxrwxrwt. 11 root root 20480 Jan 16 10:14 tmp

        Thank You

        • Thanks a lot! I was experiencing the same issue, blowing away the contents of /tmp/.vbox* sorted the issue out for me

    • Hi Anon,

      Did you installed dependencies on step 4.?

      Following packages should be installed:

      So kernel-devel package should be also installed after step 4.

  4. Hey, all went very smooth, but VB crash as click as soon as selection option :(

    • Hi Gurpreet,

      Could you start VirtualBox from command line and check output when it crash.

      Could you also post output of following command:

  5. Thanks very much for this guide. It worked fine to install VB, but I’m having trouble accessing a physical drive, using the instructions I found here. It’s NTFS, and when I try to load the vmdk file for it, I get a permissions problem.

    Failed to open the hard disk file /home/USER_NAME/VirtualBox VMs/Windows 8.1/VirtualBox\ VMs\ Windows\ 8.1.vmdk.

    Permission problem accessing the file for the medium ‘/home/pat/VirtualBox VMs/Windows 8.1/VirtualBox\ VMs\ Windows\ 8.1.vmdk’ (VERR_ACCESS_DENIED).

    Result Code: VBOX_E_FILE_ERROR (0x80BB0004)
    Component: Medium
    Interface: IMedium {05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac}
    Callee: IVirtualBox {fafa4e17-1ee2-4905-a10e-fe7c18bf5554}
    Callee RC: VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)

    I’m running VB as a user, but a user doesn’t have permission to do a disk mount (also, the drive itself, when I mount it as root, shows it owned and grouped as root, probably because it’s NTFS). Any suggestions?

    • Hi Rand Simberg,

      You could try add your user to disk group:

      • That did the trick, thanks!

        • OK, I’ve set it up on a different machine, and am trying to access a physical SSD. I’m getting the same error again:

          Failed to open the hard disk file /home/simberg/VirtualBox VMs/Ubuntu.vmdk.

          Permission problem accessing the file for the medium ‘/home/simberg/VirtualBox VMs/Ubuntu.vmdk’ (VERR_ACCESS_DENIED).

          Result Code: VBOX_E_FILE_ERROR (0x80BB0004)
          Component: Medium
          Interface: IMedium {05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac}
          Callee: IVirtualBox {fafa4e17-1ee2-4905-a10e-fe7c18bf5554}
          Callee RC: VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)

          I’ve added myself to the “disk” group, but no joy this time.

  6. Hi, im using: CentOS Linux release 7.0.1406 (Core).
    64 bits

    I’m getting:

    Trying to register the VirtualBox kernel modules using DKMSError! echo
    Your kernel headers for kernel 3.10.23-xxxx-std-ipv6-64 cannot be found at
    /lib/modules/3.10.23-xxxx-std-ipv6-64/build or /lib/modules/3.10.23-xxxx-std-ipv6-64/source.
    (Failed, trying without DKMS)
    Recompiling VirtualBox kernel modules [FAILED]
    (Look at /var/log/vbox-install.log to find out what went wrong)


    Uninstalling modules from DKMS
    removing old DKMS module vboxhost version 4.3.26

    Deleting module version: 4.3.26
    completely from the DKMS tree.
    Attempting to install using DKMS

    Creating symlink /var/lib/dkms/vboxhost/4.3.26/source ->

    DKMS: add completed.
    Failed to install using DKMS, attempting to install without
    Makefile:183: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.

    I’ve already did:

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

    ## Export KERN_DIR ##
    export KERN_DIR

    But it isn’t worked =(


    rpm -qa kernel |sort -V |tail -n 1 = kernel-3.10.0-123.20.1.el7.x86_64

    uname -r = 3.10.23-xxxx-std-ipv6-64

    It isn’t match :P

    I’ve already used reboot

    But the same.

    How to fix it, please?

    Thank you!

    • Hi Diego,

      Are you working on some virtual environment?

      Looks like that you are running kernel 3.10.23-xxxx-std-ipv6-64 and your installed kernel packages are kernel-3.10.0-123.20.1.

      So you need 3.10.23-xxxx-std-ipv6-64 kernel-devel and kernel-headers to get it working.

      • Hi!

        You are right!

        My dedicated hosts install a custom kernel (3.10.23-xxxx-std-ipv6-64) =P That cannot be found by yum.

        So i had to edit my grub2 conf to start the centos with the right original kernel (kernel-3.10.0-123.20.1.el7.x86_64)

        I correct this error and get another: Port forward doesn’t works =P I tried to access apache in vm from internet but its not worked =(

        Btw, thank you very much for your guide and help :D

  7. Just a tip I was having issues installing this on Fedora 21 where it failed on the ‘vboxdrv setup’ step

    [root@dev]# /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[ OK ]
    Starting VirtualBox kernel modules [FAILED]
    (modprobe vboxdrv failed. Please use ‘dmesg’ to find out why)

    dmesg had nothing useful in it.

    Turns out it was secure boot in the BIOS which had to be turned off for the above command to work.

    This can be done by entering the BIOS when booting the computer. Go to the “security” tab and modify the secure boot status from “enabled” to “disabled”.

    Then it all works like a charm. Thanks for the howto it got me most of the way.

    • This has been kicking my butt…. Thank you. Secure boot disabled worked like a charm.

  8. Never mind, I figure out the problem. I changed ownership of the device to the user, and it worked.



  1. Howto Install VirtualBox (with yum) on Fedora 12, CentOS 5.4, Red … | Just linux! - [...] Go here to read the rest:  Howto Install VirtualBox (with yum) on Fedora 12, CentOS 5.4, Red … [...]
  2. Upgrade to Fedora 13 from Fedora 12 with Preupgrade | if not true then false - [...] 10 on Fedora 13Install Sun Java (JDK, JRE) on Fedora 13Install Adobe AIR 1.5 and 2 on Fedora 13Install …
  3. Fedora NetInstall (Net Install) with gPXE and BFO ( | if not true then false - [...] on Fedora 13Install Adobe AIR 1.5 and 2 on Fedora 13Install Adobe (Acrobat PDF) Reader on Fedora 13Install VirtualBox …
  4. Install VirtualBox Guest Additions on Fedora 13, CentOS 5.5, Red Hat (RHEL) 6 | If Not True Then False - [...] 6. Reboot guest systemrebootThen VirtualBox Guest Additions install is ready.Check also:Install VirtualBox (with yum) on Fedora, CentOS, Red Hat …
  5. CentOS 5.5 Netinstall – Network Installation | If Not True Then False - [...] 5.5Install Sun/Oracle Java (JDK, JRE) 6 on CentOS 5.5Install Adobe AIR 1.5 and 2 on CentOS 5.5Install VirtualBox (with …
  6. Como instalar o VirtualBox no Fedora « - [...] if !1 0 Compartilhe: fedora, linux, máquina virtual, virtualbox, [...]
  7. Delicious Bookmarks for March 22nd through March 23rd « Lâmôlabs - [...] Install VirtualBox 4.0.4 on Fedora 14/13, CentOS/Red Hat (RHEL) 5.5/6 – March 22nd ( tags: virtualbox fedora centos …
  8. Install VirtualBox 4.0.4 on Fedora 14/13, CentOS/Red Hat (RHEL) 5.5/6 « Записки Миханика. - [...] Install VirtualBox 4.0.4 on Fedora 14/13, CentOS/Red Hat (RHEL) 5.5/6. Рубрика: C других сайтов, Linux, Новости …
  9. How To Install VirtualBox In Fedora | JF Agno Freelance Web Consultant and Web Developer in Davao Philippines - [...] Thats it simple right here is the original source click here [...]
  10. Installing VirtualBox on our Linux Clients » CS SysAdmin - [...] Reference: [...]

Submit 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 class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">