Thanks Senthil for the LXC explanation.
So each dispatcher machine will be running multiple LXC instances. One for each USB device connected.
In that case , it would need to be pretty solid machine - say i7 atleast, 8GB RAM and 200 GB Hard disk space. I am considering something similar to http://www.newegg.com/Product/Product.aspx?Item=9SIA19P3RN6460 which to shelf space. What does the LAVA lab production instance (http//:validation.linaro.org) for dispatcher machines for USB/Android devices
Thanks Sandeep
On Fri, Jun 24, 2016 at 11:13 AM, Senthil Kumaran S < senthil.kumaran@linaro.org> wrote:
On Friday 24 June 2016 11:31 PM, Sandeep Chawla wrote:
I didn't quite understand how LXC will help with fastboot.
In V2 when a fastboot device is requested a transparent LXC device could be created automatically. Think of this transparent LXC device like an intermediate dispatcher, where all the commands that used to run from the dispatcher directly, now runs via LXC (ie., contained). This gives the flexibility of choosing your own operating system (currently only Debian and Ubuntu are supported) and java versions to communicate with the DUT. adb daemon is started within the LXC container in order to communicate with the device, similarly the deployment happens via fastboot commands within the container. Once the job finishes the transparent LXC container gets destroyed.
See
https://git.linaro.org/lava-team/refactoring.git/blob/HEAD:/nexus9-simple.ya... for a sample job definition in V2 that exercises the above.
A sample job run with nexus9 that demonstrates the above is here - https://staging.validation.linaro.org/scheduler/job/151871
My understanding of LXC was that it replaces KVM for a multinode setup as it is more lightweight and supports usb for things like adb over USB.
We are moving towards dropping multinode for running tests on fastboot devices. The above job is one such example. Also, shortly we will add support for devices such as Hikey, DragonBoard and whatever that uses fastboot and adb.
Thank You.
Senthil Kumaran S http://www.stylesen.org/ http://www.sasenthilkumaran.com/