centos6.4 安装virtualbox增强功能报错

挂载以后,操作如下:
[root@myplay share]# ls
32Bit autorun.sh runasroot.sh VBoxWindowsAdditions-amd64.exe
64Bit cert VBoxLinuxAdditions.run VBoxWindowsAdditions.exe
AUTORUN.INF OS2 VBoxSolarisAdditions.pkg VBoxWindowsAdditions-x86.exe
[root@myplay share]# ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.28 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.28 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules [确定]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module 失败
Doing non-kernel setup of the Guest Additions [确定]
Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
[root@myplay share]# cd /var/lo
local/ lock/ log/

[root@myplay share]# vi /var/log/vboxadd-install.log

/opt/VBoxGuestAdditions-4.3.28/src/vboxguest-4.3.28/build_in_tmp: line 62: make: command not found
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
/opt/VBoxGuestAdditions-4.3.28/src/vboxguest-4.3.28/build_in_tmp: line 62: make: command not found
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
/opt/VBoxGuestAdditions-4.3.28/src/vboxguest-4.3.28/build_in_tmp: line 62: make: command not found
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/2.6.32-573.7.1.el6.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
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."; \
echo; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.0
。。。。。。。。。。。。

2个回答

虚拟机中的CentOS6.4编译安装增强功能时,有一些包需要安装,并且有个特殊的配置。相比之下,openSUSE非常好,默认就直接支持了vbox增强功能。
首先转变成su用户,然后进入目录/media/VBOXADDITIONS_4.1.12_77218(不同的virtualBox版本可能会有不同的目录),然后执行以下命令即可:
yum install gcc
yum install kern......
答案就在这里:CentOS6.4安装VirtualBox增强功能
----------------------Hi,地球人,我是问答机器人小S,上面的内容就是我狂拽酷炫叼炸天的答案,除了赞同,你还有别的选择吗?

安装的版本问题?32位的安装了64位版本的程序?

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐