@@ -119,6 +119,17 @@ available. Follow these general steps to run QEMU:
$ runqemu qemux86-64 core-image-minimal ext4
+ - This example starts QEMU in a temporary root filesystem ("snapshot") with
+ no graphical environment ("nographic"), meaning QEMU is started in the
+ current shell:
+
+ .. code-block:: console
+
+ $ runqemu qemux86-64 snapshot nographic
+
+ Running in "snapshot" mode means that changes in root filesystem will not
+ remain after quitting QEMU.
+
- This example specifies to boot an :term:`Initramfs` image and to
enable audio in QEMU. For this case, ``runqemu`` sets the internal
variable ``FSTYPE`` to ``cpio.gz``. Also, for audio to be enabled,
The snapshot option was added by OE-Core commit 8fec4a5a004f ("scripts/runqemu: Add snapshot support"). Along with nographic, this execution mode is useful for temporary tests in an environment that does not have graphics support (like a remote server, or a container). Add it as part of the listed examples. Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> --- documentation/dev-manual/qemu.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) --- base-commit: f9042e1da554017fe46460c1fd2bdf8c74b3fa18 change-id: 20251028-qemu-snapshot-c529fded964e