![为 Ubuntu 20.04 客户机安装 VirtualBox Guest Additions](https://linux22.com/image/1068815/%E4%B8%BA%20Ubuntu%2020.04%20%E5%AE%A2%E6%88%B7%E6%9C%BA%E5%AE%89%E8%A3%85%20VirtualBox%20Guest%20Additions.png)
我尝试从 VM 管理器和 Ubuntu 存储库安装 Virtual Box。我一直收到此信息
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.4.0-37-generic.
update-initramfs: Generating /boot/initrd.img-5.4.0-37-generic
**VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted**
我已经更新了 VMware,删除了现有的 VirtualBox Additions 并尝试重新安装。但毫无效果。
答案1
您在问题中给出的输出是流程成功完成时的正常输出。您认为它没有起作用的原因是什么?
您可以通过在虚拟机中打开终端窗口并输入以下内容来验证已安装的来宾添加版本ls /opt
我刚刚成功完成了此操作,请注意类似的输出:
myusername@mycomputer:/media/myusername/VBox_GAs_6.1.10$sudo ./VBoxLinuxAdditions.run
[sudo] password for myusername:
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.10 Guest Additions for Linux........
VirtualBox Guest Additions installer
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.3.0-51-generic.
update-initramfs: Generating /boot/initrd.img-5.3.0-51-generic
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
myusername@mycomputer:/media/myusername/VBox_GAs_6.1.10$ ls /opt
VBoxGuestAdditions-6.1.10