Instalando a adição de convidado do VirtualBox CentOs6.8

0

Um problema semelhante foi encontrado muitas vezes com base na minha pesquisa > Mas não consigo encontrar uma solução. Eu estou tentando instalar o VirtualBox Guest Addition (VBoxGuestAdditions_5.1.12.iso) em um CentOs6.8, a fim de construir uma caixa Vagrant.

No entanto, quando montei o ISO e executei o script, obtive o seguinte:

#sh /media/VBoxGuestAdditions/VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.12 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Building Guest Additions kernel modules.
Failed to set up service vboxadd, please check the log file
/var/log/VBoxGuestAdditions.log for details.




 **#cat /var/log/VBoxGuestAdditions.log**

vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: Please check that you have gcc, make, the header files for your Linux kernel and possibly perl                                                                                                                           installed..


**# cat /var/log/vboxadd-install.log**

make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/2.6.32-642.11.1.el6.x86_64/build SUBDIRS=/tmp/vbox.0 SRCRO                                                                                                                          OT=/tmp/vbox.0 -j4 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
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 =/tmp/vbox.0
make: *** empty variable name.  Stop.
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxguest] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

Com base no que vejo, falta a marca.

make: *** empty variable name.  Stop.
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxguest] Error 2

No entanto, instalei todos os pacotes necessários:

yum install gcc kernel-devel make
Loaded plugins: security
Setting up Install Process
Package gcc-4.4.7-17.el6.x86_64 already installed and latest version
Package kernel-devel-2.6.32-642.11.1.el6.x86_64 already installed and latest version
Package 1:make-3.81-23.el6.x86_64 already installed and latest version
Nothing to do

Encontrei algumas soluções, como instalar o kernel-devel, gcc etc. Mas nenhuma se aplica a mim. Eu não tive o mesmo problema no CentOS7. Alguma ideia de qual poderia ser a causa disso?

uname -r
2.6.32-642.11.1.el6.x86_64
    
por SSF 11.01.2017 / 01:46

0 respostas