# vim /etc/yum.repos.d/virtualbox.repo
# Add the following
[ virtualbox]
name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# yum install -y gcc make patch dkms qt libgomp
# yum install -y kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel
# yum install -y kernel kernel-headers kernel-devel gcc make
# vim /etc/profile
# Add the last line of the file
export KERN_DIR=/usr/src/kernels/Your latest kernel version xxx
# source /etc/profile
# yum search VirtualBox
# yum install -y VirtualBox-5.1
# reboot
# Recompile kernel modules related to virtualbox
# service vboxdrv setup
# Start virtualbox
# virtualbox &
Recommended Posts