How install the kernel 4.8 in fedora 26 (Guest in VirtualBox)
Hello pals,
Fedora is installed in VirtualBox 5.1.14, I had problems installing GuestAdditions
Host:windows 10
I have installed
dnf install gcc kernel-devel kernel-headers dkms make bzip2 perl
[peter@peter-pc ~]$ sudo dnf install elfutils-libelf-devel
In fedora 25 and kernel 4.8 all is perfect
Outputs of terminal
[peter@peter-pc ~]$ cat /var/log/VBoxGuestAdditions.log
Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd.service → /usr/lib/systemd/system/vboxadd.service.
vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: Please check that you have gcc, make, the header files for your Linux kernel and possibly perl installed..
ValueError: File context for /usr/lib/VBoxGuestAdditions/mount.vboxsf already defined
Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd-service.service → /usr/lib/systemd/system/vboxadd-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd-x11.service → /usr/lib/systemd/system/vboxadd-x11.service.
[peter@peter-pc ~]$
peter@peter-pc ~]$ cat /var/log/vboxadd-install.log
grep: /lib/modules/4.11.8-300.fc26.x86_64/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/4.11.8-300.fc26.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j1 modules
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 -f ./scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/.VBoxGuest-linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/7/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration
How do we do thatRun 'make oldconfig && make prepare' on kernel src to fix it.";