ubuntu解决virtualbox “Kernel driver not installed”错误

virtualbox kernel driver not installed

最近我在ubuntu系统上使用Virtualbox安装Fedora虚拟机,创建完虚拟硬件后,准备启动虚拟硬件引导Fedora的镜像文件以安装Fedora系统。但出现了kernel driver not installed的错误。

Virtualbox错误

Kernel drive not iinstalled

上面的错误是说,Virtualbox的内核驱动没有加载或安装。在ubuntu系统上这个错误很好解决。

Virtualbox的内核驱动

首先安装build tools和 kernel header

sudo apt-get install build-essential module-assistant

sudo m-a prepare

我在执行第二条命令的时候,发现我的内核版本是4.3 rc7。前些天我在ubuntu系统上手动安装了linux kernel 4.3 rc7,所以Virtualbox会说kernel drive not installed。

matrix@vivid:~$ sudo m-a prepare
Getting source for kernel version: 4.3.0-040300rc7-generic
Kernel headers available in /usr/src/linux-headers-4.3.0-040300rc7-generic
Creating symlink...

安装virtualbox-dkms

sudo apt-get install virtualbox-dkms

重新配置dkms并加载vboxdrv模块

sudo dpkg-reconfigure virtualbox-dkms

sudo modprobe vboxdrv

然后virtualbox就能正常启动了。

为这篇文章评分
[Total: 1 Average: 5]

Leave a Reply

Your email address will not be published.

The maximum upload file size: 2 MB. You can upload: image, audio, video, document, spreadsheet, interactive, text, archive, code, other. Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded. Drop file here