VirtualBox 5.0 on Fedora 22/21, CentOS/RHEL 7.1/6.7/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 5.0 (currently 5.0.6) on Fedora 22/21/20/19/18, CentOS 7.1/6.7/5.11, Red Hat (RHEL) 7.1/6.7/5.11. This guide uses Virtual Box own yum repositories.

Note: Fedora 17 users can install VirtualBox 4.3, 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 5.0 (currently 5.0.0)

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. Thank you very much, detailed instructions and good explanation. I didn’t have any problem and all run as it was expected.

    • Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
      this error came

      • Hello sajan,

        Try following:

  2. On Fedora 22:

    No package kernel-PAE-devel available.
    Error: no package matched: kernel-PAE-devel

    • Hi KNERD,

      Are you using 32-bit system and PAE kernel?

      Could you post output of following commands:

      • The issue was Fedora was by default loading the debug kernel.

  3. Stopping VirtualBox kernel modules [ OK ]
    Uninstalling old VirtualBox DKMS kernel modulesError! There are no instances of module: vboxhost
    5.0.4 located in the DKMS tree.
    [ 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)

    help guys i’m new to linux

  4. Dont forget to switch back to non-root user before running the VirtualBox command, otherwise you might see a bunch of nasty error messages

    Thanks for the detailed write up, and for updating it every time there is a new version of fedora!



  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 *