On Tue, 31 Mar 2020 at 13:19, koti koti kotisoftwaretest@gmail.com wrote:
Thanks Milosz.
Your comment in previous email : "you need to pass the devices to the container as they show up on USB bus"
Currently I am facing the issue while implement your comments in my docker-cmopose.yaml . Can you let me know how can I pass the devices to the container through docker-conmpose.yaml file i.e https://github.com/danrue/lava-docker-compose/blob/master/docker-compose.yml ?
You didn't read till the end: "lava-dispatcher-host package takes care of that." You need to install lava-dispatcher-host package or build it from sources if you're not on debian.
milosz
Regards, Koti
On Tue, 31 Mar 2020 at 14:41, Milosz Wasilewski milosz.wasilewski@linaro.org wrote:
On Tue, 31 Mar 2020 at 09:36, koti koti kotisoftwaretest@gmail.com wrote:
Hi,
I am facing the issue while porting Host's "adb-devices" to lava-dispatcher docker.
Please can some one provide the right steps to detect "adb-devices" in "lava-dispatcher" docker?
Current steps: (still my lava-dispatcher fail to detect the Host's "adb-devices") ###########
- Lauch the LAVA-lab using "docker-compose up" from the repo "https://github.com/danrue/lava-docker-compose.git"
- add "/dev/bus/usb" , "/etc/udev/rules.d" and "privileged: True" to "lava-dispatcher" i.e
you don't need privileged container. It beats the purpose of containerizing the dispatcher.
" dispatcher: image: lavasoftware/lava-dispatcher:2019.12 container_name: lava_dispatcher privileged: True devices: - /dev/kvm # needed for QEMU - /dev/net/tun # needed for QEMU - /dev/bus/usb cap_add: - NET_ADMIN # needed for QEMU environment: - "DISPATCHER_HOSTNAME=--hostname=dispatcher" - "LOGGER_URL=tcp://server:5555" # url to send logs - "MASTER_URL=tcp://server:5556" # url of lava master volumes: - '/boot:/boot:ro' - '/lib/modules:/lib/modules:ro' - '/dev/bus/usb:/dev/bus/usb' - '/etc/udev/rules.d:/etc/udev/rules.d'" 3. Run the command #docker-compose up 4. Login to lava-dispatcher #docker exec -it <dispatcher-name" bash #apt-get update;apt-get install android-tools-adb android-tools-fastboot usbutils #adb devices
Can some one let me know the steps to detect my host's "adb-devices" in lava-dispatcher's docker?
you need to pass the devices to the container as they show up on USB bus. lava-dispatcher-host package takes care of that.
milosz
Regards, Koti _______________________________________________ Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users