Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs for QEMU #1702

Merged
merged 1 commit into from
Jan 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ spurplus>=2.3.4
semver>=2.13.0
pep8-naming>=0.12.0
types-toml>=0.1.5
Pillow>=8.3.1
Pillow>=9.0.0
azure-storage-file-share>=12.4.0
libvirt-python>={'version': '^7.10.0', 'platform': 'linux'}
pycdlib>=1.12.0
Sphinx>=4.1.0
sphinx-argparse>=0.2.5
sphinx-rtd-theme>=0.5.2
Expand Down
31 changes: 31 additions & 0 deletions docs/run_test/platform.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Run tests on different platforms

- `Run on Ready computers <#run-on-ready-computers>`__

- `Run on Linux and QEMU <#run-on-linux-and-qemu>`__

Run on Azure
------------

Expand Down Expand Up @@ -128,3 +130,32 @@ Learn more from :doc:`runbook reference <runbook>`.
For a comprehensive introduction to LISA supported test parameters and runbook
schema, please read :doc:`command-line reference <command_line>` and
:doc:`runbook reference <runbook>`.

Run on Linux and QEMU
---------------------

You can run the tests on Linux machine that has QEMU and KVM installed.

Currently, only the `CBL-Mariner <https://github.com/microsoft/CBL-Mariner>`_ distro
is supported. But it should be fairly straightforward to extend support to other
distros. Also, only the the tier 0 tests are currently supported.

For CBL-Mariner:

1. Acquire a VHDX image of CBL-Mariner.

For example, you can build your own by following the
`VHDX and VHD images <https://github.com/microsoft/CBL-Mariner/blob/main/toolkit/docs/quick_start/quickstart.md#vhdx-and-vhd-images>`_
build instructions.

2. Convert image from VHDX to qcow2:

.. code:: bash

qemu-img convert -f vhdx -O qcow2 "<vhdx file>" "<qcow2 file>"

3. Run LISA with the parameters below:

.. code:: bash

./lisa.sh -r ./microsoft/runbook/qemu/CBL-Mariner.yml -v "admin_private_key_file:<private key file>" -v "qcow2:<qcow2 file>"