failure to install guest additions

Discussions about using Linux guests in VirtualBox.
Post Reply
JimKyle
Posts: 3
Joined: 25. Sep 2012, 05:27

failure to install guest additions

Post by JimKyle »

I have a problem installing guest additions in a 64-bit Xubuntu 12.04 guest running in a 32-bit Xubuntu 10.04 host. The install fails consistently with a missing file. Here's the log:

Code: Select all

Uninstalling modules from DKMS
make KBUILD_VERBOSE=1 -C /lib/modules/3.2.0-31-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
	echo;								\
	echo "  ERROR: Kernel configuration is invalid.";		\
	echo "         include/generated/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/.test.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include  -I/usr/src/linux-headers-3.2.0-31-generic/arch/x86/include -Iarch/x86/include/generated -Iinclude  -include /usr/src/linux-headers-3.2.0-31-generic/include/linux/kconfig.h -Iubuntu/include  -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_FXSAVEQ=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/lib/modules/3.2.0-31-generic/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 -DVBGL_VBOXGUEST -DVBGL_HGCM -DVBOX_WITH_HGCM  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(test)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxadd_test)" -c -o /tmp/vbox.0/.tmp_test.o /tmp/vbox.0/test.c
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/test.o != "scripts/mod/empty.o" ]; then /usr/src/linux-headers-3.2.0-31-generic/scripts/recordmcount  "/tmp/vbox.0/test.o"; fi; fi;
  ld -m elf_x86_64   -r -o /tmp/vbox.0/vboxadd_test.o /tmp/vbox.0/test.o 
(cat /dev/null;   echo kernel//tmp/vbox.0/vboxadd_test.ko;) > /tmp/vbox.0/modules.order
make -f /usr/src/linux-headers-3.2.0-31-generic/scripts/Makefile.modpost
  scripts/mod/modpost -m -a -i /usr/src/linux-headers-3.2.0-31-generic/Module.symvers -I /tmp/vbox.0/Module.symvers  -o /tmp/vbox.0/Module.symvers -S -w  -s
  gcc -Wp,-MD,/tmp/vbox.0/.vboxadd_test.mod.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include  -I/usr/src/linux-headers-3.2.0-31-generic/arch/x86/include -Iarch/x86/include/generated -Iinclude  -include /usr/src/linux-headers-3.2.0-31-generic/include/linux/kconfig.h -Iubuntu/include  -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_FXSAVEQ=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/lib/modules/3.2.0-31-generic/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 -DVBGL_VBOXGUEST -DVBGL_HGCM -DVBOX_WITH_HGCM  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vboxadd_test.mod)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxadd_test)" -DMODULE  -c -o /tmp/vbox.0/vboxadd_test.mod.o /tmp/vbox.0/vboxadd_test.mod.c
  ld -r -m elf_x86_64 -T /usr/src/linux-headers-3.2.0-31-generic/scripts/module-common.lds --build-id  -o /tmp/vbox.0/vboxadd_test.ko /tmp/vbox.0/vboxadd_test.o /tmp/vbox.0/vboxadd_test.mod.o
/tmp/vbox.0/Makefile.include.header:87: Ignoring unknown BUILD_TYPE value '_BUILDTYPE_'.
make KBUILD_VERBOSE=1 -C /lib/modules/3.2.0-31-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
	echo;								\
	echo "  ERROR: Kernel configuration is invalid.";		\
	echo "         include/generated/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
/tmp/vbox.0/Makefile.include.header:93: Using BUILD_TYPE='release' from the environment.
  gcc -Wp,-MD,/tmp/vbox.0/.test_drm.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include  -I/usr/src/linux-headers-3.2.0-31-generic/arch/x86/include -Iarch/x86/include/generated -Iinclude  -include /usr/src/linux-headers-3.2.0-31-generic/include/linux/kconfig.h -Iubuntu/include  -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_FXSAVEQ=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/lib/modules/3.2.0-31-generic/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DLOG_TO_BACKDOOR -DRT_WITH_VBOX -DIN_MODULE -DIN_GUEST_R0 -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(test_drm)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxadd_test_drm)" -c -o /tmp/vbox.0/.tmp_test_drm.o /tmp/vbox.0/test_drm.c
  if [ "-pg" = "-pg" ]; then if [ /tmp/vbox.0/test_drm.o != "scripts/mod/empty.o" ]; then /usr/src/linux-headers-3.2.0-31-generic/scripts/recordmcount  "/tmp/vbox.0/test_drm.o"; fi; fi;
  ld -m elf_x86_64   -r -o /tmp/vbox.0/vboxadd_test_drm.o /tmp/vbox.0/test_drm.o 
(cat /dev/null;   echo kernel//tmp/vbox.0/vboxadd_test_drm.ko;) > /tmp/vbox.0/modules.order
make -f /usr/src/linux-headers-3.2.0-31-generic/scripts/Makefile.modpost
/tmp/vbox.0/Makefile.include.header:93: Using BUILD_TYPE='release' from the environment.
  scripts/mod/modpost -m -a -i /usr/src/linux-headers-3.2.0-31-generic/Module.symvers -I /tmp/vbox.0/Module.symvers  -o /tmp/vbox.0/Module.symvers -S -w  -s
  gcc -Wp,-MD,/tmp/vbox.0/.vboxadd_test_drm.mod.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include  -I/usr/src/linux-headers-3.2.0-31-generic/arch/x86/include -Iarch/x86/include/generated -Iinclude  -include /usr/src/linux-headers-3.2.0-31-generic/include/linux/kconfig.h -Iubuntu/include  -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_FXSAVEQ=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/lib/modules/3.2.0-31-generic/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DLOG_TO_BACKDOOR -DRT_WITH_VBOX -DIN_MODULE -DIN_GUEST_R0 -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vboxadd_test_drm.mod)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxadd_test_drm)" -DMODULE  -c -o /tmp/vbox.0/vboxadd_test_drm.mod.o /tmp/vbox.0/vboxadd_test_drm.mod.c
  ld -r -m elf_x86_64 -T /usr/src/linux-headers-3.2.0-31-generic/scripts/module-common.lds --build-id  -o /tmp/vbox.0/vboxadd_test_drm.ko /tmp/vbox.0/vboxadd_test_drm.o /tmp/vbox.0/vboxadd_test_drm.mod.o
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxguest/3.2.12/source ->
                 /usr/src/vboxguest-3.2.12

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.2.0-31-generic -C /lib/modules/3.2.0-31-generic/build M=/var/lib/dkms/vboxguest/3.2.12/build....(bad exit status: 2)
ERROR (dkms apport): binary package for vboxguest: 3.2.12 not found
Error! Bad return status for module build on kernel: 3.2.0-31-generic (x86_64)
Consult /var/lib/dkms/vboxguest/3.2.12/build/make.log for more information.
Failed to install using DKMS, attempting to install without
make KBUILD_VERBOSE=1 -C /lib/modules/3.2.0-31-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
	echo;								\
	echo "  ERROR: Kernel configuration is invalid.";		\
	echo "         include/generated/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/.VBoxGuest-linux.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.6/include  -I/usr/src/linux-headers-3.2.0-31-generic/arch/x86/include -Iarch/x86/include/generated -Iinclude  -include /usr/src/linux-headers-3.2.0-31-generic/include/linux/kconfig.h -Iubuntu/include  -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_FXSAVEQ=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/lib/modules/3.2.0-31-generic/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxguest/ -I/tmp/vbox.0/vboxguest/include -I/tmp/vbox.0/vboxguest/r0drv/linux -D__KERNEL__ -DMODULE -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST -DIN_GUEST_R0 -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(VBoxGuest_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxguest)" -c -o /tmp/vbox.0/.tmp_VBoxGuest-linux.o /tmp/vbox.0/VBoxGuest-linux.c
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:34:0,
                 from /tmp/vbox.0/VBoxGuest-linux.c:27:
/tmp/vbox.0/include/iprt/types.h:97:31: fatal error: linux/autoconf.h: No such file or directory
compilation terminated.
make[2]: *** [/tmp/vbox.0/VBoxGuest-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxguest] Error 2
How can I get past this situation?
JimKyle
Posts: 3
Joined: 25. Sep 2012, 05:27

Re: failure to install guest additions

Post by JimKyle »

Here's what happened after I restored an earlier snapshot to the VM and attempted to install the additions:

Code: Select all

jk@my64test:/media/VBOXADDITIONS_3.2.12_68302$ sudo ./VBoxLinuxAdditions-amd64.run
[sudo] password for jk: 
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.2.12 Guest Additions for Linux[b]Segmentation fault (core dumped)[/b]
[b]./VBoxLinuxAdditions-amd64.run: 360: test: -lt: unexpected operator[/b]
........
VirtualBox Guest Additions installer
Removing installed version 3.2.12 of VirtualBox Guest Additions...
Uninstalling old VirtualBox DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
[b]Building the main Guest Additions module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)[/b]
Installing the Window System drivers
Warning: unknown version of the X Window System installed.  Not installing
X Window System drivers.
Installing graphics libraries and desktop services components ...done.
jk@my64test:/media/VBOXADDITIONS_3.2.12_68302$ 
Any ideas? This has been consistent...

The "b" tags were my attempt to highlight the error messages but they obviously do not work in a code block...
Y E T I
Posts: 161
Joined: 9. Aug 2010, 01:47
Primary OS: Other
VBox Version: OSE self-compiled
Guest OSses: ?
Location: H i m a l a y a s
Contact:

Re: failure to install guest additions

Post by Y E T I »

you need newer release of vbox to support the newer xorg
JimKyle
Posts: 3
Joined: 25. Sep 2012, 05:27

Re: failure to install guest additions

Post by JimKyle »

I did manage to install on another box that's running later versions, so the problem is solved for now. However it's still a problem for those who for some reason cannot upgrade their hosts. Apparently the real problem is my attempt to run a 64-bit guest on a 32-bit host; perhaps this should simply not be allowed at all, rather than letting the user start something that cannot be finished...
Post Reply