How-to-simply...

Install VirtualBox on CentOS 6.5

  • 1 cd /etc/yum.repos.d
    wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
    yum update
  • 2 1. rpm -qa kernel | sort -V | tail -n 1
    2. uname -r
    # if output of previous two commands is not the same than reboot (shutdown -r)
  • 3 rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
    yum install binutils gcc make patch libgomp glibc-devel kernel-headers kernel-devel dkms
  • 4 KERN_DIR=/usr/src/kernels/2.6.32- press tab tab and select latest
    export KERN_DIR
  • 5 yum install VirtualBox-4.X (replace with latest verion)
    service vboxdrv setup

References