Fala pessoal, tudo bem? Uso Debian Lenny com kernel compilado de versão 2.6.32.21 e estou tentando instalar o VirtualBox 4.0.0. Não instalei o VirtualBox pelos repositórios porque quero uma versão mais recente. Fui no site, baixei o binário e instalei pelo arquivo *.deb, e deu pra instalar, mas retornou a seguinte mensagem:
Código:
# dpkg -i virtualbox-4.0_4.0.0-69151~Debian~lenny_i386.deb
(Lendo banco de dados ... 177748 arquivos e diretórios atualmente instalados).
Preparando para substituir virtualbox-4.0 4.0.0-69151~Debian~lenny (usando virtualbox-4.0_4.0.0-69151~Debian~lenny_i386.deb) ...
* Stopping VirtualBox kernel modules * done.
Desempacotando substituto virtualbox-4.0 ...
Configurando virtualbox-4.0 (4.0.0-69151~Debian~lenny) ...
addgroup: The group `vboxusers' already exists and is not a system group. Exiting.
pycentral: pycentral pkginstall: not overwriting local files
pycentral pkginstall: not overwriting local files
* Stopping VirtualBox kernel modules * done.
* Uninstalling old VirtualBox DKMS kernel modules * done.
* Trying to register the VirtualBox kernel modules using DKMS
* Failed, trying without DKMS
* Recompiling VirtualBox kernel modules
* Look at /var/log/vbox-install.log to find out what went wrong
Quando inicio o virtualbox ele chega a abrir, mas aparece o seguinte aviso no terminal:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (2.6.32.21) or it failed to load. Please recompile the kernel module and install it by sudo /etc/init.d/vboxdrv setup
E quando rodo o comando que o aviso dá, recebo o seguinte erro:
Código:
# /etc/init.d/vboxdrv setup
* Stopping VirtualBox kernel modules * done.
* Uninstalling old VirtualBox DKMS kernel modules * done.
* Trying to register the VirtualBox kernel modules using DKMS
* Failed, trying without DKMS
* Recompiling VirtualBox kernel modules
* Look at /var/log/vbox-install.log to find out what went wrong
O conteúdo do arquivo de log especificado é o seguinte:
Código:
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -C /lib/modules/2.6.32.21/build 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/*
WARNING: Symbol version dump /usr/src/linux-2.6.32.21/Module.symvers
is missing; modules will have no dependencies and modversions.
make -f scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.3.2/include -Iinclude -I/usr/src/linux-2.6.32.21/arch/x86/include -include include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=core2 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -I/lib/modules/2.6.32.21/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxdrv/ -I/tmp/vbox.0/vboxdrv/include -I/tmp/vbox.0/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.0/linux/.tmp_SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
In file included from /tmp/vbox.0/linux/SUPDrv-linux.c:31:
/tmp/vbox.0/linux/../SUPDrvInternal.h:81:30: error: linux/version.h: Arquivo ou diretório não encontrado
/tmp/vbox.0/linux/../SUPDrvInternal.h:84:12: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/linux/../SUPDrvInternal.h:84:33: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/linux/../SUPDrvInternal.h:84:47: error: missing binary operator before token "("
/tmp/vbox.0/linux/../SUPDrvInternal.h:88:8: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/linux/../SUPDrvInternal.h:88:29: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/linux/../SUPDrvInternal.h:88:43: error: missing binary operator before token "("
In file included from include/linux/gfp.h:4,
from include/linux/slab.h:12,
from /tmp/vbox.0/linux/../SUPDrvInternal.h:100,
from /tmp/vbox.0/linux/SUPDrv-linux.c:31:
include/linux/mmzone.h:18:26: error: linux/bounds.h: Arquivo ou diretório não encontrado
include/linux/mmzone.h:258:5: warning: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
from include/linux/slab.h:12,
from /tmp/vbox.0/linux/../SUPDrvInternal.h:100,
from /tmp/vbox.0/linux/SUPDrv-linux.c:31:
include/linux/mmzone.h:300: error: ‘MAX_NR_ZONES’ undeclared here (not in a function)
In file included from /tmp/vbox.0/linux/SUPDrv-linux.c:31:
/tmp/vbox.0/linux/../SUPDrvInternal.h:101:8: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/linux/../SUPDrvInternal.h:101:30: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/linux/../SUPDrvInternal.h:101:44: error: missing binary operator before token "("
/tmp/vbox.0/linux/../SUPDrvInternal.h:104:34: error: asm/semaphore.h: Arquivo ou diretório não encontrado
In file included from /tmp/vbox.0/linux/SUPDrv-linux.c:32:
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:43:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:43:26: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:43:40: error: missing binary operator before token "("
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:46:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:46:27: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:46:41: error: missing binary operator before token "("
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:66:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:66:27: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:66:41: error: missing binary operator before token "("
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:72:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:72:27: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:72:41: error: missing binary operator before token "("
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:78:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:78:27: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:78:41: error: missing binary operator before token "("
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:81,
from /tmp/vbox.0/linux/SUPDrv-linux.c:32:
include/linux/mm.h:454:63: warning: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:502:62: warning: "NR_PAGEFLAGS" is not defined
In file included from /tmp/vbox.0/linux/SUPDrv-linux.c:32:
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:86:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:86:27: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:86:41: error: missing binary operator before token "("
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:89:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:89:27: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:89:41: error: missing binary operator before token "("
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:94:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:94:27: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:94:41: error: missing binary operator before token "("
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:117:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:117:26: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:117:40: error: missing binary operator before token "("
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:130:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:130:26: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:130:40: error: missing binary operator before token "("
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:171:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:171:26: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:171:40: error: missing binary operator before token "("
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:205:7: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:205:29: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:205:43: error: missing binary operator before token "("
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:207:7: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:207:29: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:207:43: error: missing binary operator before token "("
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:225:6: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:225:27: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:225:41: error: missing binary operator before token "("
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:232:6: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:232:27: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:232:41: error: missing binary operator before token "("
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:270:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:270:27: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:270:41: error: missing binary operator before token "("
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:358:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:358:27: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:358:41: error: missing binary operator before token "("
/tmp/vbox.0/linux/SUPDrv-linux.c:47:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/linux/SUPDrv-linux.c:47:27: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/linux/SUPDrv-linux.c:47:41: error: missing binary operator before token "("
/tmp/vbox.0/linux/SUPDrv-linux.c:71:7: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/linux/SUPDrv-linux.c:71:28: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/linux/SUPDrv-linux.c:71:42: error: missing binary operator before token "("
/tmp/vbox.0/linux/SUPDrv-linux.c:174:6: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/linux/SUPDrv-linux.c:174:28: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/linux/SUPDrv-linux.c:174:42: error: missing binary operator before token "("
/tmp/vbox.0/linux/SUPDrv-linux.c:222:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/linux/SUPDrv-linux.c:222:27: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/linux/SUPDrv-linux.c:222:41: error: missing binary operator before token "("
/tmp/vbox.0/linux/SUPDrv-linux.c: In function ‘vboxdrvLinuxUid’:
/tmp/vbox.0/linux/SUPDrv-linux.c:225: error: ‘struct task_struct’ has no member named ‘uid’
/tmp/vbox.0/linux/SUPDrv-linux.c:231:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/linux/SUPDrv-linux.c:231:27: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/linux/SUPDrv-linux.c:231:41: error: missing binary operator before token "("
/tmp/vbox.0/linux/SUPDrv-linux.c: In function ‘vboxdrvLinuxGid’:
/tmp/vbox.0/linux/SUPDrv-linux.c:234: error: ‘struct task_struct’ has no member named ‘gid’
/tmp/vbox.0/linux/SUPDrv-linux.c:240:5: warning: "LINUX_VERSION_CODE" is not defined
/tmp/vbox.0/linux/SUPDrv-linux.c:240:27: warning: "KERNEL_VERSION" is not defined
/tmp/vbox.0/linux/SUPDrv-linux.c:240:41: error: missing binary operator before token "("
/tmp/vbox.0/linux/SUPDrv-linux.c: In function ‘vboxdrvLinuxEuid’:
/tmp/vbox.0/linux/SUPDrv-linux.c:243: error: ‘struct task_struct’ has no member named ‘euid’
make[2]: ** [/tmp/vbox.0/linux/SUPDrv-linux.o] Erro 1
make[1]: ** [_module_/tmp/vbox.0] Erro 2
make: ** [vboxdrv] Erro 2
Alguém tem ideia do que pode estar acontecendo? Não estou conseguindo muita ajuda no google.