[lxc-devel] lxc on android?

Daniel Lezcano daniel.lezcano at free.fr
Fri Feb 11 10:39:06 UTC 2011

On 02/11/2011 10:55 AM, Ludovic Guégan wrote:
> Hi Lezcano!
> I am glad to here from you!
> Android SDK comes with a modified qemu inside which android runs:
> http://developer.android.com/guide/developing/tools/emulator.html
> Here you can find how to rebuild the kernel for the emulator (a little
> old, i let you adapt):
> http://stackoverflow.com/questions/1809774/android-kernel-compile-and-test-with-android-emulator

Great ! thanks for the pointer.

> 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)

We can statically link against the glibc for the proof of concept but in 
the mid/long term that won't be suitable for an embedded system. I think 
we should port lxc to bionic and factor out/improve the lxc code.

> 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