[Seek Help] virtual box 启动虚拟机报错
Tofloor
poster avatar
173******23
deepin
2021-04-11 18:50
Author

系统版本和virtual box 如下图,启动虚拟机报错,按错误提示执行/sbin/vboxconfig 也不行,大家帮我看看是啥问题

不知道怎么上传文件,就没上传日志文件,我把带error的地方复制出来了

这是日志中间的一段

/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjLinuxVMap’:

/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:560:34: error: implicit declaration of function ‘alloc_vm_area’; did you mean ‘find_vm_area’? [-Werror=implicit-function-declaration]

                 pMemLnx->pArea = alloc_vm_area(pMemLnx->Core.cb, papPtes); /* Note! pArea->nr_pages is not set. */

                                  ^~~~~~~~~~~~~

                                  find_vm_area

/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:560:32: warning: assignment to ‘struct vm_struct *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]

                 pMemLnx->pArea = alloc_vm_area(pMemLnx->Core.cb, papPtes); /* Note! pArea->nr_pages is not set. */

                                ^

这是日志的结尾

make[2]: *** [scripts/Makefile.build:279:/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] 错误 1

make[2]: *** 正在等待未完成的任务....

make[1]: *** [Makefile:1801:/tmp/vbox.0] 错误 2

make: *** [/tmp/vbox.0/Makefile-footer.gmk:117:vboxdrv] 错误 2

Reply Favorite View the author
All Replies
qq8645
deepin
2021-04-11 19:05
#1

virtualbox换6.1.18

Reply View the author
安洛
deepin
2021-04-11 19:16
#2

什么内核?vbox好像还不支持5.11。

Reply View the author
duanchi
deepin
2021-04-11 19:26
#3

去官网下载一个最新版的vbox就好了

Reply View the author
173******23
deepin
2021-04-11 20:27
#4
qq8645

virtualbox换6.1.18

哦哦,我装的应用商店的,那我去官网下个试试

Reply View the author
173******23
deepin
2021-04-11 20:28
#5
duanchi

去官网下载一个最新版的vbox就好了

好,我试试

Reply View the author
观摩
deepin
2021-04-12 02:39
#6

我还是更偏爱vmware一些

Reply View the author
littlebat
deepin
2021-04-12 03:25
#7
安洛

什么内核?vbox好像还不支持5.11。

我的是6.1.18 最新版,在5.11 stable 内核下执行 sudo  /sbin/vboxconfig 确实不能成功编译相关模块。

Reply View the author
littlebat
deepin
2021-04-12 03:35
#8
qq8645

virtualbox换6.1.18

正解,如果按官方的方法添加了 Debian 10 的 virtualbox  更新源,apt 正常升级就会升到 6.1.18的。

Reply View the author
tmld
deepin
2021-04-29 01:42
#9

@ androphyr  你的问题解决没?

Reply View the author
173******23
deepin
2021-05-02 01:30
#10
tmld

@ androphyr  你的问题解决没?

恩,按他们说的重新下载一个安装解决了

Reply View the author