virt-xml Command Examples

Edit libvirt Domain XML files with explicit command-line options. Note: 'domain' refers to the name, UUID or ID for the existing VMs (See: tldr virsh). More information: https://github.com/virt-manager/virt-manager/blob/main/man/virt-xml.rst.

virt-xml --{{option}}=?

virt-xml --disk=? --network=? --boot=?

virt-xml {{domain}} --edit --{{option}} {{suboption}}={{new_value}}

virt-xml {{domain}} --edit --metadata description="{{new_description}}"

virt-xml {{domain}} --edit --boot bootmenu={{on|off}}

virt-xml {{domain}} --update --add-device --hostdev {{bus}}.{{device}}