Ask Your Question
0

How install the kernel 4.8 in fedora 26 (Guest in VirtualBox)

asked 2017-07-11 17:25:34 -0500

christianbueno gravatar image

updated 2017-07-11 17:51:18 -0500

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 that
Run 'make oldconfig && make prepare' on kernel src to fix it.";
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2017-07-11 19:55:54 -0500

sergiomb gravatar image

updated 2017-07-11 19:57:18 -0500

edit flag offensive delete link more

Comments

yes, I installed that virtualbox-guest-additions, there are the steps , i work very good, the resolution is working now. (f26 on virtualbox 5.1.14)

christianbueno gravatar imagechristianbueno ( 2017-07-17 12:44:31 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-07-11 17:25:34 -0500

Seen: 2,512 times

Last updated: Jul 11 '17