User Rating: 4 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Inactive
 

After installing Oracle Enterprise Linux 7 (OEL7) virtual machine on VirtualBox (as explained here), I would recommend to install the VirtualBox Guest Additions.

For any serious and interactive use, the VirtualBox Guest Additions will make your life much easier by providing closer integration between host and guest and improving the interactive performance of guest systems.

Virtualbox

Guest Additions Install Failure

VirtualBox Guest Additions on Oracle Linux 7

Open DEVICES of the top menu then click on Insert Guest Additions CD image...

When the message box popup, click RUN

 

VirtualBox Guest Additions on Oracle Linux 7

Enter uxora password

Click AUTHENTICATE

 

VirtualBox Guest Additions on Oracle Linux 7

We can see VirtuaBox Guest Additions installation FAILED with the following error:

# VirtuaBox Guest Additions installation error
<<--OUTPUT--
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
The missing package can be probably installed with
yum install kernel-uek-devel-3.8.13-35.3.1.el7uek.x86_64

Building the main Guest Additions module                   [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
--OUTPUT--

 

Guest Additions Install Fix

We need to install the missing package as following:

[root]$ yum install kernel-uek-devel-$(uname -r)
<<--OUTPUT--
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package kernel-uek-devel.x86_64 0:3.8.13-35.3.1.el7uek will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch       Version                    Repository     Size
================================================================================
Installing:
 kernel-uek-devel     x86_64     3.8.13-35.3.1.el7uek       ol7_UEKR3     8.7 M

Transaction Summary
================================================================================
Install  1 Package

Total download size: 8.7 M
Installed size: 32 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for ol7_UEKR3
kernel-uek-devel-3.8.13-35.3.1.el7uek.x86_64.rpm           | 8.7 MB   01:14
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : kernel-uek-devel-3.8.13-35.3.1.el7uek.x86_64                 1/1 
  Verifying  : kernel-uek-devel-3.8.13-35.3.1.el7uek.x86_64                 1/1 

Installed:
  kernel-uek-devel.x86_64 0:3.8.13-35.3.1.el7uek                                

Complete!
--OUTPUT--

 

We can now rerun the VirtualBox Guest Additions installation:

# Rerun VirtuaBox Guest Additions installation
<<--OUTPUT--
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.24 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.24 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module                   [  OK  ]
Building the shared folder support module                  [  OK  ]
Building the OpenGL support module                         [  OK  ]
Doing non-kernel setup of the Guest Additions              [  OK  ]
Starting the VirtualBox Guest Additions                    [  OK  ]
Installing the Window System drivers
Installing X.Org Server 1.15 modules                       [  OK  ]
Setting up the Window System to use the Guest Additions    [  OK  ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services componen[  OK  ]
Press Return to close this window...
--OUTPUT--

VirtualBox Guest Additions is now SUCCESSFULLY installed!

Please leave comments and suggestions,
Michel.

Enjoyed this article? Please like it or share it.

Add comment

Please connect with one of social login below (or fill up name and email)

     


Security code
Refresh

Comments   

TamagOme developerT_O
# Installing kernel-uek-devel fixed the problem!TamagOme developerT_O 2021-12-08 03:56
I was having trouble with the error message below, but thanks to this article, I was able to install the "Guest Additions"! Thank you so much!

VirtualBox Guest Additions: Kernel headers not found for target kernel
5.42.17-2136.301.1.3.el7uek.x86_64. Please install them and execute
/sbin/rcvboxadd setup
Reply | Reply with quote | Quote
Javier Medina
# Good WorkJavier Medina 2019-01-20 17:47
Thanks you so much. The solutuion good work.
Reply | Reply with quote | Quote
Atsushi Tamashiro
# offline envAtsushi Tamashiro 2016-11-17 04:23
Thanks your good works!

Is there a solution in an offline environment?
Reply | Reply with quote | Quote
wariat10
# Works fine :)wariat10 2016-07-06 22:28
Thanks for that, works :)
Reply | Reply with quote | Quote
Ángel R. G.
# It WorksÁngel R. G. 2016-05-24 14:43
Thanks for the info. It worked properly.
Reply | Reply with quote | Quote
Juan Diego Trujillo Perez
# WorksJuan Diego Trujillo Perez 2016-01-23 05:43
Thanks for the guide, it's work perfectly :D
Reply | Reply with quote | Quote