[Fixed] Install GuestAddition 6 on RHEL6 fail (#18249)

Discussions about using Linux guests in VirtualBox.

[Fixed] Install GuestAddition 6 on RHEL6 fail (#18249)

Postby EaseTheWorld » 28. Dec 2018, 09:42


ModEdit; related ticket: #18249: Installation of GuestAddition 6 on RHEL6 fails

I used RHEL6 guest with additions on Windows 10 and recently upgrade virtualbox to 6.
after that I lost shared folder so tried to install GuestAddition 6 but fail.
Error message is below.
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.0 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.0.0 of VirtualBox Guest Additions...
vboxadd-service.sh: Stopping VirtualBox Guest Addition service.
You may need to restart your guest system to finish removing the guest drivers.
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules. This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: Building the modules for kernel 2.6.32-754.9.1.el6.x86_64.

VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what went wrong
VirtualBox Guest Additions: Running kernel modules will not be replaced until the system is restarted
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: modprobe vboxsf failed
Press Return to close this window...

/var/log/vboxadd-setup.log.1 attached
Building the main Guest Additions module for kernel 2.6.32-754.9.1.el6.x86_64.
Building the shared folder support module.
Error building the module. Build output follows.
make V=1 CONFIG_MODULE_SIG= -C /lib/modules/2.6.32-754.9.1.el6.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j1 modules
/usr/src/kernels/2.6.32-754.9.1.el6.x86_64/arch/x86/Makefile:131: CONFIG_RETPOLINE=y, but not supported by the compiler. Compiler update recommended.
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/.vfsmod.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.4.7/include -Iinclude -I/usr/src/kernels/2.6.32-754.9.1.el6.x86_64/include/uapi -I/usr/src/kernels/2.6.32-754.9.1.el6.x86_64/arch/x86/include -Iarch/include/generated -Iinclude -include /usr/src/kernels/2.6.32-754.9.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 -Wno-declaration-after-statement -fshort-wchar -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h -fno-pie -I/lib/modules/2.6.32-754.9.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/vboxsf/ -I/tmp/vbox.0/vboxsf/include -I/tmp/vbox.0/vboxsf/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DIN_MODULE -DIN_GUEST_R0 -DRT_NO_EXPORT_SYMBOL -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vfsmod)" -D"KBUILD_MODNAME=KBUILD_STR(vboxsf)" -D"DEBUG_HASH=41" -D"DEBUG_HASH2=24" -c -o /tmp/vbox.0/.tmp_vfsmod.o /tmp/vbox.0/vfsmod.c
/tmp/vbox.0/vfsmod.c: In function ‘sf_show_options’:
/tmp/vbox.0/vfsmod.c:509: error: dereferencing pointer to incomplete type
/tmp/vbox.0/vfsmod.c:515: error: implicit declaration of function ‘seq_printf’
/tmp/vbox.0/vfsmod.c:518: error: implicit declaration of function ‘seq_puts’
/tmp/vbox.0/vfsmod.c:519: error: implicit declaration of function ‘seq_escape’
make[2]: *** [/tmp/vbox.0/vfsmod.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxsf] Error 2
Installing X.Org Server 1.17 modules
You may need to restart the Window System (or just restart the guest system)
to enable the Guest Additions.
Last edited by socratis on 8. Jan 2019, 23:56, edited 3 times in total.
Reason: Marked as [Fixed].
EaseTheWorld
 
Posts: 2
Joined: 28. Dec 2018, 09:36

Re: Install GuestAddition 6 on RHEL6 fail

Postby toracat » 29. Dec 2018, 01:50

I can reproduce the build error. Will see if it can be fixed ...
Beginning is easy – Continuing is hard.
toracat
 
Posts: 86
Joined: 8. Dec 2018, 02:39
Location: California, USA
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: RHEL CentOS Scientific Linux

Re: Install GuestAddition 6 on RHEL6 fail

Postby toracat » 30. Dec 2018, 03:08

Thanks to the work of Pablo Greco, it was found that the build errors were due to missing header files. I filed a bug report #18249 and submitted a patch.
Beginning is easy – Continuing is hard.
toracat
 
Posts: 86
Joined: 8. Dec 2018, 02:39
Location: California, USA
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: RHEL CentOS Scientific Linux

Re: Install GuestAddition 6 on RHEL6 fail (#18249)

Postby toracat » 8. Jan 2019, 21:09

News! The latest test build, VBoxGuestAdditions_6.0.1-128006, has fixed the issue.
Beginning is easy – Continuing is hard.
toracat
 
Posts: 86
Joined: 8. Dec 2018, 02:39
Location: California, USA
Primary OS: Linux other
VBox Version: PUEL
Guest OSses: RHEL CentOS Scientific Linux

Re: Install GuestAddition 6 on RHEL6 fail (#18249)

Postby socratis » 8. Jan 2019, 23:56

Thanks for confirming @toracat! Marking as [Fixed].
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.
socratis
Site Moderator
 
Posts: 26934
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: [Fixed] Install GuestAddition 6 on RHEL6 fail (#18249)

Postby markos2680 » 9. Jan 2019, 16:28

The latest test build, VirtualBox-6.0.1-128018-Linux_amd64, has fixed the issue : "vbox fails to install on any Red Hat Linux"

Tested on :

Host : Lubuntu 18.04 x64
Guest : Oracle Linux 5.7 ( fresh installation )
markos2680
 
Posts: 7
Joined: 1. Aug 2018, 23:33


Return to Linux Guests

Who is online

Users browsing this forum: Jambon and 20 guests