QEMU-images is a simple tool to download, update and repack QEMU images.
QEMU-image is able to:
- locate and fetch the latest cloud image from Debian
- install some additional packages
- repack and compress the resulting image
- upload it to an artifactorial server
- test it using LAVA
QUEM-images requires some system binaries:
- guestfish
- qemu-img
- virt-customize
- zstd
On a Debian system, you can install the system dependencies using:
apt-get install libguestfs-tools qemu-utils zstd
QEM-images also requires some python libraries, listed in requirements.txt
:
python3 -m pip install -r requirements.txt
In order to use QEMU-image, you should just run:
python3 run.py
QEMU-image will locate, download and update the Debian cloud images and store
them into output/
sub-directory.
QEMU-image can also push to a given Artifactorial server if the environment variables are defined:
export ARTIFACTORIAL_URL="https://archive.validation.linaro.org/artifacts/team/lava/"
export ARTIFACTORIAL_TOKEN="<artifactorial-url>"
QEMU-image can also test the resulting image with a provided LAVA instance. You should define the following environment variables:
export LAVA_URL="https://staging.validation.linaro.org"
export LAVA_TOKEN="<lava-token>"