Ask Your Question

Fedora 17 64-Bit Building Guest Additions Module [failed]

asked 2012-08-05 16:03:29 -0600

fedoraNoob gravatar image

updated 2012-08-07 07:03:44 -0600

Hi, I am having trouble trying to install the VirtualBox Guest Addtions on my Fedora 17 virtual machine.

I have updated yum, installed the header dependencies, set the KERNDIR to /usr/src/kernels/'uname -r', exported the KERNDIR and started the installation. However, I keep getting the following error:

   "Building the main Guest Additions module [FAILED]" (Look at /var/log/vboxadd-install.log to find out what went wrong)

So I opened up the file it tells me that my kernel configurations are wrong. I don't get it. Any help would be appreciated :)

I have read on the oracle website that this is a bug in the version 3.5 kernels from Fedora. I have tried updating the memobj-r0dv-linux.c file located in /usr/src/vboxguest-4.1.18/vboxguest/r0drv/linux, however I am still getting the same error. The link to the error topic is here: [].

I am sorry for having to post the log file like this, but for some reason the links are not working.. the vbaddinstall.log contents are below:

 Building module:
  cleaning build area....
  make KERNELRELEASE03.5.0-2.fc17.x86_64 -C /lib/
  modules/3.5.0-2.fc17.x86_64/build M=var/lib/dkms/vboxguest/4.1.18/
  build.....(bad exit status: 2)
  Error! Bad return status for module build on kernel:
  3.5.0-2.fc17.x86_64 (x86_64)
  Consult /var/lib/dkms/vboxguest/4.1.18/build/make.log/for more information.
  make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/3.5.0-2.fc17.x86_64/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;                               \
    mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
    make -f scripts/ obj=/tmp/vbox.0
      gcc -Wp,-MD,/tmp/vbox.0/.VBoxGuest-linux.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.7.0/include -I/usr/src/kernels/3.5.0-2.fc17.x86_64/arch/x86/include -Iarch/x86/include/generated -Iinclude  -include /usr/src/kernels/3.5.0-2.fc17.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_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -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 -fconserve-stack -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h -I/lib/modules/3.5.0-2.fc17.x86_64/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 ...
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-01-09 17:04:06 -0600

vladvbud gravatar image

updated 2013-01-09 17:06:11 -0600

I've got the same error in the kernel module compilation while installing VirtualBox on Fedora-18-beta-x86_64. The problem seems to be connected with some changes in the latest kernels src tree, and was solved by copying (or linking) two files autoconf.h and version.h from




edit flag offensive delete link more

answered 2012-08-11 17:09:43 -0600

First, make sure your system is updated with yum update and then install the following kernel-devel kernel-headers dkms gcc gcc-c+. You should then be able to mount the Guest Additions ISO and run ./ You can also install Guest Additions from the RPM Fusion repository by adding that repository and installing VirtualBox-guest

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-08-05 16:03:29 -0600

Seen: 10,016 times

Last updated: Jan 09 '13