Karthigaa
Install VirtualBox in Centos 6.10
1 min readDec 16, 2020

--

INSTALLATION OF VIRTUAL BOX IN CENTOS 6.10

Prerequisites

1.Update System

*Update the system to the latest version.

#yum update -y

2.Install Development Tools

Once the system is up, install header and development tools.

#yum install -y kernel-devel kernel-headers gcc make perl

3.install the wget package to download items using the terminal.

#yum -y install wget

4. Reboot the system.

#reboot

Set up VirtualBox repository

1.Download the Oracle public key.

wget https://www.virtualbox.org/download/oracle_vbox.asc

2.Import the Oracle public key.

rpm — import oracle_vbox.asc

3.Download the VirtualBox repository file for CentOS 6 / RHEL 6 and move it into /etc/yum.repos.d/ directory.

wget http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo -O /etc/yum.repos.d/virtualbox.repo

OR

Create the /etc/yum.repos.d/virtualbox.repo file and add the below in it

[virtualbox]

name=Oracle Linux / RHEL / CentOS-$releasever / $basearch — VirtualBox

baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch

enabled=1

gpgcheck=1

repo_gpgcheck=1

gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc

4.Install VirtualBox using the yum command

VirtualBox v6.0

#yum install -y VirtualBox-6.0

5.Run the below command to check the status of the VirtualBox Linux kernel module service.

#service vboxdrv setup

6.Start VirtualBox

#virtualbox&

(Or) Start VirtualBox:Go to Application >> System Tools >> Oracle VM VirtualBox.

--

--