centos 增强功能安装失败
Posted heheisme
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos 增强功能安装失败相关的知识,希望对你有一定的参考价值。
centos 共享目录设置失败
/sbin/mount.vboxsf: mounting failed with the error: No such device
准备安装增强功能
[[email protected] log]# cd /opt/VBoxGuestAdditions-5.2.1/init/
[[email protected] init]# ls
vboxadd vboxadd-service vboxadd-x11
[[email protected] init]# ./vboxadd setup
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
modprobe vboxguest failed
[[email protected] log]# cat vboxadd-install.log |grep echo
echo " ERROR: Kernel configuration is invalid.";
echo " include/linux/autoconf.h or include/config/auto.conf are missing.";
echo " Run ‘make oldconfig && make prepare‘ on kernel src to fix it.";
Files autoconf.h and auto.conf are present.
Kernel is newest:
[[email protected] log]# rpm -qa |grep kernel
...
解决方式:
安装缺失软件包
[[email protected] /]# yum install kernel kernel-devel kernel-headers gcc make
已加载插件:fastestmirror
...
[[email protected] init]# yum groupinstall "Development Tools"
已加载插件:fastestmirror
..
[[email protected] init]# reboot
增强
[[email protected] /]# cd /opt/VBoxGuestAdditions-5.2.1/init/
[[email protected] /]# ./vboxadd setup
设置共享目录...
参考:
https://wiki.centos.org/HowTos/Virtualization/VirtualBox/CentOSguest
https://forums.virtualbox.org/viewtopic.php?t=85105
https://www.centos.org/forums/viewtopic.php?t=1654
以上是关于centos 增强功能安装失败的主要内容,如果未能解决你的问题,请参考以下文章
VirtualBox Centos8安装增强功能失败 未能加载虚拟光盘到虚拟电脑