VirtualBox 6.1(版本 6.1.32 r149290(Qt5.6.2))能否在 Windows 11 上正确安装?
我设法在 VirtualBox 6.1(在 Windows 11 主机上)中安装了 CentOS 7.9.2009,但无论我做什么(例如,遵循modprobe vboxguest 失败)我无法安装 Guest Additions,其中日志仅显示:
[root@ansible-server ~# cat /var/log/vboxadd-setup.log
modprobe vboxquest failed
采取的步骤:
以下内容安装在来宾虚拟机上:
[rbarak@ansible-server~]$ rpm -qa | sort | egrep 'dkms|binutils|gcc|make|patch|libgomp|glibc-headers|glibc-devel|kernel-headers|kernel-devel'
binutils-2.27-44.base.el7_9.1.x86 64
dkms-3.0.3-1.el7.noarch
gcc-4.8.5-44.el7. x86 64
glibc-devel-2.17-325.el7 9.x86 64
glibc-headers-2.17-325.e17 9.x86 64
kernel-devel-3.10.0-1160.59.1.el7.x86 64
kernel-headers-3.10.0-1160.59.1.el7.x86 64
kpatch-0.6.1-6.el7.noarch-libgcc-4.8.5-44.e17. x86 64
libgomp-4.8.5-44.e17.x86_64
make-3.82-24.el7.x86_64
patch-2.7.1-12.el7_7.x86_64
speech-dispatcher-0.7.1-15.el7.x86 64
speech-dispatcher-python-0.7.1-15.el7.x86 64
[rbarak@ansible-server~]$ uname
3.10.0-1160.e17.x86 64
安装这些 RPM 后,客户虚拟机将重新启动。
但是,Guest Additions 安装失败:
Verifying archive integrity... All good
Uncompressing VirtualBox 6.1.32 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.32 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: /bin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions: /bin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Kernel headers not found for target kernel
3.10.0-1160.el7.x86_64. Please install them and execute /sbin/revboxadd setup
modprobe vboxquest failed
The log file /var/log/vboxadd-setup. log may contain further information
Press Return to close this window...
Drag'N'Drop 设置为双向:
内核头和活动内核似乎匹配:
[rbarak@ansible-server ~]$ uname
3.10.0-1160.e17.x86 64
[rbarak@ansible-server ~]$ rom -qa | grep 'kernel-kernel-devel-3.10.0-1160.59.1.e17.x86_64
kernel-3.10.0-1160.el7.x86_64
kernel-tools-3.10.0-1160.e17.x86_64
kernel-debug-devel-3.10.0-1160.59.1.el7.x86_64
kernel-headers-3.10.0-1160.59.1.el7.x86_64
kernel-tools-libs-3.10.0-1160.el7.x86_64
[rbarak@ansible-server~1$
答案1
看起来您已经通过安装了内核头文件yum install kernel-devel
。
您可能需要更新您的系统以yum update
获取当前内核头文件包。