VirtualBox shared folders

Issues related to applications and software problems
Post Reply
hitesh
Posts: 3
Joined: 2019/03/12 09:12:26

VirtualBox shared folders

Post by hitesh » 2019/03/12 09:52:29

I am running CentOS Linux release 7.6.1810 (Core) within Virtual Box Version 6.0.4 r128413 (Qt5.6.2)

I updated kernel to latest version

Code: Select all

uname -sr
Linux 5.0.1-1.el7.elrepo.x86_64

ls -la /usr/src/kernels
total 12
drwxr-xr-x.  5 root root  105 Mar 11 09:07 .
drwxr-xr-x.  4 root root   34 Mar 11 16:37 ..
drwxr-xr-x. 22 root root 4096 Mar  8 15:30 3.10.0-957.5.1.el7.x86_64
drwxr-xr-x. 23 root root 4096 Mar  8 11:36 5.0.0-2.el7.elrepo.x86_64
drwxr-xr-x. 23 root root 4096 Mar 11 09:07 5.0.1-1re.el7.elrepo.x86_64
So the issue is with setting up guest additions CD image, the following error in /var/log/vboxadd-setup.log . Functionality like copy clipboard works, but the shared folders are not working anymore. Interesting that shared folders work on the old kernel version still.

Code: Select all

Building the main Guest Additions module for kernel 5.0.1-1.el7.elrepo.x86_64.
Building the shared folder support module.
Error building the module.  Build output follows.
make V=1 CONFIG_MODULE_SIG= -C /lib/modules/5.0.1-1.el7.elrepo.x86_64/build SUBDIRS=/tmp/vbox.1 SRCROOT=/tmp/vbox.1 -j2 modules
Makefile:189: ================= WARNING ================
Makefile:190: 'SUBDIRS' will be removed after Linux 5.3
Makefile:191: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:192: ==========================================
make[1]: warning: -jN forced in submake: disabling jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\
/bin/false)
mkdir -p /tmp/vbox.1/.tmp_versions ; rm -f /tmp/vbox.1/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/tmp/vbox.1
  gcc -Wp,-MD,/tmp/vbox.1/.vfsmod.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror-implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -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 -mtune=generic -mno-red-zone -mcmodel=kernel -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_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-delete-null-pointer-checks -O2 -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Wno-declaration-after-statement -fshort-wchar -include /tmp/vbox.1/include/VBox/VBoxGuestMangling.h -fno-pie -I/lib/modules/5.0.1-1.el7.elrepo.x86_64/build/include -I/tmp/vbox.1/ -I/tmp/vbox.1/include -I/tmp/vbox.1/r0drv/linux -I/tmp/vbox.1/vboxsf/ -I/tmp/vbox.1/vboxsf/include -I/tmp/vbox.1/vboxsf/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_R0 -DRT_NO_EXPORT_SYMBOL -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -DKBUILD_BASENAME='"vfsmod"' -DKBUILD_MODNAME='"vboxsf"' -c -o /tmp/vbox.1/vfsmod.o /tmp/vbox.1/vfsmod.c
  gcc -Wp,-MD,/tmp/vbox.1/.dirops.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror-implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -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 -mtune=generic -mno-red-zone -mcmodel=kernel -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_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-delete-null-pointer-checks -O2 -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Wno-declaration-after-statement -fshort-wchar -include /tmp/vbox.1/include/VBox/VBoxGuestMangling.h -fno-pie -I/lib/modules/5.0.1-1.el7.elrepo.x86_64/build/include -I/tmp/vbox.1/ -I/tmp/vbox.1/include -I/tmp/vbox.1/r0drv/linux -I/tmp/vbox.1/vboxsf/ -I/tmp/vbox.1/vboxsf/include -I/tmp/vbox.1/vboxsf/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_R0 -DRT_NO_EXPORT_SYMBOL -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -DKBUILD_BASENAME='"dirops"' -DKBUILD_MODNAME='"vboxsf"' -c -o /tmp/vbox.1/dirops.o /tmp/vbox.1/dirops.c
/tmp/vbox.1/vfsmod.c: In function ‘sf_read_super_aux’:
/tmp/vbox.1/vfsmod.c:235:14: error: ‘MS_REMOUNT’ undeclared (first use in this function)
  if (flags & MS_REMOUNT) {

              ^
/tmp/vbox.1/vfsmod.c:235:14: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/tmp/vbox.1/vfsmod.o] Error 1
make[2]: *** Waiting for unfinished jobs....
  if objdump -h /tmp/vbox.1/dirops.o | grep -q __ksymtab; then gcc -E -D__GENKSYMS__ -Wp,-MD,/tmp/vbox.1/.dirops.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror-implicit-function-declaration -Werror=implicit-int -Wno-format-security -std=gnu89 -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 -mtune=generic -mno-red-zone -mcmodel=kernel -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_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-delete-null-pointer-checks -O2 -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Wno-declaration-after-statement -fshort-wchar -include /tmp/vbox.1/include/VBox/VBoxGuestMangling.h -fno-pie -I/lib/modules/5.0.1-1.el7.elrepo.x86_64/build/include -I/tmp/vbox.1/ -I/tmp/vbox.1/include -I/tmp/vbox.1/r0drv/linux -I/tmp/vbox.1/vboxsf/ -I/tmp/vbox.1/vboxsf/include -I/tmp/vbox.1/vboxsf/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_R0 -DRT_NO_EXPORT_SYMBOL -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -DKBUILD_BASENAME='"dirops"' -DKBUILD_MODNAME='"vboxsf"' /tmp/vbox.1/dirops.c | scripts/genksyms/genksyms    -r /dev/null > /tmp/vbox.1/.tmp_dirops.ver; ld -m elf_x86_64  -z max-page-size=0x200000 -r -o /tmp/vbox.1/.tmp_dirops.o /tmp/vbox.1/dirops.o -T /tmp/vbox.1/.tmp_dirops.ver; mv -f /tmp/vbox.1/.tmp_dirops.o /tmp/vbox.1/dirops.o; rm -f /tmp/vbox.1/.tmp_dirops.ver; fi
  if [ "-pg -mfentry" = "-pg -mfentry" ]; then if [ /tmp/vbox.1/dirops.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/vbox.1/dirops.o"; fi; fi
make[1]: *** [_module_/tmp/vbox.1] Error 2
make: *** [vboxsf] Error 2

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: VirtualBox shared folders

Post by TrevorH » 2019/03/12 17:27:50

This appears to be a VirtualBox problem.

We don't support the ELRepo kernels here though several of my fellow moderators actually run it. Is there a reason why you think you need such a recent kernel? The CentOS one works fine, especially if you wait for the next one that's about to come out which has a mouse bug with vbox fixed.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

hitesh
Posts: 3
Joined: 2019/03/12 09:12:26

Re: VirtualBox shared folders

Post by hitesh » 2019/03/13 10:41:17

TrevorH wrote:
2019/03/12 17:27:50
This appears to be a VirtualBox problem.

We don't support the ELRepo kernels here though several of my fellow moderators actually run it. Is there a reason why you think you need such a recent kernel? The CentOS one works fine, especially if you wait for the next one that's about to come out which has a mouse bug with vbox fixed.
Hi Trevor

Yes on the 3.0 kernel I am having a strange issue with unresponsiveness, i.e. I cannot close windows or click on any of the buttons in the menu bars. For example terminal or firefox. I think it is more prevalent when I have more than one window open.

This is resolved when updating the kernel.

This could be the mouse bug you are referring to?

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: VirtualBox shared folders

Post by TrevorH » 2019/03/13 13:11:06

If the problem is that nothing responds to mouse clicks, then yes.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

hitesh
Posts: 3
Joined: 2019/03/12 09:12:26

Re: VirtualBox shared folders

Post by hitesh » 2019/03/13 13:46:08

TrevorH wrote:
2019/03/13 13:11:06
If the problem is that nothing responds to mouse clicks, then yes.
Yes that would be it. When is the next kernel being released?

Post Reply