1. 下载VirtualBox的repo文件:

登陆 https://www.virtualbox.org/wiki/Linux_Downloads 在网页的最下端的repo链接上右键下载,或者wget下载

[root@localhost files]# wget http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo

然后放到路径 /etc/yum.repos.d

2. 检查可用的软件版本:

输入 yum list virtualbox*

[root@localhost files]# yum list virtualbox*
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * elrepo: dfw.mirror.rackspace.com
已安装的软件包
VirtualBox-5.1.x86_64              5.1.26_117224_el7-1               @virtualbox     “我已经提前安装好了5.1的版本”
可安装的软件包
VirtualBox-4.3.x86_64              4.3.40_110317_el7-1               virtualbox
VirtualBox-5.0.x86_64              5.0.40_115130_el7-1               virtualbox

3. 安装:

yum install VirtualBox-5.1

完成安装

==============================================

Tips: 启动虚拟机时报错的处理

安装完成之后从桌面上打开virtualbox并新建虚拟机一切正常,等到启动虚拟机的时候就开始报错了/sbin/vboxconfig

这个时候到Terminal上输入virtualbox的时候,提示没有可用的kernel或者kernel没有加载的信息,并提示运行 /sbin/vboxconfig去查看详情,运行之后发现两个提示一个是缺少gcc,另一个还是kernel的问题

果断放狗,原来是需要kernel-devel这个组件,发现问题那安装就行了。

“关于elrepo源请见上篇博文 CentOS 7 中的elrepo源配置 http://www.cnblogs.com/zhaowp88/p/7382931.html”

[root@localhost files]# yum install gcc

[root@localhost files]# yum --enablerepo=elrepo-kernel install kernel-devel

完成之后再运行 /sbin/vboxconfig 没有错误提示了,再次运行virtualbox去启动虚拟机,顺利启动、大功告成!

2017-08-17 17:54:17 @sh hp

最新文章

  1. stella mccartney falabella foldover tote a few eye observed
  2. failed to push some refs to 'git@github.com:***.git' hint: Updates were rejected b
  3. queue
  4. luemn PHP_CodeSniffer的安装
  5. 谁在死锁Mutex——用Windbg查找Mutex死锁所有者线程
  6. ERWin 7.2下载安装及注册机
  7. vc++ 内存连续读写操作
  8. Umbraco(7)-The Navigation Menu And A Parent Page with Infinite Children
  9. @property在内存管理中的参数问题
  10. Android VideoView使用小记
  11. poj 2739 Sum of Consecutive Prime Numbers 小结
  12. Composer基本安装步骤
  13. Hibernate的条件查询的几种方式+查询所有的记录
  14. Java获取URL中的顶级域名domain的工具类
  15. Luogu4022 CTSC2012 熟悉的文章 广义SAM、二分答案、单调队列
  16. WCF开发实战系列二:使用IIS发布WCF服务
  17. 如何在ubuntu上搭建hustoj?
  18. vertx读取配置文件,获得端口号
  19. 客户端、服务器端中JSON字符串与对象的转换
  20. ASP.NET Core 应用程序Startup类介绍 (转载)

热门文章

  1. mongo04---基本查询
  2. POJ3616 Milking Time —— DP
  3. YTU 2562: 黄金螺旋
  4. YTU 1008: 童年生活二三事
  5. mysql查询表的字符集
  6. gearcache在qemu-kvm虚拟化平台下的实现
  7. 数据库sqlite3的使用-ios中引用方法
  8. 并不对劲的noip2018
  9. CodeForces 723B Text Document Analysis (水题模拟)
  10. Luogu P2158 [SDOI2008]仪仗队【数学/欧拉函数】by cellur925