how to install VBoxLinuxAdditions?

General support questions
Post Reply
booratino
Posts: 1
Joined: 2018/12/09 04:15:24

how to install VBoxLinuxAdditions?

Post by booratino » 2018/12/09 04:36:16

Hi.

I have Oracle VM Virtualbox Version 5.2.22 r126460 (Qt5.6.2)

WARNING! I'm just 3 day unixoid, so please be patient. :)

I've set up CentOS-7-x86_64-Minimal-1810.iso and after that

yum update
yum install kernel-headers kernel-devel
reboot


yum -y install epel-release
yum install wget bzip2 gcc

yum -y group install "X Window System"


and after that I'm trying to run LinuxAdditions

mount /dev/sdrom /media/cdrom
sh /media/cdrom/VBoxLinuxAdditions.run


result: Look at /var/log/vbox-install.log to find out what went wrong

and in that file

Error building the module. Build ouyput follows.

make V=1 CONFIG_MODULE_GIG= -C /lib/modules/3.10.0-957.1.3.el7.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."; \
...etc

How to fix it?

Thanks.

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: how to install VBoxLinuxAdditions?

Post by toracat » 2018/12/09 07:41:02

That is not an error message, just a statement from the installer script.

As noted in the wiki article about VirtualBox, you need version 5.2.23 to build graphics drivers. It is currently available from the TestBuilds.
CentOS Forum FAQ

Simple
Posts: 2
Joined: 2018/12/09 10:05:26

Re: how to install VBoxLinuxAdditions?

Post by Simple » 2018/12/09 13:46:07

I use the below instruction to help install VirtualBox Guest Additions (reboot to ensure needed components are loaded):

# yum install gcc make perl dkms kernel-devel kernel-headers

Then install GuestAdditions, it is advisable to reboot after that.

However, if you install the Centos minimal (no interface), cut and paste from guest to host and vise versa does not work anyway.

Post Reply