File: qemu.md

package info (click to toggle)
lava 2026.01-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 30,796 kB
  • sloc: python: 82,790; javascript: 16,658; sh: 1,364; makefile: 335
file content (39 lines) | stat: -rw-r--r-- 918 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# QEMU device setup

LAVA can use qemu as a DUT and run test inside QEMU.

## Create device-type

[Create the device type](common.md#create-device-type) using the name **`qemu`**.

## Create device

1. [Add the device](common.md#add-device) using the following settings:
    * **Device Type:** `qemu`
    * **Hostname:** A unique name (e.g., `qemu-01`)
2. [Add the device configuration](common.md#add-device-configuration).

    For a simple qemu job, this device dictionary would work:

    ```jinja
    {% extends "qemu.jinja2" %}

    {% set netdevice = "user" %}
    {% set memory = 1024 %}
    ```

    !!! tip
        If `/dev/kvm` is unavailable on the worker, add `{% set no_kvm = True %}` to
        the dictionary.

## Submit a job

Submit this simple test job:

```yaml
--8<-- "jobs/qemu.yaml"
```

The job page will look like [this](https://validation.linaro.org/scheduler/job/2009038).

--8<-- "refs.txt"