Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Kernel question. LXC. virtualization.

OP moreknowledge

24th August 2014, 10:53 AM   |  #1  
OP Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Aug 2014
Hello,

My question is as following, which kernels* support LXC ?

The following is a blog post explaining how one can run lxc on Android:
www DOT stgraber DOT org/2013/12/23/lxc-1-0-some-more-advanced-container-usage


For those unfamiliar with LXC, it can kinda be used like a virtual machine but with less resources. Currently there is a limitation that it can run only on linux flavors with the correct kernel and mac with less resources.

Docker is program that simplifies using LXC for containerization. (It was started using only LXC as its backend, but now there is support for more backends.) It has a simple, visual explanation of the difference between Virtaul Machines and containers on the following page:
www DOT docker DOT com/whatisdocker

Example use case:
funnel DOT hasgeek DOT com/droidcon2013/889-lxc-on-android-running-ics-and-jellybean-simultane

www DOT youtube DOT com/watch?v=UpIFByNLM5U

* Kernels that work on the galaxy S5
Last edited by moreknowledge; 24th August 2014 at 11:01 AM. Reason: adding question clarification
24th August 2014, 11:31 AM   |  #2  
fffft's Avatar
Senior Member
Thanks Meter: 621
 
1,978 posts
Join Date:Joined: Jul 2013
Who knows? That is a pretty esoteric question.

If you haven't already done so, do a search to see if there are any LXC threads on XDA. If not, that would be an indication of how many people have trod this path in advance of your post.

But all is not lost. Simply go to the android development subforum and have a look at the custom kernel threads. That should point you to their git sources where you can copy the kernel configuration details. Then you can use lxc -checkconfig to determine if the kernel in question supports LXC.

.
The Following User Says Thank You to fffft For This Useful Post: [ View ]
24th August 2014, 08:45 PM   |  #3  
OP Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Aug 2014
Did not think it was that esoteric.

Thought if one of the custom kernel builders saw my post, they could answer it in a snap.

Hmm. Did not do a xda specific search. Thanks for that and the other idea.

Hmm. I get around 123 results when searching for lxc. Mostly in the Ubuntu touch part of the forums.
/usr/lib/lxc-android-config/
24th August 2014, 09:06 PM   |  #4  
fffft's Avatar
Senior Member
Thanks Meter: 621
 
1,978 posts
Join Date:Joined: Jul 2013
Would a kernel developer know if his kernel supports LXC? Probably. But there is no reason to believe that each kernel developer reads every question in the Q&A forum every day and has the time to reply as well.

So it would only make sense to guess how many forum members in total have talked about LXC in the past. There are 6 million members and 51,880,999 posts here.

123 posts in 51,880,999.. means that only 0.00024% - two posts in a million touched upon your subject. That is the very definition of esoteric. Given that the subject is so rare, the most reasonable thing to have done would have been to search the forum for existing threads before posting a question.

In any event, good luck with your project.

.
Last edited by fffft; 24th August 2014 at 09:14 PM.
The Following User Says Thank You to fffft For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes