Oracle Enterprise Linux Guest Additions Problem

Discussions related to using VirtualBox on Windows hosts.
Post Reply
jiqbal
Posts: 4
Joined: 11. Apr 2010, 04:30
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows XP, Oracle Enterprise Linux

Oracle Enterprise Linux Guest Additions Problem

Post by jiqbal »

Hi - I am newb on Linux, but have installed Oracle Enterprise Linux, but am having Issue with the Guest Additions.

I am running virtualbox on Windows 7 and the machine I have created is for OEL.

When I install the Additions I get this error on the kernel message:

Error: unable to find the sources of your current Linux Kernel. Specify the KERN_DIR = <directory> and run Make again ... Stop


I can't see to find the commands to get this resolved for Oracle Enterprise Linux, I saw some Ubuntu commands, but that doesn't help. I would appreciate if someone could help me out here, I want to maximize the resolution to my monitor 1680 X 1050.

Thanks!
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: Oracle Enterprise Linux Guest Additions Problem

Post by stefan.becker »

You must install packages like gcc, make, automake, autoconf, kernel-devel.
jiqbal
Posts: 4
Joined: 11. Apr 2010, 04:30
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows XP, Oracle Enterprise Linux

Re: Oracle Enterprise Linux Guest Additions Problem

Post by jiqbal »

Hi - can you give some additional steps as to which directory do i go to install those packages and the command to run them. Thanks!
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: Oracle Enterprise Linux Guest Additions Problem

Post by fixedwheel »

jiqbal wrote: I can't see to find the commands to get this resolved for Oracle Enterprise Linux, I saw some Ubuntu commands, but that doesn't help.
as OEL is a Red Hat EL clone: look for the RHEL, fedora or CentOS directions in the manual, faq or threads here e.g. http://forums.virtualbox.org/viewtopic.php?f=3&t=15679
jiqbal
Posts: 4
Joined: 11. Apr 2010, 04:30
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows XP, Oracle Enterprise Linux

Re: Oracle Enterprise Linux Guest Additions Problem

Post by jiqbal »

Thanks I tried that link, whenever I run any of that command it says nothing to do.
jiqbal
Posts: 4
Joined: 11. Apr 2010, 04:30
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows XP, Oracle Enterprise Linux

Re: Oracle Enterprise Linux Guest Additions Problem

Post by jiqbal »

It says:

[root@localhost ~]# rpm -qa | grep kernel
kernel-headers-2.6.18-164.el5
kernel-doc-2.6.18-164.el5
kernel-2.6.18-164.el5
kernel-PAE-2.6.18-164.el5
kernel-debug-devel-2.6.18-164.el5
kernel-debug-2.6.18-164.el5
kernel-devel-2.6.18-164.el5
kernel-xen-2.6.18-164.el5
kernel-xen-devel-2.6.18-164.el5
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: Oracle Enterprise Linux Guest Additions Problem

Post by stefan.becker »

Thats looks good. Please check your packet manager (yum?) if there is another package like kernel-source?!
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: Oracle Enterprise Linux Guest Additions Problem

Post by fixedwheel »

yes version numbers match, but ...
jiqbal wrote:It says:

[root@localhost ~]# rpm -qa | grep kernel
...
kernel-2.6.18-164.el5
kernel-PAE-2.6.18-164.el5
...
kernel-debug-2.6.18-164.el5
...
kernel-xen-2.6.18-164.el5
...
which kernel is actually running? please do uname -a
james.bayer
Posts: 1
Joined: 2. May 2010, 20:26
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: OEL

Re: Oracle Enterprise Linux Guest Additions Problem

Post by james.bayer »

I am also a newbie, this post was helpful to me. During the OEL5 Update 5 install I kept optionals to a minimum and didn't install the profile that included "Software Development". Therefore certain packages (kernel-devel, kernel-headers, gcc) were not installed.

I was able to get hints as to what was wrong by looking in the /var.../log file that the output of the VBoxAdditions shell was saying to check for errors.

So I used Oracle's yum server and was able to run:
yum install kernel-devel
yum install kernel-headers
yum install gcc

Then running the VBoxAdditions again worked and after a restart all the features were enabled. Thanks for the help.
Erik Bergenholtz
Posts: 1
Joined: 21. Sep 2012, 19:40

Re: Oracle Enterprise Linux Guest Additions Problem

Post by Erik Bergenholtz »

If you are running uek, you must install the kernel-uek-devel package. i.e. " sudo yum install kernel-uek-devel" and that should do the trick.
Post Reply