How to install VirtualBox on ClearOS 6.3

This tutorial will show you how to install VirtualBox on a ClearOS 6.3 system. Virtualbox can be easily installed on ClearOS 6.3 without a problem. But, you will only see the headless (command mode) of Virtualbox instead of ordinary Virtualbox GUI.

Steps to install Virtualbox on ClearOS 6.3

After ClearOS 6.3 is installed and work properly, you can start installing Virtualbox. I assume you have a good internet connection to do this tutorial. This is the modified version of the original tutorial shown on Howtofoge.com. http://www.howtoforge.com/vboxheadless-running-virtual-machines-with-virtualbox-4.1-on-a-headless-centos-6.2-server

Open Terminal and follow these steps below.

A. Create new admin user

groupadd admin
useradd -d /home/admin -m -g admin -s /bin/bash admin

B. Install Virtualbox

yum groupinstall 'Development Tools'
yum install SDL kernel-devel kernel-headers dkms

In my case, I still need to install gcc manually so I add this command

yum install gcc

 

Now check if you have the correct kernel version

uname -r

it returned

2.6.32-279.14.1.v6.i686
ls /usr/src/kernels

it returned

2.6.32-279.14.1.v6.i686

As you see the commands above produce the same kernel version. If you have different kernel version, you may need to create the symlink under /usr/src/kernels. To do this, simply follow the instruction shown here.

cd /etc/yum.repos.d
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
yum search VirtualBox

it should return

VirtualBox-3.2.i686 : Oracle VM VirtualBox
VirtualBox-4.0.i686 : Oracle VM VirtualBox
VirtualBox-4.1.i686 : Oracle VM VirtualBox
VirtualBox-4.2.i686 : Oracle VM VirtualBox

Install Virtualbox using command

yum install VirtualBox-4.2

Wait until the installation finished. Now execute this command

/etc/init.d/vboxdrv setup

You will get the similar result if it successful

[root@gateway ~]# /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                         [  OK  ]

At this point, Virtualbox is installed on ClearOS 6.3 successfully.

2 comments

I get error while installing yum groupinstall 'Development Tools'. please suggest.

Here is the answer to the above described problem: "I get error while install yum groupinstall Development Tools".

http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,37/func,view/id,52193/