[SOLVED] Virtualbox-How to install the build and header files for my current Linux kernel?
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Virtualbox-How to install the build and header files for my current Linux kernel?
I am with Slackware64 14.0.
My Virtualbox was run perfectly only until i upgrade my kernel version from 3.2.29 to 3.2.45.
I upgrade my kernel version by using command "pkgtool","install package from current directory"...one by one i install the kernel-firmware, kernel-huge and kernel-modules files.
I reverted back to Kernel 3.2.29, but same message still came out:
Quote:
bash-4.2# ./VirtualBox-4.2.16-86992-Linux_amd64.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation............
VirtualBox Version 4.2.16 r86992 (2013-07-04T14:33:09Z) installer
Please install the build and header files for your current Linux kernel.
The current kernel version is 3.2.29
Problems were found which would prevent VirtualBox from installing.
Please correct these problems and try again.
bash-4.2#
Slackware uses a stock Linux kernel with no patches. You can either install the relevant source and headers packages, or simply download the kernel source from http://www.kernel.org.
Make sure there's a /usr/src/linux symlink pointing to the kernel source directory. If the link is missing or pointing to the wrong kernel version, other software may not be able to find the kernel source code.
Thank you. i don't really know how to do recompile from source. The upgrade kernel is from here, the "patch" directory, is this what you mean the patches?
Some Linux distributions use slightly modified kernels, so you have to download the source from one of that distribution's repositories to get a properly patched kernel. Not so with Slackware.
When you install or download the kernel source code for any given kernel version, you generally get a directory under /usr/src with the name of that kernel, for instance /usr/src/linux-3.2.45. There are normally two symbolic links pointing to that directory:
a link called /lib/modules/<version>/build, created when the kernel modules are installed
a link called /usr/src/linux, which one may have to create manually
Other software needing to access the kernel source code, like VirtualBox, will typically use one of those links to locate it. Make sure they exist and point to the right directory.
Thank you once again. i know what is the problem now.
Obviously I don't have the source code installed when i upgraded any one of the kernel.i was only installed the kernel-firmware, kernel-huge and kernel-modules files, but without the kernel-source code. When i access the /usr/src/linux-3.2.29, it was empty, and no link of /usr/src/linux.
I now revert to kernel-3.2.45 with the source code installed. Everything was fine and finished the virtualbox installation and run well again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.