5.0.22 Guest Additions on Win7 and Fedora 24

Discussions about using Linux guests in VirtualBox.
KiloOne
Posts: 10
Joined: 27. Jun 2016, 20:36

5.0.22 Guest Additions on Win7 and Fedora 24

Post by KiloOne »

I have installed Fedora 24 in an Oracle VirtualBox (v5.0.22 r 108 108) on a Win7 computer.
I am unable to add Guest Additions.
The log file when I try is this:

[dale@localhost log]$ cat vboxadd-install.log
grep: /lib/modules/4.5.7-300.fc24.x86_64/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/4.5.7-300.fc24.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
arch/x86/Makefile:133: stack-protector enabled but compiler support broken
Makefile:666: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
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.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make =/tmp/vbox.0
make: *** empty variable name. Stop.
Makefile:1396: recipe for target '_module_/tmp/vbox.0' failed
make[1]: *** [_module_/tmp/vbox.0] Error 2
/tmp/vbox.0/Makefile.include.footer:79: recipe for target 'vboxguest' failed
make: *** [vboxguest] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
[dale@localhost log]$

Any help would be appreciated.
Last edited by KiloOne on 27. Jun 2016, 23:08, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: 5.0.22 Guest Additions on Win7

Post by Perryg »

You either need to install or upgrade gcc.

Moving to Linux guest as this has very little to do with the host.
KiloOne
Posts: 10
Joined: 27. Jun 2016, 20:36

Re: 5.0.22 Guest Additions on Win7

Post by KiloOne »

Sorry, I'm a newbie and not even sure of where to ask :)

I had already installed gcc today, before that log file was created.

Code: Select all

[dale@localhost log]$ sudo dnf upgrade gcc
[sudo] password for dale: 
Last metadata expiration check: 4:48:56 ago on Mon Jun 27 12:17:04 2016.
Dependencies resolved.
Nothing to do.
Complete!
[dale@localhost log]$ 
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: 5.0.22 Guest Additions on Win7 and Fedora 24

Post by Perryg »

What does gcc -v report? It needs to be at least 4.9.
KiloOne
Posts: 10
Joined: 27. Jun 2016, 20:36

Re: 5.0.22 Guest Additions on Win7 and Fedora 24

Post by KiloOne »

gcc version 6.1.1 20160621 (Red Hat 6.1.1-3) (GCC)
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: 5.0.22 Guest Additions on Win7 and Fedora 24

Post by Perryg »

[fedora@localhost ~]$ cat /etc/redhat-release
Fedora release 24 (Twenty Four)
[fedora@localhost ~]$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/6.1.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --disable-libgcj --with-isl --enable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 6.1.1 20160510 (Red Hat 6.1.1-2) (GCC)

Something is missing because of the compiler error " stack-protector enabled but compiler support broken ". I can tell you that it does in fact work as you can see in the information posted above. I would check out and make sure the following are installed and up to date.
  • dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
KiloOne
Posts: 10
Joined: 27. Jun 2016, 20:36

Re: 5.0.22 Guest Additions on Win7 and Fedora 24

Post by KiloOne »

Sorry but in my previous reply I could not post whole gcc -v output, it thought I was providing a U R L which I can not do yet apparently.

I will check out the installation of all those you suggest, thanks.
KiloOne
Posts: 10
Joined: 27. Jun 2016, 20:36

Re: 5.0.22 Guest Additions on Win7 and Fedora 24

Post by KiloOne »

So, dkms was not installed, it is now. The others were installed.
But, I no longer have the option on the 'Devices' dropdown of the Oracle VM VirtualBox window that allows me to install Guest Additions.
And, I know Guest Additions is still not installed because the Fedora desktop does not resize when I resize VM VirtualBox window and I can not paste Windows clipboard into Fedora.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: 5.0.22 Guest Additions on Win7 and Fedora 24

Post by Perryg »

But, I no longer have the option on the 'Devices' dropdown
Probably because it is still mounted. Open a terminal in the folder that has the additions and start it manually. Or use the file manager and select to eject it and then you can use the device -> insert again.
KiloOne
Posts: 10
Joined: 27. Jun 2016, 20:36

Re: 5.0.22 Guest Additions on Win7 and Fedora 24

Post by KiloOne »

I found the .iso needed to install Guest Additions under 'Devices>Optical Drives'.
This time it still errors but the log file is different:

[dale@localhost VBOXADDITIONS_5.0.22_108108]$ cat /var/log/vboxadd-install.log
Uninstalling modules from DKMS
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxguest/5.0.22/source ->
/usr/src/vboxguest-5.0.22

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...(bad exit status: 2)
make -j1 KERNELRELEASE=4.5.7-300.fc24.x86_64 -C /lib/modules/4.5.7-300.fc24.x86_64/build M=/var/lib/dkms/vboxguest/5.0.22/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.5.7-300.fc24.x86_64 (x86_64)
Consult /var/lib/dkms/vboxguest/5.0.22/build/make.log for more information.
Failed to install using DKMS, attempting to install without
grep: /lib/modules/4.5.7-300.fc24.x86_64/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/4.5.7-300.fc24.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
arch/x86/Makefile:133: stack-protector enabled but compiler support broken
Makefile:666: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
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.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make =/tmp/vbox.0
make: *** empty variable name. Stop.
Makefile:1396: recipe for target '_module_/tmp/vbox.0' failed
make[1]: *** [_module_/tmp/vbox.0] Error 2
/tmp/vbox.0/Makefile.include.footer:79: recipe for target 'vboxguest' failed
make: *** [vboxguest] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
[dale@localhost VBOXADDITIONS_5.0.22_108108]$
KiloOne
Posts: 10
Joined: 27. Jun 2016, 20:36

Re: 5.0.22 Guest Additions on Win7 and Fedora 24

Post by KiloOne »

Perryg wrote:
But, I no longer have the option on the 'Devices' dropdown
Probably because it is still mounted. Open a terminal in the folder that has the additions and start it manually.

Nothing seems to be in directory:
[dale@localhost VBOXADDITIONS_5.0.22_108108]$ ls
[dale@localhost VBOXADDITIONS_5.0.22_108108]$ pwd
/run/media/dale/VBOXADDITIONS_5.0.22_108108


Or use the file manager and select to eject it

That did something

and then you can use the device -> insert again.

But still never showed back up on 'Devices' dropdown
KiloOne
Posts: 10
Joined: 27. Jun 2016, 20:36

Re: 5.0.22 Guest Additions on Win7 and Fedora 24

Post by KiloOne »

And here is the make.log that resulted:

[dale@localhost VBOXADDITIONS_5.0.22_108108]$ cat /var/lib/dkms/vboxguest/5.0.22/build/make.log
DKMS make.log for vboxguest-5.0.22 for kernel 4.5.7-300.fc24.x86_64 (x86_64)
Mon Jun 27 18:14:25 EDT 2016
make: Entering directory '/usr/src/kernels/4.5.7-300.fc24.x86_64'
arch/x86/Makefile:133: stack-protector enabled but compiler support broken
Makefile:666: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make: Entering an unknown directory
make: *** empty variable name. Stop.
make: Leaving an unknown directory
Makefile:1396: recipe for target '_module_/var/lib/dkms/vboxguest/5.0.22/build' failed
make: *** [_module_/var/lib/dkms/vboxguest/5.0.22/build] Error 2
make: Leaving directory '/usr/src/kernels/4.5.7-300.fc24.x86_64'
[dale@localhost VBOXADDITIONS_5.0.22_108108]$
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: 5.0.22 Guest Additions on Win7 and Fedora 24

Post by Perryg »

There is something wrong with you guest. Put the following in your favorite search engine and see if you can find it.
-fstack-protector-strong not supported by compiler site:virtualbox.org
KiloOne
Posts: 10
Joined: 27. Jun 2016, 20:36

Re: 5.0.22 Guest Additions on Win7 and Fedora 24

Post by KiloOne »

I tried but all Greek to me :) , thanks for your help getting this far!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: 5.0.22 Guest Additions on Win7 and Fedora 24

Post by Perryg »

Why don't you start your Linux training on a little more friendly Linux guest? Ubuntu or Mint would do everything that a redhat derivative would and a lot easier to navigate.
Post Reply