查看: 2874|回复: 3

[问题求解] virtualbox仍然安装不成功

[复制链接]
发表于 2018-5-15 12:38:00 | 显示全部楼层 |阅读模式
如下:

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (4.9.0-0.bpo.5-amd64) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /etc/init.d/vboxdrv setup

         You will not be able to start VMs until this problem is fixed.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (4.9.0-0.bpo.5-amd64) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /etc/init.d/vboxdrv setup

         You will not be able to start VMs until this problem is fixed.



回复

使用道具 举报

 楼主| 发表于 2018-5-15 12:41:21 | 显示全部楼层
按照指示:

/etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMSError! Bad return status for module build on kernel: 4.9.0-0.bpo.5-amd64 (x86_64)
Consult /var/lib/dkms/vboxhost/4.3.40/build/make.log for more information.
...failed!
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
  (Look at /var/log/vbox-install.log to find out what went wrong)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2018-7-9 18:00:12 | 显示全部楼层
升级到3.0.6。问题照旧。        
回复 支持 反对

使用道具 举报

发表于 2019-11-26 12:04:20 | 显示全部楼层
今天我也遇到了同样的问题。查看了一下上面提示的log,发现报错主要是这个
  1. /var/lib/dkms/vboxhost/4.3.40/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1049:18: error: too many arguments to function ‘get_user_pages’
  2.              rc = get_user_pages(R3Ptr,                  /* Where from. */
  3.                   ^
  4. In file included from /var/lib/dkms/vboxhost/4.3.40/build/vboxdrv/r0drv/linux/the-linux-kernel.h:88:0,
  5.                  from /var/lib/dkms/vboxhost/4.3.40/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
  6. /usr/src/linux-headers-4.9.0-0.bpo.6-common/include/linux/mm.h:1304:6: note: declared here
  7. long get_user_pages(unsigned long start, unsigned long nr_pages,
  8.       ^
复制代码

  1. /var/lib/dkms/vboxhost/4.3.40/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1060:18: error: too many arguments to function ‘get_user_pages_remote’
  2.              rc = get_user_pages_remote(
  3.                   ^
  4. In file included from /var/lib/dkms/vboxhost/4.3.40/build/vboxdrv/r0drv/linux/the-linux-kernel.h:88:0,
  5.                  from /var/lib/dkms/vboxhost/4.3.40/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
  6. /usr/src/linux-headers-4.9.0-0.bpo.6-common/include/linux/mm.h:1300:6: note: declared here
  7. long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
  8.       ^
  9. /usr/src/linux-headers-4.9.0-0.bpo.6-common/scripts/Makefile.build:298: recipe for target '/var/lib/dkms/vboxhost/4.3.40/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o' failed
  10. make[4]: *** [/var/lib/dkms/vboxhost/4.3.40/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o] Error 1
  11. /usr/src/linux-headers-4.9.0-0.bpo.6-common/scripts/Makefile.build:549: recipe for target '/var/lib/dkms/vboxhost/4.3.40/build/vboxdrv' failed
  12. make[3]: *** [/var/lib/dkms/vboxhost/4.3.40/build/vboxdrv] Error 2
  13. /usr/src/linux-headers-4.9.0-0.bpo.6-common/Makefile:1517: recipe for target '_module_/var/lib/dkms/vboxhost/4.3.40/build' failed
  14. make[2]: *** [_module_/var/lib/dkms/vboxhost/4.3.40/build] Error 2
  15. Makefile:152: recipe for target 'sub-make' failed
  16. make[1]: *** [sub-make] Error 2
  17. Makefile:8: recipe for target 'all' failed
  18. make: *** [all] Error 2
  19. make: Leaving directory '/usr/src/linux-headers-4.9.0-0.bpo.6-amd64'
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|万由科技 ( 浙ICP备10004788号-13 )

GMT+8, 2024-3-29 05:51 , Processed in 0.091013 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表