概述
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'
Stopping VirtualBox kernel modules [确定]
Uninstalling old VirtualBox DKMS kernel modules [确定]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 3.2.7-1.fc16.i686.PAE cannot be found at
/lib/modules/3.2.7-1.fc16.i686.PAE/build or /lib/modules/3.2.7-1.fc16.i686.PAE/source.
[失败]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [失败]
(Look at /var/log/vbox-install.log to find out what went wrong)
已加载插件:langpacks, presto, refresh-packagekit
设置安装进程
解决依赖关系
--> 执行事务检查
---> Package kernel-PAE-devel.i686 0:3.2.7-1.fc16 will be 安装
--> 完成依赖关系计算
依赖关系解决
================================================================================
软件包 架构 版本 仓库 大小
================================================================================
正在安装:
kernel-PAE-devel i686 3.2.7-1.fc16 updates 7.2 M
事务概要
================================================================================
安装 1 Package
总下载量:7.2 M
安装大小:27 M
确定吗?[y/N]:y
下载软件包:
kernel-PAE-devel-3.2.7-1.fc16.i686.rpm | 7.2 MB 00:18
Running Transaction Check
执行事务测试
事务测试成功
执行事务
正在安装 : kernel-PAE-devel-3.2.7-1.fc16.i686 1/1
已安装:
kernel-PAE-devel.i686 0:3.2.7-1.fc16
完毕!
[root@localhost ~]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [确定]
Uninstalling old VirtualBox DKMS kernel modules [确定]
Trying to register the VirtualBox kernel modules using DKMS[确定]
Starting VirtualBox kernel modules [确定]
yum install VirtualBox-4.1
yum install kernel
yum install kernel-devel
yum install gcc
yum groupinstall 'Development Tools'
yum install kernel-PAE-devel
编译错误解决办法:
如果以上办法还不行的话,例如编译日志/var/lib/dkms/vboxhost/4.1.8/build/make.log中出现如下错误,
/tmp/vbox.0/r0drv/linux/.tmp_memobj-r0drv-linux.o /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c: 在函数‘rtR0MemObjNativeLockKernel’中:
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:910:12: 警告: 比较指针和整数 [默认启用]
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:910:58: 警告: 比较指针和整数 [默认启用]
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c: 在函数‘rtR0MemObjLinuxDoMmap’中:
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1074:9: 错误: 隐式声明函数‘do_mmap’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] 错误 1
make[1]: *** [_module_/tmp/vbox.0] 错误 2
make: *** [vboxguest] 错误 2
那么,你就只好到http://download.virtualbox.org/virtualbox/去下载最新版本的virtuaBox吧
到 “添加/删除软件” 中删除旧版本VirtualBox,安装新版本
[root@localhost home]# rpm -ivh VirtualBox-4.2-4.2.4_81684_fedora16-1.i686.rpm
warning: VirtualBox-4.2-4.2.4_81684_fedora16-1.i686.rpm: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY
Preparing... ########################################### [100%]
1:VirtualBox-4.2 ########################################### [100%]
Creating group 'vboxusers'. VM users must be member of that group!
No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.
Stopping VirtualBox kernel modules [确定]
Uninstalling old VirtualBox DKMS kernel modules [确定]
Trying to register the VirtualBox kernel modules using DKMS[确定]
Starting VirtualBox kernel modules [确定]
最后
以上就是美丽月光为你收集整理的virtualBox Fedora16的全部内容,希望文章能够帮你解决virtualBox Fedora16所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复