Ubuntu 升级VisualBox后无法启动 Kernel driver not installed (rc=-1908)

?

?

VisualBox之所以在Linux上比传统的VMware快得多,关键一点就是它和Linux内核的结合比较紧密,这也是开源的优点。

不过Linux内核更新很频繁,每次更新内核后启动VirtualBox都会提示:

VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Re-setup the kernel module by executing ‘/etc/init.d/vboxdrv setup’ as root.

所以需要重新编译VirtualBox的内核,Ubuntu下执行如下命令:

sudo /etc/init.d/vboxdrv setup

如果提示

?

* Stopping VirtualBox kernel modules ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?[ OK ]
* Uninstalling old VirtualBox DKMS kernel modules ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [ OK ]
* Trying to register the VirtualBox kernel modules using DKMS
* Failed, trying without DKMS
* Recompiling VirtualBox kernel modules
* Look at /var/log/vbox-install.log to find out what went wrong

?

找到/var/log/vbox-install.log文件,内容大致为:

Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. ?Stop.

所以需要安装当前Linux内核的源文件,编译VirtualBox内核的时候需要它,Ubuntu下执行如下命令安装当前Linux内核的源文件:

sudo apt-get install linux-headers-`uname -r`

注意括起uname -r的不是单引号,而是Esc键下面的那个符号。

然后再编译VirtualBox内核执行如下命令:

sudo /etc/init.d/vboxdrv setup

时间: 2024-10-18 16:18:29

Ubuntu 升级VisualBox后无法启动 Kernel driver not installed (rc=-1908)的相关文章

Ubuntu下升级VisualBox后无法启动 Kernel driver not installed (rc=-1908)

Ubuntu下升级VisualBox后无法启动 Kernel driver not installed (rc=-1908) VisualBox之所以在Linux上比传统的VMware快得多,关键一点就是它和Linux内核的结合比较紧密,这也是开源的优点. 不过Linux内核更新很频繁,每次更新内核后启动VirtualBox都会提示: VirtualBox kernel driver not installed. The vboxdrv kernel module was either not

virtualbox无法启动 Kernel driver not installed (rc=-19

转自地址:http://www.cnblogs.com/WormCanFly/archive/2012/05/23/2514338.htm Ubuntu 升级VisualBox后无法启动 Kernel driver not installed (rc=-1908) VisualBox之所以在Linux上比传统的VMware快得多,关键一点就是它和Linux内核的结合比较紧密,这也是开源的优点. 不过Linux内核更新很频繁,每次更新内核后启动VirtualBox都会提示: VirtualBox

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

Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Re-setup the kernel module by executing '/etc/init.d/vboxdrv setup' as root. Users of Ubuntu,

CentOS VirtualBox启动虚拟及报错:VirtualBox error: Kernel driver not installed (rc=1908)

VirtualBox error: Kernel driver not installed (rc=1908) Hi all, Let me first say that this is my final resort after googling this issue for the last several hours. None of the solutions that I have found are working for me. My VirtualBox (PUEL, not O

Fedora安装VirtualBox时出现错误Kernel driver not installed (rc=-1908)的解决办法

新建虚拟机后启动时出现如下错误: Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Re-setup the kernel module by executing '/etc/init.d/vboxdrv setup' as root.

VirtualBox提示Kernel driver not installed (rc=-1908)

今天用虚拟机挂载了一个镜像文件,结果虚拟机不能打开(见下图),结果我还以为是我挂载的操作给影响的,后来经过谷歌查询,原来是因为linux内核升级的原因.仔细的想了一下,自己的确在上次关机的时候给电脑更新过软件.谷歌查询了解决办法,知道了原因,不过没按照网上说的去做.我是把虚拟机卸载(不会删除自己虚拟的系统),然后重新安装,结果就可以正常使用了. 卸载虚拟机VirtualBox(可以输入vir然后按Tab键来补全,查看自己虚拟机具体的软件名) [email protected]:~/Downloa

fedora25 安装virtualbox5.1 出现提示Kernel driver not installed (rc=-1908) 错误的解决方法

fedora25 安装virtualbox5.1 出现提示Kernel driver not installed (rc=-1908) 错误的解决方法: $ sudo /usr/lib/virtualbox/vboxdrv.sh setup        vboxdrv.sh: Building VirtualBox kernel modules.             vboxdrv.sh: Starting VirtualBox services.

archlinux virtualbox 出现 Kernel driver not installed (rc=-1908)

错误内容: Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing 'pacman -S virtualbox-modules' as root.

Centos7升级内核后无法启动解决办法:mpt[23]sas驱动问题

参考链接:https://www.cnblogs.com/muahao/p/7610413.htmlCentOS 7.6 从内核 3.10.0 升级到 5.3.6后,重启不了,原因是 Linux 内核 4.4.x 版本之后,dracut 命令生成的 initramfs 默认不会自动加载 mpt3sas 驱动模块.因为没有对应的驱动程序,所以识别不了系统盘(两块 SAS 系统盘接在 LSI 2308 HBA 卡上,创建 RAID 1),从而导致内核 vmlinuz 无法加载它的 rootfs(根文