centos8 /sbin/vboxconfig 错误

运行VirtualBox出现错误提示,要求执行
/sbin/vboxconfig

[root@root signed-modules]# /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

无法正常执行,

应该是内核缺东西

# 看看有没有补丁包什么的
yum search virtualbox

========================================================= 名称 和 概况 匹配:virtualbox ==========================================================
VirtualBox-5.2.x86_64 : Oracle VM VirtualBox
VirtualBox-6.0.x86_64 : Oracle VM VirtualBox
VirtualBox-6.1.x86_64 : Oracle VM VirtualBox
VirtualBox-devel.x86_64 : VirtualBox SDK
VirtualBox-guest-additions.x86_64 : VirtualBox Guest Additions
VirtualBox-kmodsrc.noarch : VirtualBox kernel module source code
VirtualBox-server.x86_64 : core part (host server) for VirtualBox
VirtualBox-webservice.x86_64 : WebService GUI part for VirtualBox
akmod-VirtualBox.x86_64 : Akmod package for VirtualBox kernel module(s)
kmod-VirtualBox.x86_64 : Metapackage which tracks in VirtualBox kernel module for newest kernel
python3-VirtualBox.x86_64 : Python3 bindings for VirtualBox
============================================================= 名称 匹配:virtualbox ==============================================================
VirtualBox.x86_64 : A general-purpose full virtualizer for PC hardware

发现一个kmod-VirtualBox.x86_64 : Metapackage which tracks in VirtualBox kernel module for newest kernel 大概意思就是给新内核用的

yum install kmod-VirtualBox.x86_64

安装完成以后
再次执行


[root@root signed-modules]# /sbin/vboxconfig
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.

OK了

你可能感兴趣的:(centos8 /sbin/vboxconfig 错误)