LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This 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


Reply
  Search this Thread
Old 07-13-2013, 02:47 AM   #1
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 15, -current
Posts: 172

Rep: Reputation: 1
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#
Thank you very much.

Last edited by gabytf; 07-13-2013 at 03:28 PM.
 
Old 07-13-2013, 02:54 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,333

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 07-13-2013, 03:05 AM   #3
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 15, -current
Posts: 172

Original Poster
Rep: Reputation: 1
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?

http://slackware.org.uk/slackware/sl.../linux-3.2.45/
 
Old 07-13-2013, 08:32 AM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,333

Rep: Reputation: Disabled
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:
  1. a link called /lib/modules/<version>/build, created when the kernel modules are installed
  2. 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.
 
1 members found this post helpful.
Old 07-13-2013, 03:26 PM   #5
gabytf
Member
 
Registered: Jun 2010
Location: Kota Kinabalu, Sabah, Malaysia
Distribution: Slackware64 15, -current
Posts: 172

Original Poster
Rep: Reputation: 1
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel header files different from standard Linux dilbert_uk Linux - Mobile 3 07-17-2012 09:29 AM
Install "VirtualBox-3.2.12-68 302" in slackware64-current ( kernel 2.6.38.7 ) afreitascs Slackware 16 06-26-2011 01:16 PM
Header files for the Linux Kernel alfredofernandeza Linux - Kernel 1 10-18-2006 08:11 PM
Linux kernel header files cranium2004 Programming 4 03-04-2005 04:41 AM
how do i install linux header files jelgavchik Linux - General 2 01-02-2005 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration