windows 10 的OS下安裝 virtualbox 6.0.24,
virtualbox裡面跑虛擬 ubuntu 20,但是檢視的"無縫模式" 選項是灰色的,無法使用
請問該怎麼辦?(update upgrade build-essential 都裝了)
guest addition 也裝了,結果如下:
sudo sh ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.24 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.0.24 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules. This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 5.8.0-33-generic.
VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out
what went wrong
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
********************************************************
查看 var/log/vboxadd-setup.log,有看到錯誤字樣,但不知道有沒沒關係
tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.c: In function ‘
rtR0MemAllocExecVmArea’:
/tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.c:171:15: error: implicit
declaration of function ‘__get_vm_area’; did you mean ‘get_vm_area’?
[-Werror=implicit-function-declaration]
171 | pVmArea = __get_vm_area(cbAlloc, VM_ALLOC, MODULES_VADDR,
MODULES_END);
| ^~~~~~~~~~~~~
| get_vm_area
/tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.c:171:13: warning: assignment to ‘
struct vm_struct *’ from ‘int’ makes pointer from integer without a cast
[-Wint-conversion]
171 | pVmArea = __get_vm_area(cbAlloc, VM_ALLOC, MODULES_VADDR,
MODULES_END);
| ^
/tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.c:204:14: error: implicit
declaration of function ‘map_vm_area’; did you mean ‘get_vm_area’?
[-Werror=implicit-function-declaration]
204 | if (!map_vm_area(pVmArea, PAGE_KERNEL_EXEC,
| ^~~~~~~~~~~
| get_vm_area
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:290:
/tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.o] 錯誤 1
make[1]: *** [Makefile:1780: /tmp/vbox.0] Error 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:117: vboxguest] Error 2
~
***************************************************
請問是不是版本的問題? ubuntu要換版本嗎?
救命啊~~~