diff options
author | Cole Robinson <crobinso@redhat.com> | 2022-02-25 13:47:38 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2022-02-27 11:46:54 -0500 |
commit | d6b74a83d1d048bd5467d38adff41a72f6cd3ee8 (patch) | |
tree | 97f95d42e6ea277b63fc2f2e7f2a7e0cd10cff4e /man | |
parent | 6c47fa56b912659ea6504566b06790d69e25ec72 (diff) | |
download | virt-manager-d6b74a83d1d048bd5467d38adff41a72f6cd3ee8.tar.gz |
cli: Add xpath.* subargs to XML options
This adds the power of --xml to individual device options. For example
this makes it easier to make custom XML changes for a single --disk
device from both virt-install and virt-xml
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'man')
-rw-r--r-- | man/virt-install.rst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/man/virt-install.rst b/man/virt-install.rst index b767afe1..6008adf7 100644 --- a/man/virt-install.rst +++ b/man/virt-install.rst @@ -258,6 +258,24 @@ The --xml option has 4 sub options: +**xpath subarguments** +`````````````````````` + +Similar to the ``--xml`` option, most top level options have ``xpath.*`` +suboptions. For example, ``--disk xpath1.set=./@foo=bar,xpath2.create=./newelement`` +would generate XML alterations like + +.. code-block:: + + <disk foo="bar"> + <newelements/> + </disk> + +This is useful for setting XML options per device, when virt-install does not +support those options yet. + + + ``--qemu-commandline`` ^^^^^^^^^^^^^^^^^^^^^^ |