Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
It seems running anbox in lxd container is not impossible as in blog by @morphis https://ubuntu.com/blog/running-android-in-the-cloud-with-amazon-ec2-a1-instances
I tried below steps to run anbox in lxd container.
Now I thought prerequisite for anbox in the lxd container was done and proceeded first to give a try to snap version of anbox.
But I am stuck with the snap error: "cannot setup udev for snap "anbox"" while installing.
I was successful in running container-manager but when running session-manager, I got "failed to connect to dbus" error. I installed dbus dbus-x11 inside lxd container but nothing changed.
// inside lxd container
Running anbox in docker or lxd will be great and I hope someone is giving this a try.
// anbox system-info showing correct binder and ashmem modules
I could not make anbox work with lxd but I did manage to modify anbox code to support multiple container managers, each with its own android lxc container and separate session manager for each instance. (in non snap mode)
It is work in progress and I will share the change once its finished. Basic outline
Support for multiple containers needs architecture level changes in Anbox.
What would be the advantage of using LXD instead of LXC for Anbox? LXC has the advantage to be made with C++ which is easier to contribute for most people, compared to LXD which is made with Go language from Google.