From: Antonin Godard <antonin.godard@bootlin.com>
To: docs@lists.yoctoproject.org
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Antonin Godard <antonin.godard@bootlin.com>
Subject: [PATCH v2 2/8] ref-manual/variables.rst: document qemuboot variables
Date: Fri, 20 Mar 2026 11:46:20 +0100 [thread overview]
Message-ID: <20260320-release-notes-6-0-v2-2-1bdb1eb142ae@bootlin.com> (raw)
In-Reply-To: <20260320-release-notes-6-0-v2-0-1bdb1eb142ae@bootlin.com>
Document the variables in qemuboot.bbclass that allow customizing how
the QEMU guest is instantiated.
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
documentation/ref-manual/variables.rst | 147 +++++++++++++++++++++++++++++++++
1 file changed, 147 insertions(+)
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 9e0c5b083..e24c4bbf8 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -7850,6 +7850,153 @@ system and gives an overview of their function and contents.
QA_EMPTY_DIRS_RECOMMENDATION:/dev = "but all devices must be created at runtime"
+ :term:`QB_CMDLINE_IP_SLIRP`
+
+ If :term:`QB_NETWORK_DEVICE` adds more than one network interface to QEMU,
+ usually the ``ip=`` Linux kernel command line argument needs to be changed
+ accordingly. The :term:`QB_CMDLINE_IP_SLIRP` variable allows controlling
+ this value. See the Linux kernel documentation for more details:
+ https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt.
+
+ :term:`QB_CMDLINE_IP_TAP`
+
+ This variable is similar to the :term:`QB_CMDLINE_IP_SLIRP` variable.
+
+ Use as follows::
+
+ QB_CMDLINE_IP_TAP = "ip=192.168.7.@CLIENT@::192.168.7.@GATEWAY@:255.255.255.0::eth0"
+
+ Since the tap interface requires static IP configuration, ``runqemu``
+ replaces the ``@CLIENT@`` and ``@GATEWAY@`` place holders by the IP and
+ the gateway address of the QEMU guest.
+
+ :term:`QB_DEFAULT_FSTYPE`
+
+ The :term:`QB_DEFAULT_FSTYPE` variable controls the default filesystem
+ type to boot. It is represented as the file extension of one of the root
+ filesystem image extension found in :term:`DEPLOY_DIR_IMAGE`. For example:
+ ``ext4.zst``.
+
+ :term:`QB_DEFAULT_KERNEL`
+
+ When using ``runqemu``, the :term:`QB_DEFAULT_KERNEL` variable controls
+ the default Linux kernel image to boot, found in :term:`DEPLOY_DIR_IMAGE`. For
+ example: ``bzImage``.
+
+ :term:`QB_DRIVE_TYPE`
+
+ When using ``runqemu``, the :term:`QB_DRIVE_TYPE` variable specifies the
+ type of drive to emulate when starting the emulated machine.
+ Valid values are:
+
+ - ``/dev/hd``: emulates an IDE drive.
+ - ``/dev/mmcblk``: emulates an SD Card.
+ - ``/dev/sd``: emulates an SCSI drive.
+ - ``/dev/vd``: emulates a VirtIO drive.
+ - ``/dev/vdb``: emulates a block VirtIO drive.
+
+ :term:`QB_GRAPHICS`
+
+ When using ``runqemu``, the :term:`QB_GRAPHICS` variable controls the QEMU
+ video card type to emulate. For example: ``-vga std``.
+
+ This value is appended to the argument list when running ``qemu``.
+
+ :term:`QB_KERNEL_CMDLINE_APPEND`
+
+ The :term:`QB_KERNEL_CMDLINE_APPEND` variable controls the options passed
+ to the Linux kernel's ``-append`` QEMU options, which controls the Linux kernel
+ command-line.
+
+ For example::
+
+ QB_KERNEL_CMDLINE_APPEND = "console=ttyS0"
+
+ :term:`QB_MEM`
+
+ The :term:`QB_MEM` variable controls the amount of memory allocated to the
+ emulated machine. Specify as follows::
+
+ QB_MEM = "-m 512"
+
+ :term:`QB_NETWORK_DEVICE`
+
+ When using ``runqemu``, the :term:`QB_NETWORK_DEVICE` variable controls
+ the network device instantiated by QEMU. This value needs to be compatible
+ with the :term:`QB_TAP_OPT` variable.
+
+ Example::
+
+ QB_NETWORK_DEVICE = "-device virtio-net-pci,netdev=net0,mac=@MAC@"
+
+ ``runqemu`` replaces ``@MAC@`` with a predefined mac address.
+
+ :term:`QB_NFSROOTFS_EXTRA_OPT`
+
+ When using ``runqemu``, the :term:`QB_NFSROOTFS_EXTRA_OPT` variable
+ controls extra options to be appended to the NFS rootfs options in the
+ Linux kernel command-line.
+
+ For example::
+
+ QB_NFSROOTFS_EXTRA_OPT = "wsize=4096,rsize=4096"
+
+ :term:`QB_OPT_APPEND`
+
+ When using ``runqemu``, the :term:`QB_OPT_APPEND` variable controls
+ general options to append to QEMU when starting.
+
+ :term:`QB_RNG`
+
+ When using ``runqemu``, the :term:`QB_RNG` variable controls
+ pass-through for host random number generator, it can speedup boot
+ in system mode, where system is experiencing entropy starvation.
+
+ For example::
+
+ QB_RNG = "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0"
+
+ :term:`QB_ROOTFS_EXTRA_OPT`
+
+ When using ``runqemu``, the :term:`QB_ROOTFS_EXTRA_OPT` variable controls
+ extra options to be appended to the rootfs device options.
+
+ :term:`QB_SERIAL_OPT`
+
+ When using ``runqemu``, the :term:`QB_SERIAL_OPT` variable controls the
+ serial port option.
+
+ For example::
+
+ QB_SERIAL_OPT = "-serial mon:stdio"
+
+ :term:`QB_SMP`
+
+ When using ``runqemu``, the :term:`QB_SMP` variable controls
+ amount of CPU cores made availalble inside the QEMU guest, each mapped to
+ a thread on the host.
+
+ For example::
+
+ QB_SMP = "-smp 8".
+
+ :term:`QB_TAP_NAMESERVER`
+
+ When using ``runqemu``, the :term:`QB_TAP_NAMESERVER` variable controls
+ the default :wikipedia:`name server <Name_server>` used in the QEMU guest.
+
+ :term:`QB_TAP_OPT`
+
+ When using ``runqemu``, the :term:`QB_TAP_OPT` variable controls
+ the network option for "tap" mode.
+
+ For example::
+
+ QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
+
+ Note that ``runqemu`` will replace ``@TAP@`` with the tap interface in
+ use, such as ``tap0``, ``tap1``, etc.
+
:term:`RANLIB`
The minimal command and arguments to run :manpage:`ranlib <ranlib(1)>`.
--
2.53.0
next prev parent reply other threads:[~2026-03-20 10:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-20 10:46 [PATCH v2 0/8] Update the documentation for 6.0 (Wrynose) Antonin Godard
2026-03-20 10:46 ` [PATCH v2 1/8] conf.py: define new {oecore,bitbake,meta_yocto}_rev roles Antonin Godard
2026-03-20 10:46 ` Antonin Godard [this message]
2026-03-20 10:46 ` [PATCH v2 3/8] ref-manual/variables.rst: SPDX_PACKAGE_URL: add missing parenthesis Antonin Godard
2026-03-20 10:46 ` [PATCH v2 4/8] ref-manual/variables.rst: document the LTO variable Antonin Godard
2026-03-20 10:46 ` [PATCH v2 5/8] ref-manual/variables.rst: document the SPDX_CONCLUDED_LICENSE variable Antonin Godard
2026-03-20 10:46 ` [PATCH v2 6/8] migration-guides: update 6.0 (Wrynose) release notes Antonin Godard
2026-03-20 10:46 ` [PATCH v2 7/8] docs-wide: add warning on disabled NPM fetcher Antonin Godard
2026-03-20 10:46 ` [PATCH v2 8/8] ref-manual/faq.rst: remove the CVS proxy note Antonin Godard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260320-release-notes-6-0-v2-2-1bdb1eb142ae@bootlin.com \
--to=antonin.godard@bootlin.com \
--cc=docs@lists.yoctoproject.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox