我已经通过软件中心安装了 VirtualBox,但是当我尝试启动 VM 时,出现以下错误:
未安装内核驱动程序 (rc=-1908)
VirtualBox Linux 内核驱动程序 (vboxdrv) 未加载或 /dev/vboxdrv 存在权限问题。请通过执行重新安装内核模块
'/etc/init.d/vboxdrv 设置'
作为根。如果它在您的发行版中可用,您应该首先安装 DKMS 包。该软件包会跟踪 Linux 内核更改并在必要时重新编译 vboxdrv 内核模块。
我已经更新dkms并安装了linux-headers,但这/etc/init.d/vboxdrv不存在。
我一直在谷歌搜索,但我找不到答案。
未安装内核驱动程序 (rc=-1908)
VirtualBox Linux 内核驱动程序 (vboxdrv) 未加载或 /dev/vboxdrv 存在权限问题。请通过执行重新安装内核模块
'/etc/init.d/vboxdrv 设置'
作为根。如果它在您的发行版中可用,您应该首先安装 DKMS 包。该软件包会跟踪 Linux 内核更改并在必要时重新编译 vboxdrv 内核模块。
对于使用 Virtual Box 的每个人来说,这是一条熟悉的信息。至少从 11.10 开始,这个“错误”每隔几个月就会出现一次。我今天在 14.04 上第一次得到它,不幸的是重新安装的经典解决方案virtualbox-dkms没有任何效果:
sudo apt-get install linux-headers-generic build-essential dkms
sudo apt-get remove virtualbox-dkms
sudo apt-get install virtualbox-dkms
Run Code Online (Sandbox Code Playgroud)
这个旧修复失败的原因可能是什么?
更新:在评论中,用户 bain 引用了一个旧线程,该线程显然报告了相同的问题。虽然错误消息类似,但在 Ubuntu 14.04 上,此问题似乎具有不同的性质,与virtualbox-dkms软件包无关。例如,在 Ubuntu 14.04 上,virtualbox软件包是最新的:
$ sudo apt-cache policy virtualbox
virtualbox:
Installed: 4.3.10-dfsg-1
Candidate: 4.3.10-dfsg-1
Version table:
*** 4.3.10-dfsg-1 0
500 http://de.archive.ubuntu.com/ubuntu/ trusty/multiverse amd64 Packages
100 /var/lib/dpkg/status
Run Code Online (Sandbox Code Playgroud) 我virtualBox在 Ubuntu 16.04 上安装,但在安装并创建新的虚拟主机后显示此错误:
未安装内核驱动程序 (rc=-1908)
VirtualBox Linux 内核驱动程序 (vboxdrv) 未加载或 /dev/vboxdrv 存在权限问题。请安装 virtualbox-dkms 包并通过执行加载内核模块
Run Code Online (Sandbox Code Playgroud)modprobe vboxdrv作为根。如果它在您的发行版中可用,您应该首先安装 DKMS 包。该软件包会跟踪 Linux 内核更改并在必要时重新编译 vboxdrv 内核模块。
Run Code Online (Sandbox Code Playgroud)where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
如何解决这个modprobe vboxdrv错误?
因此,我尝试使用 VirtualBox 创建操作系统,但出现此错误:
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.
Run Code Online (Sandbox Code Playgroud)
所以我做了显而易见的事情,运行 Vboxdrv 设置。我运行了这个命令:
sudo service vboxdrv setup
Run Code Online (Sandbox Code Playgroud)
我这样做时出错。:
stopping kernel drivers...done.
Uninstalling old …Run Code Online (Sandbox Code Playgroud) 我已经在 Windows 上使用 VMWare 很长时间了。但经过漫长的等待,我转向了 Ubuntu 11.10 上的 VirtualBox。我安装了 32 位 Ubuntu,安装了所有可用的更新并安装了 Virtual Box。当我尝试在 VirtualBox 中创建新的 Windows 安装时,收到以下错误消息。
VirtualBox - Error
Failed to open a session for the virtual machine Windows XP.
The virtual machine '**Windows XP**' has terminated unexpectedly during startup with exit code 1.
Details
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Machine
Interface:
IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}
Run Code Online (Sandbox Code Playgroud)
第二个错误对话
Virtualbox - Error in suplibOsinit
Kernal driver not installed (rc--1908)
Please install the virtualbox-dkmbs package and execute 'modprobe vboxdrv' as root.
Run Code Online (Sandbox Code Playgroud)
Ubuntu 服务器 17.04 x64、Cinammon 3.2.7、内核 4.13.3 通用。
尝试设置 VirtualBox,但到目前为止我一直无法启动任何虚拟机。安装后(apt install virtualbox),我在安装过程接近尾声时得到以下几行:
? virtualbox.service - LSB: VirtualBox Linux kernel module
Loaded: loaded (/etc/init.d/virtualbox; generated; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2017-09-21 19:57:07 +04; 18ms ago
Docs: man:systemd-sysv-generator(8)
Process: 463 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)
CPU: 28ms
Sep 21 19:57:06 Hiigaran systemd[1]: Starting LSB: VirtualBox Linux kernel module...
Sep 21 19:57:06 Hiigaran virtualbox[463]: * Loading VirtualBox kernel modules...
Sep 21 19:57:07 Hiigaran virtualbox[463]: * No suitable module for running kernel …Run Code Online (Sandbox Code Playgroud) 我刚刚从 Ubuntu 15.04 64 位升级到 Ubuntu 15.10 64 位。我读到 15.10 使用的是 4.1 或 4.2 内核,但我注意到我的内核没有升级。
当我在终端中输入时uname -r,我得到3.19.0-18-generic
GRUB 中的同样事情:我唯一可以选择的内核是 3.19.0-18
有人可以解释如何升级内核吗?
我的 VirtualBox 在启动虚拟机时给了我以下错误:
未安装内核驱动程序 (rc=-1908)
VirtualBox Linux 内核驱动程序 (vboxdrv) 未加载或 /dev/vboxdrv 存在权限问题。请安装 virtualbox-dkms 包并通过执行加载内核模块
'modprobe vboxdrv'
作为根。如果它在您的发行版中可用,您应该首先安装 DKMS 包。该软件包会跟踪 Linux 内核更改并在必要时重新编译 vboxdrv 内核模块。
其中: suplibOsInit 内容: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - 未安装支持驱动程序。在 linux 上,打开返回 ENOENT。
我按照说明安装了 DKMS 包,它给了我它已经安装的消息。执行
sudo modprobe vboxdrv
Run Code Online (Sandbox Code Playgroud)
导致此错误:
modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.15.0-041500rc2-lowlatency
Run Code Online (Sandbox Code Playgroud)
我尝试重新安装内核和 virtualbox-dkms
sudo apt install --reinstall linux-headers-$(uname -r) virtualbox-dkms dkms
Run Code Online (Sandbox Code Playgroud)
我得到了这个输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reinstallation of linux-headers-4.15.0-041500rc2-lowlatency is not possible, it cannot …Run Code Online (Sandbox Code Playgroud) 我是 Ubuntu 的新手,希望在比使用我的主机更安全的环境中学习更多。我正在运行 Ubuntu 18.04 内核 5.3.1 并且正在努力创建 VirtualBox Ubuntu VM。
当我尝试启动机器时,我得到:
modprobe xboxdrv以 root 身份运行我得到:
modprobe xboxdrv
modprobe: FATAL: Module xboxdrv not found in directory /lib/modules/5.3.1-050301-generic
Run Code Online (Sandbox Code Playgroud)
当我运行时:
sudo apt install --reinstall virtualbox-dkms
Run Code Online (Sandbox Code Playgroud)
我得到
Unpacking virtualbox-dkms (5.2.32-dfsg-0~ubuntu18.04.1) over (5.2.32-dfsg-0~ubuntu18.04.1) ...
Setting up virtualbox-dkms (5.2.32-dfsg-0~ubuntu18.04.1) ...
Loading new virtualbox-5.2.32 DKMS files...
Building for 5.3.1-050301-generic
Building initial module for 5.3.1-050301-generic
ERROR (dkms apport): kernel package linux-headers-5.3.1-050301-generic is not supported
Error! Bad return status for module build on kernel: 5.3.1-050301-generic (x86_64)
Consult …Run Code Online (Sandbox Code Playgroud) 可能重复:
Virtualbox 内核驱动程序未安装
最近我将内核更新为3.2.0-29-generic. 此后,我的 VirtualBox 无法打开并显示错误消息
VirtualBox - Error in suplibOsInit
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.
Run Code Online (Sandbox Code Playgroud)
为了使它工作,我必须每次执行以下命令:
sudo …Run Code Online (Sandbox Code Playgroud)