Ubuntu VirtualBox 错误解决方法归档

Ubuntu:VirtualBox-1908错误

启动提示VirtualBox kernel driver not installed.

问题描述:

VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Please install the virtualbox-ose-modules package for your kernel and execute '/etc/init.d/vboxdrv start' as root.
VBox status code: -1908 (VERR_VM_DRIVER_NOT_INSTALLED)。
Result Code:
0x80004005
Component:
Console
Interface:
IConsole {1dea5c4b-0753-4193-b909-22330f64ec45} [bitsCN_com]
 


解决办法:

安装模块源码:
     sudo apt-get install virtualbox-ose-source
然后
     cd /usr/src
解压源码
     sudo tar xjvf virtualbox*.bz2
     cd modules/virtualbox-ose
编译安装模块驱动
     sudo ./build_in_tmp install
完成后
/usr/src/modules/virtualbox-ose$ sudo /etc/init.d/vboxdrv start
* Starting VirtualBox kernel module vboxdrv [ OK ]

就可以看到加载成功了,启动virtualbox也没有问题了。

 

Ubuntu:VirtualBox-1909错误

启动提示The VirtualBox kernel driver is not accessible to the current user.

问题描述

The VirtualBox kernel driver is not accessible to the current user. Make sure that the user has write permissions for /dev/vboxdrv by adding them to the vboxusers groups. You will need to logout for the change to take effect..
VBox status code: -1909 (VERR_VM_DRIVER_NOT_ACCESSIBLE).
Result Code:0x80004005

错误原因:
    安装目录没有权限

解决办法:
     sudo chmod ugo+rw /dev/vboxdrv
或者
     sudo chmod 777 /dev/vboxdrv

你可能感兴趣的:(ubuntu)