[lxc-devel] lxc on android?

Ludovic Guégan ludovic.guegan at gmail.com
Fri Feb 11 09:55:41 UTC 2011

Hi Lezcano!

I am glad to here from you!

Android SDK comes with a modified qemu inside which android runs:
Here you can find how to rebuild the kernel for the emulator (a little
old, i let you adapt):

Android use a fairly recent kernel but a different libc (bionic).
There are two approaches to solve this:
 - port lxc-commands to bionic
 - link statically liblxc against glic (compiled with the Android toolchain)

Am i correct?

On Fri, Feb 11, 2011 at 5:40 PM, Daniel Lezcano <daniel.lezcano at free.fr> wrote:
> On 02/11/2011 06:21 AM, Ludovic Guégan wrote:
>> Hi all,
>> First, thanks!
>> I am looking for a way to have a lxc container running inside an Android
>> device.
>> So far my goal is to isolate a process as a proof of concept.
>> Android use the bionic lic and not the gnu libc.
>> Do you have feed-back regarding the difficulties/challenges i can face
>> during this Android port?
> I am interested to help you on this. I am not familiar with the development
> on Android, I guess we have to check first the kernel version it is running
> on. Is it the ? And then check the namespace + cgroup
> functionalities are compiled in.
> Do you know if there is a virtual machine for Android which facilitate the
> development ? As well as a configuration file for the kernel ?
> lxc uses some recent syscalls (timerfd, signalfd, etc ...) we have to check
> the corresponding C functions are available in this 'lic' library.

More information about the lxc-devel mailing list