How should I run android os lxc container on native Linux(ubuntu 16.04 LTS)

I want to create the android OS container which shall run on native Ubuntu 16.04 LTS. Some reference or guidelines will be helpful to achieve this


What expectations do you have of this Android container? Show Android GUI?
LXC/LXD are not VM, meaning you would need the container to run the same architecture as the host, i.e. Android-x86 would be suitable. Also, you would need to have Android output the GUI on a X11 server.

Having said that, have a look at the Halium project, which I think they already use LXC They have a Telegram channel where you can ask for details.

I am trying to run android-x86 on lxd container.
Will that be supported by lxd ? or lcd only runs linux containers ?

Have a look at the Anbox project, which is Android on x86 (not sure if based on android-x86).
There is a snap package for the easy installation. This snap package is used as just a packaging format.
You install in a way that your host is not protected at all (software is running in devmode).

There is mention to use LXD in Anbox. For example,

1 Like