Jump to content
  • 0
Sign in to follow this  
nerdwurks

Where can I download the kernel source to be able to use virtualbox dkms?

Question

Trying to install virtualbox dkms and it says I need the kernel sources. Where do I find them?

 

 

***** Found my own answers.******

Edited by nerdwurks

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

In my case, 

 

Whatever I am updating my kernel, dkms must be reinstalled for Virtualbox to run  :D

Share this post


Link to post
Share on other sites
  • 0

The people at Oracle (VirtualBox) name it kernel-source, but the ubuntu repos use the term linux-headers.

 

An easy command to get the one you need is: 

sudo apt-get install linux-headers-$(uname -r)

$(uname -r) is an expression that gets replaced with the kernel version number.

 

Enjoy,

Charles

Share this post


Link to post
Share on other sites
  • 0

I'm using VirtualBox for a long time now and never needed the "kernel-source" to install virtualbox extensions (like dkms). 

But it does need the headers. Using the default kernel from the ISO the headers are present by the way. 

 

My post was meant to clarify some confusion related to VirtualBox and the need for "sources", nothing else.

Ubuntu uses "linux-source" for the kernel patches they make themselves. Confusion all over.  :)

 

Enjoy,

Charles

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

I admit you are right. I installed VB long time ago and I dont remember details. Just saying some apps require sources...

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×