Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Getting kernel source
PostPosted: Wed Jan 28, 2015 4:15 pm 
Offline
Newbie

Joined: Wed Jan 28, 2015 4:05 pm
Posts: 4
I am trying to install virtual box on a Linode, running: Ubuntu 12.04.5 LTS \n \l

In order to do this, I need the kernel source to be installed (so that the setup procedure for VB can build the kernel module).

I've tried various things, starting with "apt-get install linux-source" and "apt-get install linux-headers". Both seem to be stuck on thinking I want kernel version 3.2.something, but I am running 3.18.something.

One of the command I tried suggests installing "linux-headers-3.18.1-x86_64-linode50", which seems reasonable, but when I try:

apt-get install linux-headers-3.18.1-x86_64-linode50

I get:

# apt-get install linux-headers-3.18.1-x86_64-linode50
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-3.18.1-x86_64-linode50
E: Couldn't find any package by regex 'linux-headers-3.18.1-x86_64-linode50'
#

So, where do I go from here?

I've done the usual "apt-get update" and "apt-get upgrade" incantations. is there something I need to add to my /etc/apt/sources.list file for this to work?


Top
   
PostPosted: Wed Jan 28, 2015 4:20 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
You can't install a Virtual system (virtualbox) ONTOP of a Virtual system (xen).

Image

**yes, there are exceptions, but not in this case.

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Wed Jan 28, 2015 5:07 pm 
Offline
Newbie

Joined: Wed Jan 28, 2015 4:05 pm
Posts: 4
That's one opinion. I await others.


Top
   
PostPosted: Wed Jan 28, 2015 5:10 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
http://unix.stackexchange.com/questions ... r-xen-dom0

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Wed Jan 28, 2015 5:19 pm 
Offline
Newbie

Joined: Wed Jan 28, 2015 4:05 pm
Posts: 4
THat's not the point, anyway.

The point is: Where do I get the kernel source?


Top
   
PostPosted: Wed Jan 28, 2015 5:27 pm 
Offline
Senior Newbie

Joined: Fri Jan 24, 2014 12:05 pm
Posts: 8
joeschmoe wrote:
Where do I get the kernel source?

https://www.kernel.org/


Top
   
PostPosted: Wed Jan 28, 2015 5:33 pm 
Offline
Newbie

Joined: Wed Jan 28, 2015 4:05 pm
Posts: 4
buhman wrote:
joeschmoe wrote:
Where do I get the kernel source?

https://www.kernel.org/


All the obvious things have already been tried.

The point is that experience shows that unless you get *EXACTLY* the right kernel source, it won't work. It has to be EXACTLY what was used to build the currently running kernel. Believe me, I know of what I speak.

The point is that one of the things that I tried (which, alas, I cannot remember/re-create at the moment) did say that I could get the exact kernel source that corresponds to the kernel used in the Linode setup (presumably, from the Linode devs themselves - the guys who set up the Ubuntu image that I am running). That's what I seek.

Everything relevant is in the original post.

BTW, if it turns out that I can't do this (the overall, long range goal), I am prepared to find that out myself. I will probably find a workaround, if it can't be done "straight up". In any case, I need to find the kernel source/headers.


Top
   
PostPosted: Wed Jan 28, 2015 6:03 pm 
Offline
Senior Member

Joined: Mon Aug 29, 2011 2:34 am
Posts: 77
joeschmoe wrote:
The point is that experience shows that unless you get *EXACTLY* the right kernel source, it won't work. It has to be EXACTLY what was used to build the currently running kernel. Believe me, I know of what I speak.


No it doesn't. The sources you build against need only match in ABI compatibility with what you are running. Generally, this means matching versions, but not necessarily matching patches applied on top, since most patches don't break ABI compatibility. Linode simply uses the sources from kernel.org, and patches the Makefile to add the -linode# suffix to the kernel version. They've not had to patch to fix broken things since XSA-39, and even those patches didn't break ABI compatibility, so you could build against sources that didn't have those patches and not have any issues. The last version I can think of where their patching would have broken ABI compatibility would have been when Xen PV support was not in the mainline kernel, which was a very long time ago.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group