Jump to content

Photo

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


  • Please log in to reply
9 replies to this topic

#1 nerdwurks

nerdwurks

    Member

  • Members
  • 1 posts

Posted 29 September 2017 - 02:58 AM

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, 29 September 2017 - 03:31 AM.




A big thank you to everyone who contributes to Bodhi Linux


#2 DOOMguy

DOOMguy

    Member

  • Members
  • 216 posts

Posted 29 September 2017 - 03:28 PM

What would be cooler would be letting others know how you found it (others could be stuck in the same place you've just been in). Thanks nerdwurks!


Unsolicited advice for learning linux, that won't cost you anything


#3 BeGo

BeGo

    Member

  • Members
  • 144 posts
  • LocationBogor, Indonesia

Posted 01 October 2017 - 03:35 AM

In my case, 

 

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



#4 Jayan Tashi

Jayan Tashi

    Member

  • Members
  • 89 posts
  • LocationSingapore

Posted 05 October 2017 - 04:27 AM

The virtualbox source code repository is here, might help: https://www.virtualb...wser/vbox/trunk


Son. Student. Citizen. Farmer.


#5 The waiter

The waiter

    Module Master

  • Developer
  • 1635 posts
  • LocationBanska Bystrica, Slovakia

Posted 05 October 2017 - 06:09 AM

No no, he needed the kernel source, no VB source.

The kernel source is in the repository. Look up linux-source*



#6 Charles@Bodhi

Charles@Bodhi

    Old Faithful

  • Moderators
  • 4571 posts
  • LocationZeist, The Netherlands

Posted 05 October 2017 - 10:47 AM

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



#7 The waiter

The waiter

    Module Master

  • Developer
  • 1635 posts
  • LocationBanska Bystrica, Slovakia

Posted 05 October 2017 - 11:53 AM

https://packages.ubu...x-source-4.10.0

 

I come across the situations when compiling requested only headers, sometimes source too. I am pretty sure the headers are not the same as source. Maybe in some headers package could be source defined as dependency.



#8 Charles@Bodhi

Charles@Bodhi

    Old Faithful

  • Moderators
  • 4571 posts
  • LocationZeist, The Netherlands

Posted 05 October 2017 - 02:06 PM

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



#9 The waiter

The waiter

    Module Master

  • Developer
  • 1635 posts
  • LocationBanska Bystrica, Slovakia

Posted 05 October 2017 - 02:35 PM

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

#10 Jayan Tashi

Jayan Tashi

    Member

  • Members
  • 89 posts
  • LocationSingapore

Posted 06 October 2017 - 05:17 AM

ic :)


Son. Student. Citizen. Farmer.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users