CentOS 6.X install VirtualBox-5.1

1. Install the yum source of virtualbox#####
# 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
Second, add EPEL source
# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Three, add the necessary dependencies
# 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
Fourth, set environment variables, mainly the path of the kernel
# vim /etc/profile
# Add the last line of the file
export KERN_DIR=/usr/src/kernels/Your latest kernel version xxx
# source /etc/profile
Five, install virtualbox
# yum search VirtualBox
# yum install -y VirtualBox-5.1
# reboot
# Recompile kernel modules related to virtualbox
# service vboxdrv setup
# Start virtualbox
# virtualbox &

Recommended Posts

CentOS 6.X install VirtualBox-5.1
VirtualBox install centos7
VirtualBox install CentOS system
Centos7 install mongodb 4.x
Install ElasticSearch 7.x on CentOS 7
Centos6 install mysql 5.7.x series
1.5 Install Centos7
install virtualbox on centos server
How to install Virtualbox on CentOS 8
CentOS 6.x compile and install Nginx
virtualBox install centos, and build tomcat
Centos6 install Python2.7.13
Centos7.3 install nginx
CentOS7.2 install Mysql5.7.13
CentOS install Redmine
Centos7 install Python 3.6.
CentOS7 install MySQL
Centos7 install protobuf
CentOS 7 install Docker
CentOS 7.4 install Zabbix 3.4
CentOS7 install Docker
Centos6.5 install Tomcat
CentOS install Python 3.6
Vmware install CentOS6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
CentOS 7 install Hadoop 3.0.0
Centos7 install Python2.7
Centos 7.6 install seleniu
CentOS 7.3 install Zabbix3
Centos7 install LAMP+PHPmyadmin
CentOS install openjdk 1.8
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP
CentOS6 install mist.io
Centos7 install Docker
CentOS7 install mysql
centOs install rabbitMQ
CentOS 7 install MySQL 5.6
Centos7 install Nginx
CentOS6.5 install CDH5.13
Centos7 install docker18
Centos install Python3
centos7 install docker
CentOS install jdk
centos7 install nginx-rtmp
CentOS8 install MySQL8.0
Centos6.3 install KVM
CentOS install PostgreSQL 9.1
CentOS7 install mysql8
CentOS 7 install Java 1.8
CentOS8 install fastdfs6.06
CentOS 7 install Gitlab
Centos 7 install PostgreSQL
CentOS7 install MySQL8
CentOS 7 install Java 1.8
CentOS 6 install Docker
centos 6.5 install zabbix 4.4
Centos8 install Docker
CentOS6.8 install python2.7
CentOS install nodejs 8