CentOS7安装virtualbox
1.进入virtualbox官网
https://www.virtualbox.org/
2.点击download
3.点击Linux distributions
4.向下翻至如图,并且进入同种框选页面
5.在/etc/yum.repos.d/目录下新建virtualbox.repo并写入如下内容
[virtualbox]
name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
6.更新yum缓存
yum clean all
yum makecache
7.安装virtualbox
yum install VirtualBox-5.1
########################
安装 DKMS、更新内核
#yum -y install epel-release 安装扩展包
# yum -y install gcc make glibc kernel-headers kernel-devel dkms
# yum -y update kernel
# reboot
添加VirtualBox库
# cd /etc/yum.repos.d/
# wget https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo
下载virtualbox
wget https://download.virtualbox.org/virtualbox/5.2.16/VirtualBox-5.2-5.2.16_123759_el7-1.x86_64.rpm
安装和构建内核模块。
# yum -y localinstall VirtualBox-5.2-5.2.16_123759_el7-1.x86_64.rpm
运行virtualbox
# /sbin/vboxconfig
virtualbox
---------------------
作者:sywj0715
来源:CSDN
原文:https://blog.csdn.net/sywj0715/article/details/81626621
版权声明:本文为博主原创文章,转载请附上博文链接!
Centos 启动Virtualbox 提示kernel driver not installed (rc=-1908)
1. 首先安装:
$ sudo yum install -y gcc
2. 然后编译:
$ sudo /sbin/vboxconfig
如果提示:
需要安装指定的kernel-devel:
$ sudo yum install -y kernel-devel-3.10.0-693.el7.x86_64
如果找不到的话,需要google手动下载,然后通过rpm方式安装:
$ sudo yum install ./kernel-devel-3.10.0-693.el7.x86_64.rpm
附下载链接:http://rpm.pbone.net/index.php3/stat/4/idpl/37924679/dir/scientific_linux_7/com/kernel-devel-3.10.0-693.el7.x86_64.rpm.html
---------------------
作者:u013431916
来源:CSDN
原文:https://blog.csdn.net/u013431916/article/details/80549805
版权声明:本文为博主原创文章,转载请附上博文链接!