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

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

时间: 2024-10-31 01:12:42

centos 增强功能安装失败的相关文章

有关Virtualbox虚拟机增强功能安装的问题

在老师给定的步骤下并不能正常的完成Virtualbox虚拟机增强功能安装而是显示下图 原文地址:https://www.cnblogs.com/15248252144dzx/p/8455573.html

virtualbox虚拟机kali增强功能安装

添加更新源 leafpad /etc/apt/sources.list 阿里塬 deb http://mirrors.aliyun.com/kali sana main non-free contrib deb http://mirrors.aliyun.com/kali-security/ sana/updates main contrib non-free deb-src http://mirrors.aliyun.com/kali-security/ sana/updates main c

VMware Tools for Linux 增强功能安装

cd /media/VBoxLinuxAdditions_5.1(版本号什么的)/ 进入后 sh VBoxLinuxAdditions.run 报错 解决的办法是依次输入命令: yum install updateyum update kernelyum update kernel-develyum install kernel-headersyum install gccyum install gcc make 重启

virtualBOX 增强功能安装

#yum install kernel-headers #yum install kernel-devel #yum install kernel* #yum install gcc* #yum install make http://www.cnblogs.com/sbaicl/archive/2012/10/23/2734814.html

VS2012部分功能安装失败---oprating system 事件日志文件已满的警报

此错误可能是vs2010的组件未卸载干净导致, 我的做法是: 先将vs2012 卸载 然后将以下组件卸载: Microsoft Visual C++ 2010 x64 Redistributable Microsoft Visual C++ 2010 x86 Redistributable Microsoft Visual Studio 2010 Tools for Office Runtime (x64) Microsoft Visual Studio 2010 Tools for Offic

Debian 7 安装使用 Virtualbox及增强功能

一.安装virtualbox 可以从源里安装 sudo apt-get install virtualbox 也可以下载最新版安装 https://www.virtualbox.org/wiki/Downloads 二.安装增强功能 安装增强功能前先安装这个: #apt-get install build-essential #apt-get install linux-headers-$(uname -r) 最好重启虚拟机再从菜单里选择“安装增强功能”. 然后进入光驱目录里运行: sh ./V

VirtualBox安装增强功能

一.安装依赖包 #yum install kernel-headers #yum install kernel-devel #yum install gcc* #yum install make 二.安装增强功能 安装命令 #mount /dev/cdrom /mnt/cdrom #cd /mnt/cdrom #./VBoxLinuxAdditions.run 安装完需要重启

VirtualBox安装增强功能(CentOS 6.5)

首先在虚拟机菜单栏设备中,选择"安装增强功能",如下图 这样,在/dev/cdrom下就会有一下文件 然后,准备安装之前的准备(参考:VirtualBox安装增强功能(Linux) ),安装依赖包: #yum install kernel-headers #yum install kernel-devel #yum install gcc* #yum install make 安装kernel-devel,gcc,make都很顺利,安装kernel-headers时,确费了一番功夫.总

虚拟机下安装centos提醒增强功能

在VirtualBox虚拟机中安装了Centos系统,安装增强功能时报错,错误为"centos the headers for the current running kernel were not found......",报错原因是系统找不到kernel headers,在网上找到了方法,原解决方案为: 1)yum install gcc  -y 2)yum install gcc kernel-devel kernel-headers -y 3)重启系统 但在执行上述步骤并重启系