• Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate
TecNStuff
Menu
  • Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate

How to Install VirtualBox on CentOS 7

Written by Admin, Updated On July 31, 2019
centos, virtualbox
How to Install VirtualBox on CentOS 7

VirtualBox is an open source and free virtualization software which allows you to run multiple operating systems simultaneously. It’s also a cross-platform software which is available for Linux, Windows, and MacOS etc. The VirtualBox package is not also available in Debian repositories. So we will install through Oracle repositories. In this tutorial we are going to show you how to install VirtualBox on CentOS 7 machine.

Prerequisites#

Before you go ahead with tutorial, Make sure that you are logged in as a non-root user with sudo privileges.

Install VirtualBox from Oracle Repositories#

At the time of writing this article, the latest version of VirtualBox is 6.0.8. You should check the latest version of VirtualBox at VirtualBox Download page.

Perform the below steps to install VirtualBox from the Oracle repositories on your CentOS system:

At first, install the packages which are required to install VirtualBox on CentOS system:

sudo yum install kernel-devel kernel-headers make patch gcc

Next, add the Oracle Linux repository using the following below wget command:

sudo wget https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo -P /etc/yum.repos.d

Once the repository is enabled, install VirtualBox using below command:

sudo yum install virtualbox-6.0

Install VirtualBox Extension Pack#

You should install VirtualBox Extension Pack to get several useful features for guest machines. It will provides features such as virtual USB 2.0 and 3.0 devices, images encryption and support for RDP etc. Run the below command to download extension:

wget https://download.virtualbox.org/virtualbox/6.0.0/Oracle_VM_VirtualBox_Extension_Pack-6.0.8.vbox-extpack

Once the download completed import the extension package using VBoxManage command typing:

sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.0.8.vbox-extpack

It will show you Oracle license and ask to accept their terms and conditions.

Output
Do you agree to these license terms and conditions (y/n)?

Press y to continue, Once the installation is completed you will see the following output:

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".

Start VirtualBox#

Now that VirtualBox is installed on your CentOS system and ready to use. You can launch using terminal by typing virtualbox or you can by clicking on VirtualBox icon from (Applications -> System Tools -> Oracle VM VirtualBox).

You will show window as following on start up of VirtualBox.

centos launch virtualbox

Conclusion#

You have learned how to install VirtualBox on your CentOS 7 system. You also can install your favorite another operating system on guest machine. If you would like to get more details about VirtualBox visit the official VirtualBox documentation page.

If you have any question or suggestion, please leave comment below.

If our content helps you, please consider buying us a coffee

Thank you for your support.

Share On
Share on Facebook
Share on Twitter
Share on Reddit
Share on Tumblr
 Previous Article How to Install PostgreSQL on CentOS 7
Next Article   How to Install Visual Studio Code on CentOS 7

Related Posts

  • How to Install Php 8 on CentOS 8

    How to Install PHP 8 on CentOS 8

    January 27, 2021
  • How to Install Python 3.9 on CentOS 8

    How to Install Python 3.9 on CentOS 8

    December 31, 2020
  • How to Install GIMP 2.10 on CentOS 8

    How to Install GIMP 2.10 on CentOS 8

    December 30, 2020

Leave a Reply Cancel reply

DigitalOcean Referral Badge

Popular Posts

  • How to Install SSH Keys on Ubuntu 22.04
    How to Set up SSH Keys on Ubuntu 22.04 January 7, 2023
  • How to Install Mongodb on Debian 11
    How to Install MongoDB on Debian 11 Linux January 11, 2023
  • How to Install Puppet Agent on Ubuntu 22.04
    How to Install Puppet Agent on Ubuntu 22.04 January 22, 2023
  • How to Install Python 3.11 on Debian 11
    How to Install Python on Debian 11 January 25, 2023
  • How to Change-Hostname Ubuntu 22.04
    How to Change Hostname on Ubuntu 22.04 January 19, 2023
© 2020 TecNStuff All rights reserved. This website is using and storing cookies on your browser. By using this website you agree our Privacy Policy.  Follow us -  Twitter | Facebook