VirtualBox installation enhancement error “modprobe vboxguest failed”

1. Install kernel-devel, and update the kernel and kernel-devel to the same version
# yum install -y kernel-devel gcc //安装kernel-devel和gcc编译工具链
# yum -y upgrade kernel kernel-devel //更新kernel和kernel-devel到最新版本
# reboot //重启,重启时,选择最新版本的内核启动

2. Start with the new version of the kernel and delete the old version

//启动之后
# uname -r //查看当前启动的内核版本

# rpm -qa | grep kernel-[0-9] //查看全部的内核

# yum remove 旧版本内核 //删除旧版本内核

Read More: