[Kludged workaround] Guest Additions failure on SLES 11.4

Discussions about using Linux guests in VirtualBox.
Post Reply
cardamom
Posts: 3
Joined: 8. May 2019, 17:10

[Kludged workaround] Guest Additions failure on SLES 11.4

Post by cardamom »

Upgrade from VB 5.2.18 to 6.0.6

Shared Folders no longer working

vboxsf module not being made.

Having same problem on 3 guest instances of SLES 11.4.

4th instance of SLES 11.4 still running Guest Additions 5.2.6 - shared folders work.

Windows guests: shared folders work.
SLES 12.1: shared folders work.

Detail of SLES 11.4 Guest Additions install:

ossvirt2:~ # uname -r
3.0.101-63-default
ossvirt2:~ # /sbin/rcvboxadd quicksetup 3.0.101-63-default
ossvirt2:~ # /sbin/rcvboxadd quicksetup all
ossvirt2:~ # rcvboxadd setup

The following X<dot>Org/XFree86 configuration files were restored, but still
contain references to the Guest Additions drivers. You may wish to check and
possibly correct the restored configuration files to be sure that the server
will continue to work after it is restarted.

/etc/X11/xorg.conf

VirtualBox Guest Additions: Starting.
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: or
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 3.0.101-63-default.

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

ossvirt2:~ # cat /var/log/vboxadd-setup.log
Building the main Guest Additions module for kernel 3.0.101-63-default.
Building the shared folder support module.
Error building the module. Build output follows.
make V=1 CONFIG_MODULE_SIG= -C /lib/modules/3.0.101-63-default/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j1 modules
make -C ../../../linux-3.0.101-63 O=/usr/src/linux-3.0.101-63-obj/x86_64/default/. modules
make -C /usr/src/linux-3.0.101-63-obj/x86_64/default \
KBUILD_SRC=/usr/src/linux-3.0.101-63 \
KBUILD_EXTMOD="/tmp/vbox.0" -f /usr/src/linux-3.0.101-63/Makefile \
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 /usr/src/linux-3.0.101-63/scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/.vfsmod.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/4.3/include -I/usr/src/linux-3.0.101-63/arch/x86/include -Iarch/x86/include/generated -Iinclude -I/usr/src/linux-3.0.101-63/include -include include/generated/autoconf.h -I/tmp/vbox.0 -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 -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 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector -fomit-frame-pointer -fasynchronous-unwind-tables -g -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -Wno-declaration-after-statement -fno-pie -include /tmp/vbox.0//include/VBox/VBoxGuestMangling.h -fshort-wchar -I/lib/modules/3.0.101-63-default/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DIN_MODULE -DIN_GUEST -DIN_GUEST_R0 -DRT_NO_EXPORT_SYMBOL -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vfsmod)" -D"KBUILD_MODNAME=KBUILD_STR(vboxsf)" -c -o /tmp/vbox.0/.tmp_vfsmod.o /tmp/vbox.0/vfsmod.c
In file included from /tmp/vbox.0/vfsmod.h:45,
from /tmp/vbox.0/vfsmod.c:44:


/tmp/vbox.0/include/iprt/asm.h: In function ‘ASMAtomicAddZ’:
/tmp/vbox.0/include/iprt/asm.h:2862: warning: unused variable ‘RTASSERTVAR’
In file included from /tmp/vbox.0/vfsmod.c:44:
/tmp/vbox.0/vfsmod.h: In function ‘sf_access_permissions_to_vbox’:
/tmp/vbox.0/vfsmod.h:451: warning: unused variable ‘RTASSERTVAR’
/tmp/vbox.0/vfsmod.c: In function ‘vbsf_super_info_copy_remount_options’:
/tmp/vbox.0/vfsmod.c:111: warning: unused variable ‘RTASSERTVAR’
/tmp/vbox.0/vfsmod.c: In function ‘init’:
/tmp/vbox.0/vfsmod.c:930: warning: unused variable ‘RTASSERTVAR’
gcc -Wp,-MD,/tmp/vbox.0/.dirops.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/4.3/include -I/usr/src/linux-3.0.101-63/arch/x86/include -Iarch/x86/include/generated -Iinclude -I/usr/src/linux-3.0.101-63/include -include include/generated/autoconf.h -I/tmp/vbox.0 -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 -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 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector -fomit-frame-pointer -fasynchronous-unwind-tables -g -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -Wno-declaration-after-statement -fno-pie -include /tmp/vbox.0//include/VBox/VBoxGuestMangling.h -fshort-wchar -I/lib/modules/3.0.101-63-default/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DIN_MODULE -DIN_GUEST -DIN_GUEST_R0 -DRT_NO_EXPORT_SYMBOL -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(dirops)" -D"KBUILD_MODNAME=KBUILD_STR(vboxsf)" -c -o /tmp/vbox.0/.tmp_dirops.o /tmp/vbox.0/dirops.c
In file included from /tmp/vbox.0/vfsmod.h:45,
from /tmp/vbox.0/dirops.c:35:
/tmp/vbox.0/include/iprt/asm.h: In function ‘ASMAtomicAddZ’:
/tmp/vbox.0/include/iprt/asm.h:2862: warning: unused variable ‘RTASSERTVAR’
In file included from /tmp/vbox.0/dirops.c:35:
/tmp/vbox.0/vfsmod.h: In function ‘sf_access_permissions_to_vbox’:
/tmp/vbox.0/vfsmod.h:451: warning: unused variable ‘RTASSERTVAR’
/tmp/vbox.0/dirops.c: In function ‘vbsf_create_worker’:
/tmp/vbox.0/dirops.c:903: warning: unused variable ‘RTASSERTVAR’
gcc -Wp,-MD,/tmp/vbox.0/.lnkops.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/4.3/include -I/usr/src/linux-3.0.101-63/arch/x86/include -Iarch/x86/include/generated -Iinclude -I/usr/src/linux-3.0.101-63/include -include include/generated/autoconf.h -I/tmp/vbox.0 -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 -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 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector -fomit-frame-pointer -fasynchronous-unwind-tables -g -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -Wno-declaration-after-statement -fno-pie -include /tmp/vbox.0//include/VBox/VBoxGuestMangling.h -fshort-wchar -I/lib/modules/3.0.101-63-default/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DIN_MODULE -DIN_GUEST -DIN_GUEST_R0 -DRT_NO_EXPORT_SYMBOL -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lnkops)" -D"KBUILD_MODNAME=KBUILD_STR(vboxsf)" -c -o /tmp/vbox.0/.tmp_lnkops.o /tmp/vbox.0/lnkops.c
In file included from /tmp/vbox.0/vfsmod.h:45,
from /tmp/vbox.0/lnkops.c:35:
/tmp/vbox.0/include/iprt/asm.h: In function ‘ASMAtomicAddZ’:
/tmp/vbox.0/include/iprt/asm.h:2862: warning: unused variable ‘RTASSERTVAR’
In file included from /tmp/vbox.0/lnkops.c:35:
/tmp/vbox.0/vfsmod.h: In function ‘sf_access_permissions_to_vbox’:
/tmp/vbox.0/vfsmod.h:451: warning: unused variable ‘RTASSERTVAR’
gcc -Wp,-MD,/tmp/vbox.0/.regops.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/4.3/include -I/usr/src/linux-3.0.101-63/arch/x86/include -Iarch/x86/include/generated -Iinclude -I/usr/src/linux-3.0.101-63/include -include include/generated/autoconf.h -I/tmp/vbox.0 -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 -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 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector -fomit-frame-pointer -fasynchronous-unwind-tables -g -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -Wno-declaration-after-statement -fno-pie -include /tmp/vbox.0//include/VBox/VBoxGuestMangling.h -fshort-wchar -I/lib/modules/3.0.101-63-default/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DIN_MODULE -DIN_GUEST -DIN_GUEST_R0 -DRT_NO_EXPORT_SYMBOL -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(regops)" -D"KBUILD_MODNAME=KBUILD_STR(vboxsf)" -c -o /tmp/vbox.0/.tmp_regops.o /tmp/vbox.0/regops.c
In file included from /tmp/vbox.0/vfsmod.h:45,
from /tmp/vbox.0/regops.c:35:
/tmp/vbox.0/include/iprt/asm.h: In function ‘ASMAtomicAddZ’:
/tmp/vbox.0/include/iprt/asm.h:2862: warning: unused variable ‘RTASSERTVAR’
In file included from /tmp/vbox.0/regops.c:35:
/tmp/vbox.0/vfsmod.h: In function ‘sf_access_permissions_to_vbox’:
/tmp/vbox.0/vfsmod.h:451: warning: unused variable ‘RTASSERTVAR’
/tmp/vbox.0/regops.c: At top level:
/tmp/vbox.0/regops.c:133: warning: ‘vbsf_unlock_user_pages’ declared inline after being called
/tmp/vbox.0/regops.c:133: warning: previous declaration of ‘vbsf_unlock_user_pages’ was here
/tmp/vbox.0/regops.c: In function ‘vbsf_iter_max_span_of_pages’:
/tmp/vbox.0/regops.c:2374: warning: unused variable ‘RTASSERTVAR’
/tmp/vbox.0/regops.c: In function ‘vbsf_reg_fsync’:
/tmp/vbox.0/regops.c:3190: error: too few arguments to function ‘generic_file_fsync’
/tmp/vbox.0/regops.c: At top level:
/tmp/vbox.0/regops.c:3509: warning: initialization from incompatible pointer type
make[4]: *** [/tmp/vbox.0/regops.o] Error 1
make[3]: *** [_module_/tmp/vbox.0] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make: *** [vboxsf] Error 2

Installing X<dot>Org Server 1.6 modules
The following X<dot>Org/XFree86 configuration files were originally generated by
the VirtualBox Guest Additions and were not modified:

/etc/X11/XF86Config

You may need to restart the Window System (or just restart the guest system)
to enable the Guest Additions.
Last edited by cardamom on 9. May 2019, 15:39, edited 1 time in total.
cardamom
Posts: 3
Joined: 8. May 2019, 17:10

Re: Guest Additions failure on SLES 11.4

Post by cardamom »

Any help would be appreciated.
cardamom
Posts: 3
Joined: 8. May 2019, 17:10

[Kludged workaround] Guest Additions failure on SLES 11.4

Post by cardamom »

titan:~ # lsmod | grep vb
vboxguest 364715 6

(find old SLES 11.4 machine last used with VB 5.2.6; start; find vb modules in /lib/modules; copy modules to machine that cannot complete the Guest Additions compile)

titan:~ # insmod /home/aftadmin/vboxsf.ko

titan:~ # cd /media
titan:/media # cat xmnt.sh
#!/bin/sh

mount -t vboxsf $1 /media/sf_$1
titan:/media # ./xmnt.sh VBshare

titan:/media # lsmod | grep vb
vboxsf 42803 1
vboxguest 364715 7 vboxsf

(Works...for now)

Other things being considered:
1. downgrading to 5.2.x
2. digging in to why the GA compile fails (hints welcomed)
3. wish that we didn't have to support SLES 11.4 any longer, but with 400+ instances, that wish may not come true for a while
Post Reply