Page 1 of 1

Installing vboxaddtion failed in Oracle Linux 6.5

Posted: 5. May 2017, 16:32
by virtualboxnewbie
Dear all,

my guest os is Oracle Linux 6.5
my host os is Windows 8.1
my virtualbox is 5.14

prior to installing vboxaddition

Code: Select all

yum install kernel-headers kernel-devel
yum install kernel-uek-devel yum install kernel-uek-headers
when I install Virtualbox addition, it always failed with

Code: Select all

/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.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
also I found out that following

Code: Select all

[root@ol65-12102 ~]# ls -l /usr/src/kernels/
total 8
drwxr-xr-x. 22 root root 4096 May  1 21:34 2.6.32-696.1.1.el6.x86_64
drwxr-xr-x. 22 root root 4096 May  5 21:52 4.1.12-94.2.1.el6uek.x86_64
[root@ol65-12102 ~]# uname -r
3.8.13-118.17.5.el6uek.x86_6
If you realize the above, there's a mismatch in the kernel directory and the actual version?

How should I proceed from here?

thanks

Re: Installing vboxaddtion failed in Oracle Linux 6.5

Posted: 5. May 2017, 16:36
by Perryg
What does the following produce when run in an elevated terminal?

Code: Select all

yum install kernel-headers-$(uname -r) kernel-devel-$(uname -r)

Re: Installing vboxaddtion failed in Oracle Linux 6.5

Posted: 5. May 2017, 16:43
by virtualboxnewbie
Dear Perry,

Code: Select all

[root@ol65-12102 ~]# yum install kernel-headers-$(uname -r) kernel-devel-$(uname -r)
Loaded plugins: refresh-packagekit, security, ulninfo
Setting up Install Process
No package kernel-headers-3.8.13-118.17.5.el6uek.x86_64 available.
No package kernel-devel-3.8.13-118.17.5.el6uek.x86_64 available.
Error: Nothing to do


Re: Installing vboxaddtion failed in Oracle Linux 6.5

Posted: 5. May 2017, 16:47
by Perryg
Well there's your problem. You need to update your kernel since they have eliminated the headers and devel for the one you have installed. Other than that you would need to build your own if you feel the need to stay with that kernel version. This however is not a VirtualBox issue and you should ask the Oracle Linux folks how to proceed.