Verifying archive integrity... All good. Uncompressing VirtualBox 6.1.20 Guest Additions for Linux........ VirtualBox Guest Additions installer Removing installed version 6.1.16 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 4.18.0-240.1.1.el8_3.x86_64.
VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what went wrong modprobe vboxguest failed The log file /var/log/vboxadd-setup.log may contain further information. Press Return to close this window...
查看错误日志/var/log/vboxadd-setup.log:
1 2 3 4 5 6 7 8 9 10
[sogrey@localhost ~]$ sudo cat /var/log/vboxadd-setup.log [sudo] sogrey 的密码: Building the main Guest Additions 6.1.20 module for kernel 4.18.0-240.1.1.el8_3.x86_64. Error building the module. Build output follows. make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/4.18.0-240.1.1.el8_3.x86_64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j2 modules make[1]: warning: -jN forced in submake: disabling jobserver mode. Makefile:978: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop. make: *** [/tmp/vbox.0/Makefile-footer.gmk:117: vboxguest] Error 2 modprobe vboxguest failed [sogrey@localhost ~]$
提示我们Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel.
总下载:58 k 安装大小:34 k 确定吗?[y/N]: y 下载软件包: [MIRROR] elfutils-libelf-devel-0.180-1.el8.x86_64.rpm: Curl error (28): Timeout was reached for http://mirrors.cqu.edu.cn/CentOS/8.3.2011/BaseOS/x86_64/os/Packages/elfutils-libelf-devel-0.180-1.el8.x86_64.rpm [Connection timed out after 30000 milliseconds] elfutils-libelf-devel-0.180-1.el8.x86_64.rpm 1.9 kB/s | 58 kB 00:30 --------------------------------------------------------------------------------------- 总计 1.9 kB/s | 58 kB 00:30 运行事务检查 事务检查成功。 运行事务测试 事务测试成功。 运行事务 准备中 : 1/1 安装 : elfutils-libelf-devel-0.180-1.el8.x86_64 1/1 运行脚本: elfutils-libelf-devel-0.180-1.el8.x86_64 1/1 验证 : elfutils-libelf-devel-0.180-1.el8.x86_64 1/1 Installed products updated.
已安装: elfutils-libelf-devel-0.180-1.el8.x86_64
完毕! [sogrey@localhost ~]$
安装完成后移出增强工具虚拟盘,重新挂载安装增强工具,遗憾,仍然失败:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Verifying archive integrity... All good. Uncompressing VirtualBox 6.1.20 Guest Additions for Linux........ VirtualBox Guest Additions installer Removing installed version 6.1.20 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 4.18.0-240.1.1.el8_3.x86_64. ValueError: File context for /opt/VBoxGuestAdditions-6.1.20/other/mount.vboxsf already defined Press Return to close this window...
注意提示ValueError: File context for /opt/VBoxGuestAdditions-6.1.20/other/mount.vboxsf already defined,说这个文件已经存在,网上找到这个帖子ValueError: mount.vboxsf already defined ,帖子末尾给出两句命令:
Verifying archive integrity... All good. Uncompressing VirtualBox 6.1.20 Guest Additions for Linux........ VirtualBox Guest Additions installer Removing installed version 6.1.20 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 4.18.0-240.1.1.el8_3.x86_64. VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted Press Return to close this window...