1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-08 07:46:04 +02:00
tldr/pages/linux/virt-xml.md
Pranaov S bafdb59eaa
*: follow style guide for see also section (#16793)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
2025-06-07 17:47:18 +03:00

30 lines
966 B
Markdown

# 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 also: `virsh`.
> More information: <https://github.com/virt-manager/virt-manager/blob/main/man/virt-xml.rst>.
- 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 (run `lsusb` to see a list of USB devices with their IDs):
`virt-xml {{domain}} --update --add-device --hostdev {{bus}}.{{device}}`