我尝试启动 virtualbox 但是没有成功,请给出一些修复方法:
GUI 成功打开并且我可以添加现有图像,但是当我尝试启动虚拟机时,收到以下消息:
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
'/etc/init.d/vboxdrv setup'
as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
我已经安装了 virtualbox-dkms、来自 apt-get 和 oracle 网站的版本,我试图运行/etc/init.d/vboxdrv setup
,,/etc/init.d/virtualbox/start
但modprobe vboxdrv
我的系统总是抱怨无法加载内核模块:
FATAL: Error inserting vboxdrv (/lib/modules/3.2.0-23-realtime/updates/dkms/vboxdrv.ko): Unknown symbol in module, or unknown parameter (see dmesg)
以下是 的输出sudo dpkg-reconfigure virtualbox-dkms
:
-------- Uninstall Beginning --------
Module: virtualbox
Version: 4.1.12
Kernel: 3.2.0-23-realtime (x86_64)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
vboxdrv.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-23-realtime/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
vboxnetadp.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-23-realtime/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
vboxnetflt.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-23-realtime/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
vboxpci.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-23-realtime/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod....
DKMS: uninstall completed.
-------- Uninstall Beginning --------
Module: virtualbox
Version: 4.1.12
Kernel: 3.2.0-24-generic (x86_64)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
vboxdrv.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-24-generic/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
vboxnetadp.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-24-generic/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
vboxnetflt.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-24-generic/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
vboxpci.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-24-generic/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod....
DKMS: uninstall completed.
------------------------------
Deleting module version: 4.1.12
completely from the DKMS tree.
------------------------------
Done.
Loading new virtualbox-4.1.12 DKMS files...
Building for 3.2.0-23-realtime and 3.2.0-24-generic
Building initial module for 3.2.0-23-realtime
^[[A^[[ADone.
vboxdrv:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.2.0-23-realtime/updates/dkms/
vboxnetadp.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.2.0-23-realtime/updates/dkms/
vboxnetflt.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.2.0-23-realtime/updates/dkms/
vboxpci.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.2.0-23-realtime/updates/dkms/
depmod....
DKMS: install completed.
Building initial module for 3.2.0-24-generic
Done.
vboxdrv:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.2.0-24-generic/updates/dkms/
vboxnetadp.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.2.0-24-generic/updates/dkms/
vboxnetflt.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.2.0-24-generic/updates/dkms/
vboxpci.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/3.2.0-24-generic/updates/dkms/
depmod....
DKMS: install completed.
* Stopping VirtualBox kernel modules [ OK ]
* Starting VirtualBox kernel modules * modprobe vboxdrv failed. Please use 'dmesg' to find out why
dmesg
还有我尝试后的输出sudo modbrobe vboxdrv
:
[ 1764.425935] vboxdrv: Unknown symbol down_write (err 0)
[ 1764.425968] vboxdrv: Unknown symbol up_write (err 0)
[ 1764.426096] vboxdrv: Unknown symbol down_read (err 0)
[ 1764.426169] vboxdrv: Unknown symbol up_read (err 0)
[ 1774.383081] vboxdrv: Unknown symbol down_write (err 0)
[ 1774.383096] vboxdrv: Unknown symbol up_write (err 0)
[ 1774.383131] vboxdrv: Unknown symbol down_read (err 0)
[ 1774.383157] vboxdrv: Unknown symbol up_read (err 0)
[ 1913.247363] vboxdrv: Unknown symbol down_write (err 0)
[ 1913.247430] vboxdrv: Unknown symbol up_write (err 0)
[ 1913.247526] vboxdrv: Unknown symbol down_read (err 0)
[ 1913.247594] vboxdrv: Unknown symbol up_read (err 0)
[ 2121.744210] applesmc: FS! : read arg fail
[ 2234.558172] vboxdrv: Unknown symbol down_write (err 0)
[ 2234.558183] vboxdrv: Unknown symbol up_write (err 0)
[ 2234.558207] vboxdrv: Unknown symbol down_read (err 0)
[ 2234.558227] vboxdrv: Unknown symbol up_read (err 0)
[ 2600.875176] vboxdrv: Unknown symbol down_write (err 0)
[ 2600.875208] vboxdrv: Unknown symbol up_write (err 0)
[ 2600.875303] vboxdrv: Unknown symbol down_read (err 0)
[ 2600.875373] vboxdrv: Unknown symbol up_read (err 0)
我做过安装内核头文件:sudo apt-get install linux-headers-$(uname -r)
答案1
kxstudio 不在存储库中,您必须从中获取http://kxstudio.sourceforge.net/KXStudio:Repositories
https://launchpad.net/~kxstudio-team/+archive/ppa| ppa:kxstudio 团队/ppa
答案2
vboxdrv 模块无法与主机实时内核配合使用。切换到低延迟内核“解决”了我的问题。我已提交以下问题:https://www.virtualbox.org/ticket/10580
我用韓輯工作室因此安装低延迟内核非常简单:sudo apt-get install kxstudio-kernel-lowlatency
然后我使用Grub 定制器将其设置为我的默认内核。重启后,virtualbox 运行正常。
答案3
确保你已经安装了 linux-headers 包。编译内核模块到 virtualbox 时需要用到它。