Skip to main content

yaml2qemu

CI pipx Nx Python

QEMU-system commands are hard to edit, yaml is easier. Why not describe qemu system in yaml?

arch: x86_64
machine:
  type: q35
  cpu: max
  smp: 2
  memory: 512M
  accel: auto
kernel:
  image: bzImage
  cmdline: root=/dev/vda rw console=ttyS0
disks:
  - file: rootfs.ext4
    format: raw
    interface: virtio
networks:
  - type: user
    hostfwd:
      - tcp:127.0.0.1:2222-:22
display: none
serial: mon:stdio
$ yaml2qemu vm.yml

By default the generated command is executed.

  • --print — inspect the command instead of running it.
  • --check — validate the configuration without running QEMU.
  • --verbose — show the command before it runs.

Unknown keys are rejected so typos fail loudly; anything the grammar does not cover can be passed through with extra_args. Optional setup and teardown lists run commands before QEMU starts and after it exits.

Installation

yaml2qemu is a Python application and is best installed with pipx:

pipx install .                                          # local checkout
pipx install git+https://github.com/vikingfacer/yaml2qemu     # from git
pipx install yaml2qemu                                  # from PyPI

QEMU must be installed separately; the qemu-system-* binary for the chosen arch is looked up at runtime.

Usage

yaml2qemu [-p | --print] [--check] [-v | --verbose] [config]

config defaults to qemu.yml. The full YAML grammar is documented in docs/schema.md; a complete example lives in examples/qemu.yml.

Development

A Nix flake provides a development shell with QEMU and the Python packages:

nix develop

Build distribution artifacts with:

python -m build

License

Licensed under the MIT License.

Metadata

Release files for yaml2qemu 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yaml2qemu 0.1.0
File Size Uploaded Provenance Actions
yaml2qemu-0.1.0.tar.gz 15.0 kB With provenance Details for yaml2qemu-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yaml2qemu 0.1.0
File Interpreter ABI Platform Actions
yaml2qemu-0.1.0-py3-none-any.whl Python 3 none any Details for yaml2qemu-0.1.0-py3-none-any.whl

Total release size: 24.5 kB

Release files / yaml2qemu-0.1.0.tar.gz

Download URL yaml2qemu-0.1.0.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
48e95d8ba9a07817959e92c021a92da9d7d9ff73d995d5ea00749dd147cda352
BLAKE2b-256 checksum
How to use checksums
045bb655dbd9f42b18f968716163dfd44ce8e3d1ccb52cc3bd39b12fc5c242b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / yaml2qemu-0.1.0-py3-none-any.whl

Download URL yaml2qemu-0.1.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae15ca4cc6432098bcb62eca44d1766df31d2325322d60c1f28d52b6d479ceaf
BLAKE2b-256 checksum
How to use checksums
c768c324d7ee90b429e7bc58a49911d0e4955bf384b0c11ead0f102c3436c28a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for yaml2qemu 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for yaml2qemu-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page