virt-xml
Edit libvirt Domain XML files with explicit command-line options. Note:
domainrefers 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 --=?
- List all the suboptions for disk, network, and boot:
virt-xml --disk=? --network=? --boot=?
- Edit a value for a specific domain:
virt-xml --edit -- =
- Change the description for a specific domain:
virt-xml --edit --metadata description=""
- Enable/Disable the boot device menu for a specific domain:
virt-xml --edit --boot bootmenu=
- Attach host USB hub to a running VM (run
lsusbto see a list of USB devices with their IDs):
virt-xml --update --add-device --hostdev .
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
