Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri May 04, 2012 12:33 pm 
Offline
Senior Newbie

Joined: Fri May 04, 2012 12:30 pm
Posts: 8
Hello,

I recently created a Linode using the Ubuntu 12.04 LTS kernel.

lsb_release -a shows it is Ubuntu 12.04.

uname -a shows the version as 3.0.18, where it should be 3.2.14.

AppArmor does not appear to be present. I use AppArmor when setting up servers, so this is why I started investigating and noticed these oddities...

So, what's the deal? Can this be fixed/why is the wrong kernel installed with 12.04?

Thanks

James


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 12:36 pm 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
We roll our own kernels that your Linode uses to boot, and it exists outside of your filesystem.

If you want the Ubuntu-supplied Linux kernel and AppArmor your best bet would be to install their kernel and use pv_grub.

This has not been updated / tested with Ubuntu 12.04 LTS, but should mostly apply:

- http://library.linode.com/linode-platfo ... grub-howto

-Tim


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 1:05 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Looks like the latest unstable kernel is 3.2.1-linode40... Any word on when something newer than 3.0.x will be stable?


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 1:13 pm 
Offline
Senior Newbie

Joined: Fri May 04, 2012 12:30 pm
Posts: 8
Hmm. Do these unstable kernels include AppArmor, or if I want AppArmor is custom kernel the necessary way to go?
(I ask because AppArmor has worked in stock Ubuntu for ages, and is not new.)


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 1:24 pm 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
James Bellinger wrote:
Hmm. Do these unstable kernels include AppArmor, or if I want AppArmor is custom kernel the necessary way to go?
(I ask because AppArmor has worked in stock Ubuntu for ages, and is not new.)


We don't enable things like SELinux/AppArmor/Grsecurity in our kernels. If you need to use them, a custom kernel is the way to go.

-Tim


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 1:27 pm 
Offline
Senior Newbie

Joined: Fri May 04, 2012 12:30 pm
Posts: 8
I see. Well, thank you for your time.


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 1:38 pm 
Offline
Senior Newbie
User avatar

Joined: Mon Aug 24, 2009 10:37 am
Posts: 18
Guspaz wrote:
Looks like the latest unstable kernel is 3.2.1-linode40... Any word on when something newer than 3.0.x will be stable?


Last I knew, the reason for nothing newer is answered by the first part of your quote, unstable. There are some issues with newer kernels that staff was still trying to trace down


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 2:46 pm 
Offline
Senior Newbie

Joined: Fri May 04, 2012 12:30 pm
Posts: 8
Well, I tried the PV-GRUB procedure for Ubuntu 11.04 with 12.04, and it worked fine.


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 8:31 pm 
Offline
Senior Member

Joined: Sun May 23, 2010 1:57 pm
Posts: 315
Website: http://www.jebblue.net
I wonder how much more memory a true Ubuntu image would use?


Top
   
 Post subject:
PostPosted: Fri May 04, 2012 8:32 pm 
Offline
Senior Newbie

Joined: Fri May 04, 2012 12:30 pm
Posts: 8
I haven't seen any significant difference between linux-virtual and the Linode kernel, to be honest. The kernel's not the greatest contributor of RAM usage on most servers.


Top
   
 Post subject:
PostPosted: Mon May 07, 2012 1:12 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
James Bellinger wrote:
I haven't seen any significant difference between linux-virtual and the Linode kernel, to be honest. The kernel's not the greatest contributor of RAM usage on most servers.


Exception: when you load the ZFS kernel module, then the kernel uses a rather large amount of RAM ;)


Top
   
 Post subject:
PostPosted: Wed May 09, 2012 2:50 am 
Offline
Newbie

Joined: Mon Nov 07, 2011 11:40 am
Posts: 2
I also tried the pv grub option to get a stock ubuntu kernel running on Ubuntu 12.04. The kernel boots fine but my filesystem remains read only however.

I tried changing the mount options in /etc/fstab (remove the line remount-ro as per viewtopic.php?t=8376 but to no avail).

I've also openend a support ticket but thought i might get some extra feedback here.


Top
   
 Post subject:
PostPosted: Wed May 09, 2012 2:31 pm 
Offline
Senior Member

Joined: Wed Jun 08, 2011 11:25 pm
Posts: 51
Add rootflags=nobarrier to the kernel options in /boot/grub/menu.lst. You may also need to add nobarrier as an option to each of your ext3/ext4 filesystems in /etc/fstab. Barriers are enabled for ext3 as of kernel 3.1, but they don't seem to play well with Xen.


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


Who is online

Users browsing this forum: No registered users and 7 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