unable to install vbox due to vboxdrv

Discussions related to using VirtualBox on Linux hosts.
Post Reply
junyu
Posts: 1
Joined: 29. Nov 2017, 05:16

unable to install vbox due to vboxdrv

Post by junyu »

installation steps
I cannot post u-r-l so the deb setup and key setup step are not included.

Code: Select all

sudo apt-get update
sudo apt-get install virtualbox-5.1
It says there are some problems with vboxdrv.sh and suggest I should run sudo /sbin/vboxconfig

Code: Select all

vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.

Code: Select all

 gcc -Wp,-MD,/tmp/vbox.0/generic/.mppresent-generic.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/4.10.1-041001-generic/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 -fno-omit-frame-pointer -fno-pie  -DMODULE  -DKBUILD_BASENAME='"mppresent_generic"'  -DKBUILD_MODNAME='"vboxdrv"' -c -o /tmp/vbox.0/generic/mppresent-generic.o /tmp/vbox.0/generic/mppresent-generic.c
  gcc -Wp,-MD,/tmp/vbox.0/generic/.uuid-generic.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/4.10.1-041001-generic/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 -fno-omit-frame-pointer -fno-pie  -DMODULE  -DKBUILD_BASENAME='"uuid_generic"'  -DKBUILD_MODNAME='"vboxdrv"' -c -o /tmp/vbox.0/generic/uuid-generic.o /tmp/vbox.0/generic/uuid-generic.c
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/generic/RTSemEventWaitNoResume-2-ex-generic.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/vbox.0/generic/RTSemEventWaitNoResume-2-ex-generic.o"; fi; fi;
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/generic/RTSemEventWait-2-ex-generic.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/vbox.0/generic/RTSemEventWait-2-ex-generic.o"; fi; fi;
  gcc -Wp,-MD,/tmp/vbox.0/VBox/.log-vbox.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/4.10.1-041001-generic/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 -fno-omit-frame-pointer -fno-pie  -DMODULE  -DKBUILD_BASENAME='"log_vbox"'  -DKBUILD_MODNAME='"vboxdrv"' -c -o /tmp/vbox.0/VBox/log-vbox.o /tmp/vbox.0/VBox/log-vbox.c
  gcc -Wp,-MD,/tmp/vbox.0/common/alloc/.heapsimple.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/4.10.1-041001-generic/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 -fno-omit-frame-pointer -fno-pie  -DMODULE  -DKBUILD_BASENAME='"heapsimple"'  -DKBUILD_MODNAME='"vboxdrv"' -c -o /tmp/vbox.0/common/alloc/heapsimple.o /tmp/vbox.0/common/alloc/heapsimple.c
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/generic/RTSemEventMultiWait-2-ex-generic.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/vbox.0/generic/RTSemEventMultiWait-2-ex-generic.o"; fi; fi;
(cat /dev/null;   echo kernel//tmp/vbox.0/vboxdrv.ko;) > /tmp/vbox.0/modules.order
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/VBox/log-vbox.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/vbox.0/VBox/log-vbox.o"; fi; fi;
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/generic/RTSemEventMultiWaitNoResume-2-ex-generic.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/vbox.0/generic/RTSemEventMultiWaitNoResume-2-ex-generic.o"; fi; fi;
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/generic/errvars-generic.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/vbox.0/generic/errvars-generic.o"; fi; fi;
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/generic/mppresent-generic.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/vbox.0/generic/mppresent-generic.o"; fi; fi;
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/generic/RTTimerCreate-generic.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/vbox.0/generic/RTTimerCreate-generic.o"; fi; fi;
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/common/alloc/heapsimple.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/vbox.0/common/alloc/heapsimple.o"; fi; fi;
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/generic/uuid-generic.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/vbox.0/generic/uuid-generic.o"; fi; fi;
  ld -m elf_x86_64   -r -o /tmp/vbox.0/vboxdrv.o /tmp/vbox.0/linux/SUPDrv-linux.o /tmp/vbox.0/SUPDrv.o /tmp/vbox.0/SUPDrvGip.o /tmp/vbox.0/SUPDrvSem.o /tmp/vbox.0/SUPDrvTracer.o /tmp/vbox.0/SUPLibAll.o /tmp/vbox.0/r0drv/alloc-r0drv.o /tmp/vbox.0/r0drv/initterm-r0drv.o /tmp/vbox.0/r0drv/memobj-r0drv.o /tmp/vbox.0/r0drv/mpnotification-r0drv.o /tmp/vbox.0/r0drv/powernotification-r0drv.o /tmp/vbox.0/r0drv/linux/assert-r0drv-linux.o /tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.o /tmp/vbox.0/r0drv/linux/initterm-r0drv-linux.o /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o /tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o /tmp/vbox.0/r0drv/linux/mp-r0drv-linux.o /tmp/vbox.0/r0drv/linux/mpnotification-r0drv-linux.o /tmp/vbox.0/r0drv/linux/process-r0drv-linux.o /tmp/vbox.0/r0drv/linux/rtStrFormatKernelAddress-r0drv-linux.o /tmp/vbox.0/r0drv/linux/semevent-r0drv-linux.o /tmp/vbox.0/r0drv/linux/semeventmulti-r0drv-linux.o /tmp/vbox.0/r0drv/linux/semfastmutex-r0drv-linux.o /tmp/vbox.0/r0drv/linux/semmutex-r0drv-linux.o /tmp/vbox.0/r0drv/linux/spinlock-r0drv-linux.o /tmp/vbox.0/r0drv/linux/thread-r0drv-linux.o /tmp/vbox.0/r0drv/linux/thread2-r0drv-linux.o /tmp/vbox.0/r0drv/linux/threadctxhooks-r0drv-linux.o /tmp/vbox.0/r0drv/linux/time-r0drv-linux.o /tmp/vbox.0/r0drv/linux/timer-r0drv-linux.o /tmp/vbox.0/r0drv/generic/semspinmutex-r0drv-generic.o /tmp/vbox.0/common/alloc/alloc.o /tmp/vbox.0/common/checksum/crc32.o /tmp/vbox.0/common/checksum/ipv4.o /tmp/vbox.0/common/checksum/ipv6.o /tmp/vbox.0/common/err/RTErrConvertFromErrno.o /tmp/vbox.0/common/err/RTErrConvertToErrno.o /tmp/vbox.0/common/log/log.o /tmp/vbox.0/common/log/logellipsis.o /tmp/vbox.0/common/log/logrel.o /tmp/vbox.0/common/log/logrelellipsis.o /tmp/vbox.0/common/log/logcom.o /tmp/vbox.0/common/log/logformat.o /tmp/vbox.0/common/misc/RTAssertMsg1Weak.o /tmp/vbox.0/common/misc/RTAssertMsg2.o /tmp/vbox.0/common/misc/RTAssertMsg2Add.o /tmp/vbox.0/common/misc/RTAssertMsg2AddWeak.o /tmp/vbox.0/common/misc/RTAssertMsg2AddWeakV.o /tmp/vbox.0/common/misc/RTAssertMsg2Weak.o /tmp/vbox.0/common/misc/RTAssertMsg2WeakV.o /tmp/vbox.0/common/misc/assert.o /tmp/vbox.0/common/misc/handletable.o /tmp/vbox.0/common/misc/handletablectx.o /tmp/vbox.0/common/misc/thread.o /tmp/vbox.0/common/string/RTStrCopy.o /tmp/vbox.0/common/string/RTStrCopyEx.o /tmp/vbox.0/common/string/RTStrCopyP.o /tmp/vbox.0/common/string/RTStrNCmp.o /tmp/vbox.0/common/string/RTStrNLen.o /tmp/vbox.0/common/string/stringalloc.o /tmp/vbox.0/common/string/strformat.o /tmp/vbox.0/common/string/strformatrt.o /tmp/vbox.0/common/string/strformattype.o /tmp/vbox.0/common/string/strprintf.o /tmp/vbox.0/common/string/strtonum.o /tmp/vbox.0/common/table/avlpv.o /tmp/vbox.0/common/time/time.o /tmp/vbox.0/r0drv/linux/RTLogWriteDebugger-r0drv-linux.o /tmp/vbox.0/generic/RTAssertShouldPanic-generic.o /tmp/vbox.0/generic/RTLogWriteStdErr-stub-generic.o /tmp/vbox.0/generic/RTLogWriteStdOut-stub-generic.o /tmp/vbox.0/generic/RTLogWriteUser-generic.o /tmp/vbox.0/generic/RTMpGetArraySize-generic.o /tmp/vbox.0/generic/RTMpGetCoreCount-generic.o /tmp/vbox.0/generic/RTSemEventWait-2-ex-generic.o /tmp/vbox.0/generic/RTSemEventWaitNoResume-2-ex-generic.o /tmp/vbox.0/generic/RTSemEventMultiWait-2-ex-generic.o /tmp/vbox.0/generic/RTSemEventMultiWaitNoResume-2-ex-generic.o /tmp/vbox.0/generic/RTTimerCreate-generic.o /tmp/vbox.0/generic/errvars-generic.o /tmp/vbox.0/generic/mppresent-generic.o /tmp/vbox.0/generic/uuid-generic.o /tmp/vbox.0/VBox/log-vbox.o /tmp/vbox.0/common/alloc/heapsimple.o 
make -f ./scripts/Makefile.modpost
  find /tmp/vbox.0/.tmp_versions -name '*.mod' | xargs -r grep -h '\.ko$' | sort -u | sed 's/\.ko$/.o/' | scripts/mod/modpost  -a -i ./Module.symvers -I /tmp/vbox.0/Module.symvers  -o /tmp/vbox.0/Module.symvers -S  -w  -s -T -
  gcc -Wp,-MD,/tmp/vbox.0/.vboxdrv.mod.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -fno-pie -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -fno-pie -no-pie -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -I/lib/modules/4.10.1-041001-generic/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 -fno-omit-frame-pointer -fno-pie  -DKBUILD_BASENAME='"vboxdrv.mod"'  -DKBUILD_MODNAME='"vboxdrv"' -DMODULE  -c -o /tmp/vbox.0/vboxdrv.mod.o /tmp/vbox.0/vboxdrv.mod.c
  ld -r -m elf_x86_64 -T ./scripts/module-common.lds --build-id  -o /tmp/vbox.0/vboxdrv.ko /tmp/vbox.0/vboxdrv.o /tmp/vbox.0/vboxdrv.mod.o ;  true
0  libLLVM-4.0.so.1 0x00007f51f92b29a8 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 56
1  libLLVM-4.0.so.1 0x00007f51f92b0b2e llvm::sys::RunSignalHandlers() + 62
2  libLLVM-4.0.so.1 0x00007f51f92b0c7c
3  libpthread.so.0  0x00007f51fbafc390
4  ld               0x0000000000514185
5  ld               0x00000000005a1b9e
6  ld               0x00000000005a7fb0
7  ld               0x00000000004892fe
8  ld               0x00000000004306d9
9  ld               0x0000000000489c69
10 ld               0x000000000042f7bd
11 libc.so.6        0x00007f51f8478830 __libc_start_main + 240
12 ld               0x0000000000436de9
Stack dump:
0.	Program arguments: ld -r -m elf_x86_64 -T ./scripts/module-common.lds --build-id -o /tmp/vbox.0/vboxdrv.ko /tmp/vbox.0/vboxdrv.o /tmp/vbox.0/vboxdrv.mod.o 
Segmentation fault (core dumped)
scripts/Makefile.modpost:129: recipe for target '/tmp/vbox.0/vboxdrv.ko' failed
make[2]: *** [/tmp/vbox.0/vboxdrv.ko] Error 139
Makefile:1499: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
Makefile:305: recipe for target 'vboxdrv' failed
make: *** [vboxdrv] Error 2
If more log is required, I can provide more.
I couldn't find similar problem online.
Please help me with this issue, thank you so much in advance!
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: unable to install vbox due to vboxdrv

Post by socratis »

junyu wrote:
sudo apt-get update
Is this from the VirtualBox repository or from the default Debian? If it is from Debian, you'll have to ask them, since they fork VirtualBox and they modify it in unknown ways. If this is the case, then please uninstall that one and install the official one from the VirtualBox site. See: https://www.virtualbox.org/wiki/Linux_Downloads
junyu wrote:
sudo apt-get install virtualbox-5.1
The latest version is 5.2.
junyu wrote:I couldn't find similar problem online.
Oh, come on, these forums alone have tens and tens of similar errors.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply