Koozali.org: home of the SME Server

[RESOLVED] virtualbox install on 9.x

Offline jameswilson

  • *
  • 794
  • +0/-0
    • Security Warehouse, trade security equipment
[RESOLVED] virtualbox install on 9.x
« on: November 19, 2016, 01:11:32 AM »
Code: [Select]
[root@borris ~]# /etc/init.d/vboxdrv status
VirtualBox kernel modules (vboxdrv) are loaded.
[root@borris ~]# /etc/init.d/vboxdrv setup                                      Stopping VirtualBox kernel modules                         [  OK  ]
Uninstalling old VirtualBox DKMS kernel modules            [  OK  ]
Removing old VirtualBox kernel module                      [  OK  ]
Trying to register the VirtualBox kernel modules using DKMSError! Bad return status for module build on kernel: 2.6.32-642.6.2.el6.x86_64 (x86_64)
Consult /var/lib/dkms/vboxhost/5.0.6/build/make.log for more information.
                                                           [FAILED]
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules                      [FAILED]
  (Look at /var/log/vbox-install.log to find out what went wrong)
[root@borris ~]#

I have looked at the log files and they report an error 2
I can attach if needed.
virtualbox is running (I'm using phpvbox to interface but the network isn't etc.
Any ideas please?

James
« Last Edit: November 20, 2016, 05:53:14 PM by jameswilson »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: virtualbox install on 9.x
« Reply #1 on: November 19, 2016, 09:08:49 AM »
did you follow all the steps in this page: https://wiki.contribs.org/Phpvirtualbox ?

Offline jameswilson

  • *
  • 794
  • +0/-0
    • Security Warehouse, trade security equipment
Re: virtualbox install on 9.x
« Reply #2 on: November 19, 2016, 06:29:52 PM »
Yes I have I also installed the kernel headers but thay are not listed on the wiki.

I have found this in the error logfile though

Quote
  gcc -Wp,-MD,/tmp/vbox.0/.vboxdrv.mod.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.4.7/include -Iinclude  -I/usr/src/kernels/2.6.32-642.11.1.el6.x86_64/include/uapi -I/usr/src/kernels/2.6.32-642.11.1.el6.x86_64/arch/x86/include -Iarch/include/generated -Iinclude -include /usr/src/kernels/2.6.32-642.11.1.el6.x86_64/include/linux/kconfig.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 -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/2.6.32-642.11.1.el6.x86_64/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 -DSUPDRV_WITH_RELEASE_LOGGER -Wno-declaration-after-statement -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vboxdrv.mod)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -D"DEBUG_HASH=60" -D"DEBUG_HASH2=43" -DMODULE -c -o /tmp/vbox.0/vboxdrv.mod.o /tmp/vbox.0/vboxdrv.mod.c
  ld -r -m elf_x86_64 -T /usr/src/kernels/2.6.32-642.11.1.el6.x86_64/scripts/module-common.lds --build-id -o /tmp/vbox.0/vboxdrv.ko /tmp/vbox.0/vboxdrv.o /tmp/vbox.0/vboxdrv.mod.o
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /lib/modules/2.6.32-642.11.1.el6.x86_64/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/*
make -f scripts/Makefile.build obj=/tmp/vbox.0
  gcc -Wp,-MD,/tmp/vbox.0/linux/.VBoxNetFlt-linux.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.4.7/include -Iinclude  -I/usr/src/kernels/2.6.32-642.11.1.el6.x86_64/include/uapi -I/usr/src/kernels/2.6.32-642.11.1.el6.x86_64/arch/x86/include -Iarch/include/generated -Iinclude -include /usr/src/kernels/2.6.32-642.11.1.el6.x86_64/include/linux/kconfig.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 -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/2.6.32-642.11.1.el6.x86_64/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxnetflt/ -I/tmp/vbox.0/vboxnetflt/include -I/tmp/vbox.0/vboxnetflt/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -Wno-declaration-after-statement -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(VBoxNetFlt_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxnetflt)" -D"DEBUG_HASH=60" -D"DEBUG_HASH2=11" -c -o /tmp/vbox.0/linux/.tmp_VBoxNetFlt-linux.o /tmp/vbox.0/linux/VBoxNetFlt-linux.c
/tmp/vbox.0/linux/VBoxNetFlt-linux.c: In function ‘vboxNetFltLinuxPacketHandler’:
/tmp/vbox.0/linux/VBoxNetFlt-linux.c:934: error: implicit declaration of function ‘vlan_tx_tag_present’
/tmp/vbox.0/linux/VBoxNetFlt-linux.c:944: error: implicit declaration of function ‘vlan_tx_tag_get’
make[2]: *** [/tmp/vbox.0/linux/VBoxNetFlt-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxnetflt] Error 2


Offline jameswilson

  • *
  • 794
  • +0/-0
    • Security Warehouse, trade security equipment
Re: virtualbox install on 9.x
« Reply #3 on: November 19, 2016, 06:35:45 PM »
this is the bit that should of been in bold

Quote
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.";   

Offline jameswilson

  • *
  • 794
  • +0/-0
    • Security Warehouse, trade security equipment
Re: virtualbox install on 9.x
« Reply #4 on: November 19, 2016, 06:49:47 PM »
on trying that
make oldconfig completes but

make prepare
Quote
[root@borris 2.6.32-642.11.1.el6.x86_64]# make prepare
make[1]: Nothing to be done for `all'.
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
make[1]: *** No rule to make target `missing-syscalls'.  Stop.
make: *** [prepare0] Error 2
[root@borris 2.6.32-642.11.1.el6.x86_64]#

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: virtualbox install on 9.x
« Reply #5 on: November 20, 2016, 12:09:04 AM »
well, in your first post I read:

"Trying to register the VirtualBox kernel modules using DKMSError! Bad return status for module build on kernel: 2.6.32-642.6.2.el6.x86_64 (x86_64)"

but in your last post I see:

[root@borris 2.6.32-642.11.1.el6.x86_64]

so there's something wrong IMO

can you paste here the output of
Code: [Select]
rpm -qa | grep kernel
?

Offline jameswilson

  • *
  • 794
  • +0/-0
    • Security Warehouse, trade security equipment
Re: virtualbox install on 9.x
« Reply #6 on: November 20, 2016, 02:23:40 PM »
Inbetween posts I did a update.

Quote
[root@borris ~]# rpm -qa | grep kernel
kernel-2.6.32-642.6.2.el6.x86_64
kernel-2.6.32-642.11.1.el6.x86_64
kernel-2.6.32-642.4.2.el6.x86_64
kernel-devel-2.6.32-642.6.2.el6.x86_64
kernel-firmware-2.6.32-642.11.1.el6.noarch
kernel-headers-2.6.32-642.11.1.el6.x86_64
dracut-kernel-004-409.el6_8.2.noarch
kernel-devel-2.6.32-642.4.2.el6.x86_64
kernel-devel-2.6.32-642.11.1.el6.x86_64
[root@borris ~]#

Offline jameswilson

  • *
  • 794
  • +0/-0
    • Security Warehouse, trade security equipment
Re: [RESOLVED] virtualbox install on 9.x
« Reply #7 on: November 20, 2016, 05:55:10 PM »
I have sorted this

I was following the guide which was installing virtualbox v 5.0.6 and running into the above issue

I performed a yum upgrade but enabled the virtualbox repo this installed v 5.0.28 and the problem fixed itself. I assume its something in the 5.0.6 version of virtualbox

Thanks anyway
James