Building Virtualbox guest additions on RHEL7 fails

Latest response

Building the Oracle Virtualbox guest additions on the RHEL7 beta fail on the absence of the 'version.h' file [1]. This file would expected to be in the
kernel-headers package.

Anyone found a way to build/install the Virtualbox guest additions on the RHEL7 beta?

[1] /usr/src/kernels/3.10.0-54.0.1.el7.x86_64/include/linux/version.h

Steps to reproduce:
- yum install kernel-devel kernel-headers bzip2 make gcc -y
- run guest additions installer.
- check /var/log/vbox_addon.log

Rgrds, Martijn

Responses

See my post here: https://forums.virtualbox.org/viewtopic.php?f=3&t=59094

Seems to work (cut and paste is fine), however it would have been nice to have the video full screen, etc. Need to do some testing on this...

Thanks for the link, Alastair. Appreciate you helping out!

Where is the script to be edited?
/opt/VBoxGuestAdditions-4.3.6/lib/VBoxGuestAdditions/ ???

Also, just edit the script or something else need to be done?

I edited the three vboxadd-x11 on my system
[root localhost /]# find . -name vboxadd-x11

./etc/rc.d/init.d/vboxadd-x11
./opt/VBoxGuestAdditions-4.3.6/lib/VBoxGuestAdditions/vboxadd-x11
./opt/VBoxGuestAdditions-4.3.6/init/vboxadd-x11
without any luck!

Thanks

Basically, you want to extract the code from the .run file, apply patches (make necessary modifications), and then tar it up and install from that.

You can find an example procedure in this CentOS wiki article. Look for a line that starts with "Follow a procedure as below. The example is for x86_64".

[EDIT] The above "example procedure" has been removed from the wiki article because the patch is no longer required (May 2016).

Worked for me! Thanks for the followup. I owe you beer ;-)

I also had this same issue with RHEL 7.2 The error log showed the Kernel source was missing. And, the gcc compiler was MIA.

To fix my issue, I did the following 2 yum commands: yum install kernel-devel yum install gcc gcc-c++ autoconf automake after this, the guest additions loaded a-ok.

Cheers, Curly

Thank you William! Your recommendation worked perfectly for me on 7.2

Cheers!

Robert

Thank you very much William! Your recommendation worked perfectly for me on 7.3!

This is still an issue in RHEL 7.4, the second yum command in Williams post fixed it for me.

Thanks!

I you still having a issue.. its working with 7.3

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.