+---
+title: Setup_AGL_LAVA_Lab
+---
## Prerequisites ##
level README, you will need the following:
-
+
1) The following ports are forwarded to docker and therefore need to be kept free
can be set.
-
+
## Steps to create your own LAVA lab ##
-
+
1) Clone AGL lava-docker image:
```
-
+
2) On the LAVA master web GUI, create a new API token:
https://lava.automotivelinux.org/api/tokens/
-
+
3) Connect all the DUTs' serial to usb and ethernet connections to the host.
- power on, off and reset commads for the power switch
-
+
To get the uart idvendor and idproduct, unplug and re-plugin the USB cable of the
```
-
+
To get the uart devpath, run the command:
```
-
+
NOTE: Make sure you have at least one "board" included. (It is easiest to keep
qemu).
-
+
5) Run the automated setup script:
```
-
+
7) Check the web GUI to see if the lab has successfully connected to the LAVA
```
-
+
LAVA logs can be found in `/var/log/lava-dispatcher/`.
-
+
8) Helper scripts
```
-
+
## Adding new device-type templates ##
-
+
Not all device types are supported by default. Templates for new devices will
mailing list.
-
+
Before you submit any new device-type templates, please verify that they work.