2019-05-17 12:01:59 +00:00
|
|
|
=============
|
|
|
|
virt-qemu-run
|
|
|
|
=============
|
|
|
|
|
|
|
|
---------------------------
|
|
|
|
Run a standalone QEMU guest
|
|
|
|
---------------------------
|
|
|
|
|
|
|
|
:Manual section: 1
|
|
|
|
:Manual group: Virtualization Support
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
|
2021-12-10 10:05:54 +00:00
|
|
|
|
2019-05-17 12:01:59 +00:00
|
|
|
SYNOPSIS
|
|
|
|
========
|
|
|
|
|
2021-12-10 10:05:54 +00:00
|
|
|
``virt-qemu-run`` [*OPTION*]... *GUEST-XML-FILE*
|
|
|
|
|
2019-05-17 12:01:59 +00:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
===========
|
|
|
|
|
|
|
|
This tool provides a way to run a standalone QEMU guest such that it
|
2020-01-27 15:35:58 +00:00
|
|
|
is completely independent of libvirtd. It makes use of the embedded
|
2019-05-17 12:01:59 +00:00
|
|
|
QEMU driver support to run the VM placing files under an isolated
|
|
|
|
directory tree. When the guest is run with this tool it is invisible
|
|
|
|
to libvirtd and thus also invisible to other libvirt tools such as
|
|
|
|
virsh.
|
|
|
|
|
2021-12-10 10:05:54 +00:00
|
|
|
The ``virt-qemu-run`` program will run the QEMU virtual machine, and
|
|
|
|
then block until the guest OS shuts down, at which point it will
|
|
|
|
exit.
|
2019-05-17 12:01:59 +00:00
|
|
|
|
2021-12-10 10:05:54 +00:00
|
|
|
If the ``virt-qemu-run`` program is interrupted (eg Ctrl-C) it will
|
|
|
|
immediately terminate the virtual machine without giving the guest OS
|
|
|
|
any opportunity to gracefully shutdown.
|
2019-05-17 12:01:59 +00:00
|
|
|
|
2020-01-29 11:17:54 +00:00
|
|
|
**NOTE: this tool is currently considered experimental.** Its
|
|
|
|
usage and behaviour is still subject to change in future libvirt
|
|
|
|
releases. For further information on its usage consult the
|
2021-03-15 09:58:10 +00:00
|
|
|
`QEMU driver documentation <https://libvirt.org/drvqemu.html#embedded-driver>`_.
|
2020-01-29 11:17:54 +00:00
|
|
|
|
2021-12-10 10:05:54 +00:00
|
|
|
|
2019-05-17 12:01:59 +00:00
|
|
|
OPTIONS
|
|
|
|
=======
|
|
|
|
|
2021-12-10 10:05:54 +00:00
|
|
|
*GUEST-XML-FILE*
|
2019-05-17 12:01:59 +00:00
|
|
|
|
|
|
|
The full path to the XML file describing the guest virtual machine
|
|
|
|
to be booted.
|
|
|
|
|
2021-12-10 10:05:54 +00:00
|
|
|
``-r`` *DIR*, ``--root``\ =\ *DIR*
|
2019-05-17 12:01:59 +00:00
|
|
|
|
|
|
|
Specify the root directory to use for storing state associated with
|
|
|
|
the virtual machine. The caller is responsible for deleting this
|
|
|
|
directory when it is no longer required.
|
|
|
|
|
|
|
|
If this parameter is omitted, then a random temporary directory
|
2021-12-10 10:05:54 +00:00
|
|
|
will be created, and its contents be automatically deleted at
|
2019-05-17 12:01:59 +00:00
|
|
|
VM shutdown.
|
|
|
|
|
2021-12-10 10:05:54 +00:00
|
|
|
``-s`` *SECRET-XML-FILE*\ ,\ *SECRET-VALUE-FILE*,
|
|
|
|
``--secret``\ =\ *SECRET-XML-FILE*\ ,\ *SECRET-VALUE-FILE*
|
|
|
|
|
|
|
|
Specify a secret to be loaded into the secret driver.
|
|
|
|
*SECRET-XML-FILE* is a path to the XML description of the secret,
|
|
|
|
whose UUID should match a secret referenced in the guest domain XML.
|
|
|
|
*SECRET-VALUE-FILE* is a path containing the raw value of the secret.
|
|
|
|
|
|
|
|
``-v``, ``--verbose``
|
|
|
|
|
|
|
|
Display verbose information about startup.
|
|
|
|
|
|
|
|
``-h``, ``--help``
|
|
|
|
|
|
|
|
Display the command line help.
|
2019-05-17 12:01:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
EXIT STATUS
|
|
|
|
===========
|
|
|
|
|
|
|
|
Upon successful shutdown, an exit status of 0 will be set. Upon
|
|
|
|
failure a non-zero status will be set.
|
|
|
|
|
2021-12-10 10:05:54 +00:00
|
|
|
|
2019-05-17 12:01:59 +00:00
|
|
|
AUTHOR
|
|
|
|
======
|
|
|
|
|
|
|
|
Daniel P. Berrangé
|
|
|
|
|
|
|
|
|
|
|
|
BUGS
|
|
|
|
====
|
|
|
|
|
|
|
|
Please report all bugs you discover. This should be done via either:
|
|
|
|
|
|
|
|
#. the mailing list
|
|
|
|
|
|
|
|
`https://libvirt.org/contact.html <https://libvirt.org/contact.html>`_
|
|
|
|
|
|
|
|
#. the bug tracker
|
|
|
|
|
|
|
|
`https://libvirt.org/bugs.html <https://libvirt.org/bugs.html>`_
|
|
|
|
|
|
|
|
Alternatively, you may report bugs to your software distributor / vendor.
|
|
|
|
|
|
|
|
|
|
|
|
COPYRIGHT
|
|
|
|
=========
|
|
|
|
|
|
|
|
Copyright (C) 2019 by Red Hat, Inc.
|
|
|
|
|
|
|
|
|
|
|
|
LICENSE
|
|
|
|
=======
|
|
|
|
|
|
|
|
``virt-run-qemu`` is distributed under the terms of the GNU LGPL v2+.
|
|
|
|
This is free software; see the source for copying conditions. There
|
|
|
|
is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
PURPOSE
|
|
|
|
|
2021-12-10 10:05:54 +00:00
|
|
|
|
2019-05-17 12:01:59 +00:00
|
|
|
SEE ALSO
|
|
|
|
========
|
|
|
|
|
|
|
|
virsh(1), `https://libvirt.org/ <https://libvirt.org/>`_
|