Building the main Guest Additions module [FAILED]

Discussions related to using VirtualBox on Windows hosts.
Post Reply
fab
Posts: 12
Joined: 7. Feb 2008, 02:48

Building the main Guest Additions module [FAILED]

Post by fab »

Hi,

During the install of the Guest Addittions, the following error is shown to me:

Code: Select all

      Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.4 Guest Additions for Linux..........
VirtualBox Guest Additions installer
Removing installed version 4.2.4 of VirtualBox Guest Additions...
Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
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-2.6.32-300.3.1.el6uek.x86_64

Building the main Guest Additions module                   [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions              [  OK  ]
Installing the Window System drivers
Installing X.Org Server 1.10 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
The fact is that could not find the kernel-uek-devel-2.6.32-300.3.1.el6uek.x86_64 to download. I don't know if this is really the problem. Looking at the vboxadd-install.log, i have the following:

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.
/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.
/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.

What is this "KERN_DIR" env variable? I did some research but none could clarify my doubt. What can i do to install the Guest Additions?

Am i missing something obvious? Thanks for your attention.

Virtualbox version: 4.2.4 (64 bits)
Guest: Oracle Linux 6.2 X86_64
Host: Windows 7 64 bits
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Building the main Guest Additions module [FAILED]

Post by Perryg »

Did you add public yum server to your sources list?
http://public-yum.oracle.com/
You really must have the kernel-uek-devel-2.6.32-300.3.1.el6uek.x86_64
fab
Posts: 12
Joined: 7. Feb 2008, 02:48

Re: Building the main Guest Additions module [FAILED]

Post by fab »

Thanks for your attention,

I did what you suggested, but without success. Now i have the necessary packabe mentioned above by you. See:

Code: Select all

[root@ora62 VBOXADDITIONS_4.2.4_81684]# rpm -qa kernel-uek-devel
kernel-uek-devel-2.6.39-300.17.2.el6uek.x86_64
The same errors in my previous post happened again. This is quite strange, or i am doing something very wrong.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Building the main Guest Additions module [FAILED]

Post by Perryg »

Don't forget the headers. They need to be installed and match the kernel as well.
fab
Posts: 12
Joined: 7. Feb 2008, 02:48

Re: Building the main Guest Additions module [FAILED]

Post by fab »

You mean kernel-headers?

Code: Select all

kernel-headers.x86_64 : Header files for the Linux kernel for use by glibc
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Building the main Guest Additions module [FAILED]

Post by Perryg »

yes
swmech
Posts: 1
Joined: 29. Nov 2012, 21:25

Re: Building the main Guest Additions module [FAILED]

Post by swmech »

I don't know if this is still an issue or not, but the solution is in the error message you first quoted. It says "The missing package can be probably installed with
yum install kernel-uek-devel-2.6.32-300.3.1.el6uek.x86_64", which doesn't match with the kernel version you have in your rpm output ("kernel-uek-devel-2.6.39-300.17.2.el6uek.x86_64").

I had much the same problem, and would send a "thank you" to whoever put in such a helpful error message.
kostyanius
Posts: 5
Joined: 15. Nov 2014, 01:57

Re: Building the main Guest Additions module [FAILED]

Post by kostyanius »

have the same issue on vb 4.3.12
Post Reply