码迷,mamicode.com
首页 > 其他好文 > 详细

centos 增强功能安装失败

时间:2018-08-04 00:35:29      阅读:1527      评论:0      收藏:0      [点我收藏+]

标签:bsp   linu   start   guest   add   参考   gcc   val   star   

centos 共享目录设置失败

/sbin/mount.vboxsf: mounting failed with the error: No such device

 

准备安装增强功能

[root@localhost log]# cd /opt/VBoxGuestAdditions-5.2.1/init/
[root@localhost init]# ls
vboxadd vboxadd-service vboxadd-x11
[root@localhost 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

 

[root@localhost 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:

[root@centos log]# rpm -qa |grep kernel

...

 

解决方式:

安装缺失软件包

[root@localhost /]# yum install kernel kernel-devel kernel-headers gcc make
已加载插件:fastestmirror

...

[root@localhost init]# yum groupinstall "Development Tools"
已加载插件:fastestmirror

..

[root@localhost init]# reboot

 

 增强

技术分享图片

 

 

 

[root@localhost /]# cd /opt/VBoxGuestAdditions-5.2.1/init/

[root@localhost /]# ./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 增强功能安装失败

标签:bsp   linu   start   guest   add   参考   gcc   val   star   

原文地址:https://www.cnblogs.com/heheisme/p/9416984.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!