[doc] Wrap libvirt XML devices in devices tag

This commit is contained in:
Jonathan Rubenstein
2026-11-05 10:53:55 +02:00
committed by Geoffrey McRae
parent 296257dcd4
commit 8c17f32598
3 changed files with 26 additions and 14 deletions

View File

@@ -46,7 +46,9 @@ For libvirt, add a SPICE server:
.. code:: xml
<graphics type='spice'/>
<devices>
<graphics type='spice'/>
</devices>
and a USB redirection device:

View File

@@ -122,24 +122,30 @@ To enable SPICE support, add a SPICE graphics server to your virtual machine:
.. code:: xml
<graphics type='spice'/>
<devices>
<graphics type='spice'/>
</devices>
For a fallback display, set up your video device to use VGA:
.. code:: xml
<video>
<model type="vga"/>
</video>
<devices>
<video>
<model type="vga"/>
</video>
</devices>
For fallback audio support, add a standard Intel HDA audio device:
.. code:: xml
<sound model='ich9'>
<audio id='1'/>
</sound>
<audio id='1' type='spice'/>
<devices>
<sound model='ich9'>
<audio id='1'/>
</sound>
<audio id='1' type='spice'/>
</devices>
.. _libvirt_memballoon_tweak:
@@ -157,7 +163,9 @@ Find the ``<memballoon>`` tag and set its type to ``none``:
.. code:: xml
<memballoon model="none"/>
<devices>
<memballoon model="none"/>
</devices>
.. _libvirt_additional_tuning:

View File

@@ -14,10 +14,12 @@ your virtual machine.
.. code:: xml
<shmem name='looking-glass'>
<model type='ivshmem-plain'/>
<size unit='M'>64</size>
</shmem>
<devices>
<shmem name='looking-glass'>
<model type='ivshmem-plain'/>
<size unit='M'>64</size>
</shmem>
</devices>
.. note::
If you are using QEMU directly without libvirt the following arguments are