ubuntu16.04虚拟win7——经验笔记——问题:Kernel driver not installed (rc=1908) error. The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. executing  '/sbin/vboxconfig'  as root.

解决过程

1.刚刚在ubuntu software更新了系统,一重启,要打开虚拟机的时候出现如下

2.如何解决

于是照着报错的提示解决:

sudo /sbin/vboxconfig

出现:

[sudo] password for wangshuai:
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.There were problems setting up VirtualBox.  To re-start the set-up process, run/sbin/vboxconfig
as root.                                              

于是

wangshuai@wangshuai-Vostro:~$ head /var/log/vbox-install.log
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /lib/modules/4.10.0-32-generic/build -j8 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (    \
echo >&2;                            \
echo >&2 "  ERROR: Kernel configuration is invalid.";      \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";   \
echo >&2 ;                           \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
...
...
...略

于是

wangshuai@wangshuai-Vostro:~$ uname -a
Linux wangshuai-Vostro 4.15.0-24-generic #26~16.04.1-Ubuntu SMP Fri Jun 15 14:35:08 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
wangshuai@wangshuai-Vostro:~$ cd /usr/src/linux-headers-4.15.0-24-generic/
wangshuai@wangshuai-Vostro:/usr/src/linux-headers-4.15.0-24-generic$ ls
arch   certs   Documentation  firmware  include  ipc     Kconfig  lib       mm              net      scripts   sound  tools   usr   zfs
block  crypto  drivers        fs        init     Kbuild  kernel   Makefile  Module.symvers  samples  security  spl    ubuntu  virt
wangshuai@wangshuai-Vostro:/usr/src/linux-headers-4.15.0-24-generic$ make oldconfig && make prepare
scripts/kconfig/conf  --oldconfig Kconfig
security/Kconfig:393:warning: defaults for choice values not supported
security/Kconfig:397:warning: defaults for choice values not supported
security/Kconfig:401:warning: defaults for choice values not supported
security/Kconfig:405:warning: defaults for choice values not supported
security/Kconfig:409:warning: defaults for choice values not supported*** Error during writing of the configuration.scripts/kconfig/Makefile:87: recipe for target 'oldconfig' failed
make[1]: *** [oldconfig] Error 1
Makefile:537: recipe for target 'oldconfig' failed
make: *** [oldconfig] Error 2

看来也没啥用

于是疯狂google

发现一个网址https://forums.virtualbox.org/viewtopic.php?t=82633,还是vbox官网的FAQ比较有用。

后面的回复的意思是说linux的kernel更新了的话一些application也得更新下,uname -a 发现我的linux内核是linux-headers-4.15.0-24-generic/,我的virtualbox版本是5.1.26

wangshuai@wangshuai-Vostro:/usr/src$ sudo apt-get install virtualbox-5.1
[sudo] password for wangshuai:
Reading package lists... Done
Building dependency tree
Reading state information... Done
virtualbox-5.1 is already the newest version (5.1.26-117224~Ubuntu~xenial).
The following packages were automatically installed and are no longer required:libllvm4.0 linux-headers-4.13.0-43 linux-headers-4.13.0-43-generic linux-image-4.13.0-43-generic linux-image-extra-4.13.0-43-genericlinux-signed-image-4.13.0-43-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

根据另一个网址https://www.virtualbox.org/wiki/Changelog-5.1,得到上图及下面一些图,这图说5.1.24的vbox与内核为4.12或4.13兼容(不确定),而且

貌似内核4.15支持vbox5.1.34,所以我决定把vbox升级一下试试,利用synaptic package manager把vbox5.1.26移除然后装上vbox5.1.34及相关的guest addition和 package。装完之后启动vbox就成功打开vbox了。

ubuntu16.04虚拟win7——经验笔记——问题:Kernel driver not installed (rc=1908) error.相关推荐

  1. virtualbox 启动时报Kernel driver not installed (rc=-1908) 的错误

    新建虚拟机后启动时出现如下错误: Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (vboxdrv) ...

  2. mac系统升级导致VirtualBox报Kernel driver not installed (rc=-1908)

    文章目录 一.背景 二.解决方案 1.重新下载一个最新的VirtualBox虚拟机 2.卸载旧的虚拟机 1.双击启动程序 2.点击卸载程序 3.输入yes.密码后开始卸载 4.卸载完成后,安装 5.安 ...

  3. macOS Monterey12.3.1安装VirtualBox6.1.34后启动虚拟机报错Kernel driver not installed (rc=-1908) 解决方法

    在Mac端安装centos7的虚拟机,启动时报错未安装内核驱动程序,解决方法如下 1.先检查Mac的kernel的扩展是否已经安装,执行命令 kextstat | grep -v com.apple ...

  4. virtualbox 启动时Kernel driver not installed (rc=-1908) 错误的解决方法

    为什么80%的码农都做不了架构师?>>>    本人遇到该问题是通过以下方式解决的. 因为报错信息是kernel driber not installed 内核没有安装,故做了更新新 ...

  5. ubuntu18.04 VirtualBox 开启虚拟机出错 Kernel driver not installed (rc=-1908)

    写的很明白了 提示缺少GCC PERL MAKE,安装 重试..... 重启VM 搞定.... 转载于:https://www.cnblogs.com/jiangyuqin/p/9865647.htm ...

  6. VBox on 14.04: Kernel driver not installed (rc=-1908) [duplicate]

    这几天刚刚装上Ubuntu的系统开始写Android代码,真心是流畅了很多,但是也出现了很多的问题. 还好 有大神护佑,童鞋博客首页,点击查看吧. 刚刚又遇到了一个新的问题,那就是我想用genymot ...

  7. 联想小新Air15 2021新款11代酷睿版win10+Ubuntu16.04双系统装机笔记

    联想小新Air15 2021新款酷睿版win10+Ubuntu16.04双系统装机笔记 安装过程记录 安装主要参考教程 第一个问题:找不到磁盘 第二个问题:找不到wifi选项 接下来的任务 安装过程记 ...

  8. caffe+CPU︱虚拟机+Ubuntu16.04+CPU+caffe安装笔记

    由于本机是window10系统,所以想尝试caffe就在自己电脑上整了一个虚拟机(详情可见:win10系统搭建虚拟机:VMware Workstation Player 12环境+Ubuntu Kyl ...

  9. ubuntu16.04+win10重装系统笔记

    文章目录 前言 1.问题描述--发生甚么事了? 2.系统启动过程 2.1 bios 2.2.磁盘的MBR和GPT分区格式 [参考1](https://www.bilibili.com/video/BV ...

最新文章

  1. EBS Form中数据提交方式(COMMIT)
  2. ArrayList刷题总结
  3. 全国计算机等级考试题库二级C操作题100套(第34套)
  4. 记录腾讯云中矿机病毒处理过程(重装系统了fu*k)
  5. php 分析url函数,PHP 解析URL函数 parse_url()函数
  6. 做能及之事,过平淡的日子,烦事多忘,好事多为
  7. Spring Data JPA教程,第一部分: Configuration(翻译)
  8. L3-016 二叉搜索树的结构 (30 分)-PAT 团体程序设计天梯赛 GPLT
  9. 智慧城市近两年来受到国家高度重视
  10. c语言中extern关键字
  11. android 表情的正则,Android 手势 正则匹配图片实例代码
  12. fw136r虚拟服务器,Purley平台Redfish带外配置表
  13. 心知天气html,esp8266初级入门实用教程一之访问心知天气读取实时天气数据
  14. 【Python基础 | 文件】小实验:将古诗写入一个文件,并复制到另一个文件中
  15. java生产者消费者 阻塞_java之使用阻塞队列实现生产者,消费者模式
  16. could not initialize proxy - the owning Session was closed解决
  17. 互斥事件的概念和公式_统计学中的基本概念和重要公式(一)
  18. php试卷分析,对试卷分析的必要性与试卷分析的技巧
  19. 如何寻找软件外包公司?
  20. iphone苹果手机点击屏幕就亮怎么关闭

热门文章

  1. 怎么把视频里的音乐提取成音频?
  2. 关于 基础连接已经关闭:接收时发生意外错误
  3. 网络通讯端口为什么要设计浪涌保护电路
  4. CSS常考面试题资料
  5. DruidCP源码阅读8 -- removeAbandoned机制
  6. Undistort and Rectify Images based on OpenCV(python)
  7. 再回首 --- 零点伤感
  8. IT人的学习方法论(全)
  9. 蓝桥杯 — 星系炸弹( 在X星系的广袤空间中漂浮着许多X星人造“炸弹”)
  10. 【jQuery 基础】$ (document) .ready和$(window).load