CentOS 7.4 guest fail in update guest additions when update to VirtualBox 5.2.0

Discussions about using Linux guests in VirtualBox.
Post Reply
cesarjorgemartinez
Posts: 16
Joined: 7. Jul 2016, 11:53

CentOS 7.4 guest fail in update guest additions when update to VirtualBox 5.2.0

Post by cesarjorgemartinez »

Hi,

Today I got an update of VirtualBox and I installed it (in Windows host).
The version is: 5.2.0

Then, I start my Centos 7.4 VM and reinstall Guest Additions:
- Insert CD image of Guest Additions.

Then:
- The mount point is incorrect version?:
/run/media/user/VBox_GAs_5.2.1

And try to execute the update:
./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.2.1 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 5.2.1 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel modules.
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.

And the log:
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.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/.hgsmi_base.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I./arch/x86/include -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./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 -std=gnu89 -O2 -m64 -mno-mmx -mno-sse -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -Wframe-larger-than=2048 -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/lib/modules/3.10.0-693.2.2.el7.x86_64/build/include -I/tmp/vbox.0 -Iinclude/drm -D__KERNEL__ -DMODULE -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(hgsmi_base)" -D"KBUILD_MODNAME=KBUILD_STR(vboxvideo)" -c -o /tmp/vbox.0/.tmp_hgsmi_base.o /tmp/vbox.0/hgsmi_base.c
/tmp/vbox.0/hgsmi_base.c: In function ‘hgsmi_send_caps_info’:
/tmp/vbox.0/hgsmi_base.c:99:2: error: implicit declaration of function ‘AssertRC’ [-Werror=implicit-function-declaration]
AssertRC(p->rc);
^
cc1: some warnings being treated as errors
make[2]: *** [/tmp/vbox.0/hgsmi_base.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxvideo] Error 2


Howto fix this, or a workaround?
I can downgrade to previous version 5.1.28?

Regards
Cesar Jorge
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: CentOS 7.4 guest fail in update guest additions when update to VirtualBox 5.2.0

Post by socratis »

Known issue. Please try the updated images on the downloads page which should fix both problems.
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.
cesarjorgemartinez
Posts: 16
Joined: 7. Jul 2016, 11:53

Re: CentOS 7.4 guest fail in update guest additions when update to VirtualBox 5.2.0

Post by cesarjorgemartinez »

Hi,

Not working at least for Windows hosts (Windows 7).

I did:

- Download and reinstall http://download.virtualbox.org/virtualb ... 31-Win.exe (Repair option). Fail same results.
- Remove completely VirtualBox (deinstall), and:
Remove C:\Archivos de programa\Oracle\VirtualBox, C:\Users\myuser\.VirtualBox, C:\Users\myuser\AppData\Local\Temp\VirtualBox, C:\Users\myuser\AppData\Local\VirtualStore\Program Files\Oracle\VirtualBox
Reboot
Execute CCleaner to clean regedit

- Download and install http://download.virtualbox.org/virtualb ... 31-Win.exe. Fail same results, and other issue: The extension pack is not detected automatically, and I did:
Manually download http://download.virtualbox.org/virtualb ... ox-extpack, and install (from preferences->extensions)

- Then, entering in the guest, and insert Image of Guest: Same version 5.2.1, and when install, fail by same reason.

- Other thing that I try: Manually download from guest the file http://download.virtualbox.org/virtualb ... _5.2.0.iso, and install it. Then fail by same reason.

- If I manually install http://download.virtualbox.org/virtualb ... 5.1.30.iso, then works...

Regard,
Cesar Jorge
twchan
Posts: 5
Joined: 26. Nov 2014, 19:18

Re: CentOS 7.4 guest fail in update guest additions when update to VirtualBox 5.2.0

Post by twchan »

Hi,

You were supposed to manually download https://www.virtualbox.org/download/tes ... 118447.iso to solve that particular build error
cesarjorgemartinez
Posts: 16
Joined: 7. Jul 2016, 11:53

Re: CentOS 7.4 guest fail in update guest additions when update to VirtualBox 5.2.0

Post by cesarjorgemartinez »

Hi,

Today I tried with that file (https://www.virtualbox.org/download/tes ... 118447.iso), and it still fails.

Send log files:

vboxadd-install.log

Code: Select all

SELinux:  Could not downgrade policy file /etc/selinux/targeted/policy/policy.30, searching for an older version.
SELinux:  Could not open policy file <= /etc/selinux/targeted/policy/policy.30:  No such file or directory
/sbin/load_policy:  Can't load policy:  No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2. (No such file or directory).
SELinux:  Could not downgrade policy file /etc/selinux/targeted/policy/policy.30, searching for an older version.
SELinux:  Could not open policy file <= /etc/selinux/targeted/policy/policy.30:  No such file or directory
/sbin/load_policy:  Can't load policy:  No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2. (No such file or directory).
OSError: No such file or directory
chcon: can't apply partial context to unlabeled file ‘/opt/VBoxGuestAdditions-5.2.1/other/mount.vboxsf’
vboxadd-setup.log

Code: Select all

...
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.";      \
...
mkdir -p /lib/modules/3.10.0-693.5.2.el7.x86_64/misc
make -f ./scripts/Makefile.modinst
  mkdir -p /lib/modules/3.10.0-693.5.2.el7.x86_64/misc; cp /tmp/vbox.0/vboxvideo.ko /lib/modules/3.10.0-693.5.2.el7.x86_64/misc ; true /lib/modules/3.10.0-693.5.2.el7.x86_64/misc/vboxvideo.ko ; perl ./scripts/sign-file "sha256" ./signing_key.priv ./signing_key.x509 /lib/modules/3.10.0-693.5.2.el7.x86_64/misc/vboxvideo.ko || true
Can't read private key
  /bin/sh ./scripts/depmod.sh /sbin/depmod 3.10.0-693.5.2.el7.x86_64 ""
...
Regards
cesarjorgemartinez
Posts: 16
Joined: 7. Jul 2016, 11:53

Re: CentOS 7.4 guest fail in update guest additions when update to VirtualBox 5.2.0

Post by cesarjorgemartinez »

Hi,

Exists already a solution?
I perform a test again?

Regards
cesarjorgemartinez
Posts: 16
Joined: 7. Jul 2016, 11:53

Re: CentOS 7.4 guest fail in update guest additions when update to VirtualBox 5.2.0

Post by cesarjorgemartinez »

Hi,

In the new version 5.2.2 it works.

Thanks
Post Reply