Virtual Box CentOS 7.0 VM

Issues related to applications and software problems
Post Reply
johnnyquest
Posts: 1
Joined: 2014/07/18 16:18:50

Virtual Box CentOS 7.0 VM

Post by johnnyquest » 2014/07/18 16:28:28

Hello Fellas

i am trying to install VIrtual box guest addtions on a centos 7 vm. I am doing this in the hope that it will allow me to increase the vm screen resolution beyond 1024x768.

I am getting the below error .
any help is appreciated.

Code: Select all

grep: /lib/modules/3.10.0-123.4.2.el7.x86_64/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/3.10.0-123.4.2.el7.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 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/4.8.2

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

Re: Virtual Box CentOS 7.0 VM

Post by TrevorH » 2014/07/18 17:41:14

Which version of VirtualBox? Do you have kernel-headers and kernel-devel packages installed to match your running kernel?
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

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: Virtual Box CentOS 7.0 VM

Post by chemal » 2014/07/18 17:59:37

There is no error in the output you posted. It just shows the commands issued, something like 'foo() || echo Error'. This is normal behaviour and not an error message yet.

gyoramg
Posts: 4
Joined: 2014/07/19 10:47:38

Re: Virtual Box CentOS 7.0 VM

Post by gyoramg » 2014/07/19 14:19:25

Be sure you are using the latest (4.3.14) version of VirtualBox. I got same error with previous versions. It worked fine with 4.3.14

[Moderator: corrected typo in version number]

Post Reply