How To Set up VirtualBox on CentOS 7

VirtualBox is an open supply cross-platform virtualization software program which lets you run a number of visitor working methods (digital machines) concurrently.

On this tutorial, we are going to present you find out how to set up VirtualBox from the Oracle repositories on CentOS 7 methods.


Earlier than persevering with with this tutorial, be sure you are logged in as a consumer with sudo privileges.

Putting in VirtualBox from Oracle repositories

Observe the steps beneath to put in the VirtualBox in your CentOS 7 machine:

  1. Begin by downloading the construct instruments crucial for compiling the vboxdrv kernel module:

    sudo yum set up kernel-devel kernel-headers make patch gcc

  2. Obtain the Oracle Linux repo file to /and many others/yum.repos.d listing utilizing the next wget command:

    sudo wget -P /and many others/yum.repos.d

  3. Set up the most recent model of VirtualBox 5.2.x by typing:

    sudo yum set up VirtualBox-5.2

    Throughout the set up, you may be prompted to import repository the GPG key. Sort y and hit Enter. As soon as the set up is full you will note the next output:

    Creating group ‘vboxusers’. VM customers have to be member of that group!

    Verifying : VirtualBox-5.2-5.2.20_125813_el7-1.x86_64

    Put in:
    VirtualBox-5.2.x86_64 0:5.2.20_125813_el7-1

  4. To confirm that your VirtualBox set up was profitable, run the next command which can test the standing of the vboxdrv service.

    The output ought to look one thing like this indicating that the service is enabled and energetic :

    ‚óŹ vboxdrv.service – VirtualBox Linux kernel module
    Loaded: loaded (/usr/lib/virtualbox/; enabled; vendor preset: disabled)
    Lively: energetic (exited) since Thu 2018-10-25 21:31:52 UTC; 6s in the past

Putting in VirtualBox Extension Pack

The VirtualBox Extension Pack gives a number of helpful functionalities for visitor machines equivalent to digital USB 2.Zero and three.Zero gadgets, help for RDP, photographs encryption and extra.

On the time of writing this text, the most recent model of VirtualBox is 5.2.20. Earlier than downloading the extension pack utilizing the command beneath you need to test the VirtualBox obtain web page to see if a more moderen model is out there.

Obtain the extension pack file by typing:


When the obtain is accomplished import the extension pack utilizing the next command:

sudo VBoxManage extpack set up Oracle_VM_VirtualBox_Extension_Pack-5.2.20.vbox-extpack

You’ll be introduced with the Oracle license and prompted to simply accept the phrases and situations.

Do you agree to those license phrases and situations (y/n)?

Sort y and hit Enter. As soon as the set up is accomplished you will note the next output:

Efficiently put in “Oracle VM VirtualBox Extension Pack”.

Beginning VirtualBox

Now that you’ve VirtualBox put in in your CentOS system you can begin it both from the command line by typing VirtualBox or by clicking on the VirtualBox icon (Purposes -> System Instruments -> Oracle VM VirtualBox).

When the VirtualBox is began for the primary time, a window like the next ought to seem:


You’ve got discovered find out how to set up VirtualBox in your CentOS 7 machine. Now you can set up your first Home windows or Linux visitor machine. To seek out extra details about VirtualBox go to the official VirtualBox documentation web page.

When you’ve got any query, please go away a remark beneath.


Germany Devoted Server

Leave a Reply