Finally I have installed and use VirtualBox successfully. Installation is easy, but when I was starting the VDI I created a warning appeared:
[root@cyruslab yum.repos.d]# VirtualBox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (18.104.22.168-91.fc14.i686.PAE) or it failed to
load. Please recompile the kernel module and install it by
sudo /etc/init.d/vboxdrv setup
You will not be able to start VMs until this problem is fixed.
This is resolved by adding user to the user group vboxusers. Without adding a user to this vboxusers group the Kernel will not start and hence the VDI I created will not start as well.
vboxusers is a group created by VirtualBox itself after installation.
To add user use this command:
Step 1: su –
Login to root.
Step 2: usermod -a -G vboxusers cyrus
this statement means to add user cyrus into group vboxusers.
Steps to install Virtual Box and use it.
Step 1: su –
Login to root user.
Step 2: cd /etc/yum.repos.d/
Go to the directory of the yum repository. In here you need to include the virtual box repository from virtual box website.
You need to download this repository from the virtual box website, this repository tells your YUM where to download and install Virtualbox. Without this step you will need to go to Virtual box yourself and download and install it.
Step 4: yum install dkms gcc
dkms and gcc packages need to be installed and updated.
Step 5: yum install VirtualBox-4.0
This will download and install VirtualBox from the website as informed by the repo file. The package name – VirtualBox-4.0 is case sensitive!
Step 6: usermod – a -G vboxusers <your username>
Now you can run virtual box, create virtual machine and start it without warning!