- Details
- Written by Michel VONGVILAY
- Category: Admin
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
Open DEVICES
of the top menu then click on Insert Guest Additions CD image...
When the message box popup, click RUN
Enter uxora password
Click AUTHENTICATE
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.
Comments
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
Is there a solution in an offline environment?
RSS feed for comments to this post