Installing Guest Additions fails on Oracle Enterprise Linux 7.0

If you install the Guest Additions modules in a Oracle Enterprise Linux 7.0 virtualbox, you might encounter the following problem:

22ff4bbc-3368-4ba0-92e1-2b15c57256ff

 

The main Guest Additions does not build. When checking /var/log/vboxadd-install.log, there should be something like:

/tmp/vbox.0/Makefile.include.header:97: ***Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.

Not very helpful, is it? The most straightforward solution is to update the kernel-uek-devel package to your Linux kernel version with the command

yum install kernel-uek-devel-`uname -r`

installing kernel-uek-devel package

Afterwards, Guest Additions module was successfully installed.

 

 

Building the main Guest Additions module Successful
Building the main Guest Additions module Succesful

Restart your Virtualbox instance in order to apply all the changes.

Addition: This problem can occur on Ubuntu too. To fix it there, issue this command in a terminal:

sudo apt-get install build-essential linux-headers-`uname -r` dkms

Laat een reactie achter

Je e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *

Deze site gebruikt Akismet om spam te verminderen. Bekijk hoe je reactie-gegevens worden verwerkt.

By using this site you acknowledge the use of cookies (which are mostly harmless, btw) More information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below you are agreeing to these settings.

Close