diff --git a/pages/linux/virt-xml.md b/pages/linux/virt-xml.md new file mode 100644 index 0000000000..7cd0a61710 --- /dev/null +++ b/pages/linux/virt-xml.md @@ -0,0 +1,29 @@ +# virt-xml + +> 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: . + +- List all the suboptions for a specific option: + +`virt-xml --{{option}}=?` + +- List all the suboptions for disk, network, and boot: + +`virt-xml --disk=? --network=? --boot=?` + +- Edit a value for a specific domain: + +`virt-xml {{domain}} --edit --{{option}} {{suboption}}={{new_value}}` + +- Change the description for a specific domain: + +`virt-xml {{domain}} --edit --metadata description="{{new_description}}"` + +- Enable/Disable the boot device menu for a specific domain: + +`virt-xml {{domain}} --edit --boot bootmenu={{on|off}}` + +- Attach host USB hub to a running VM (See: tldr lsusb): + +`virt-xml {{domain}} --update --add-device --hostdev {{bus}}.{{device}}`