There are many ways in which we can setup networking for LXC containers - simple to highly complex. In this blog post I will get the simple steps required in order to have networking work for LXC containers using libvirt. It is hard to create bridges on WiFi interfaces unless your network foo is high (YMMV), but libvirt makes things simple irrespective of the interface. When your dev box is a laptop and want to use LXC on it, then instead of spending hours to get the networking work with the WiFi or avoid getting stranded to cable when using LXC on the laptop, libvirt comes handy. The steps below are tested on Debian Stretch / Testing / Unstable / Sid - give it a shot on other distros with equivalent packages.
This is a continuation to "Access Android devices from LXC" which explains how to access an Android device from within an LXC container. Android Compatibility Test Suite (CTS) represents the "mechanism" of compatibility for Android devices. It is a suite of tests that are run on an Android device to check compatibility of the device under test. We shall see how we can run CTS within LXC so that we have an option of running CTS from different operating systems and different JAVA versions.