mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 08:15:24 +02:00
virt-xml: add page (#9456)
This commit is contained in:
parent
519c7b04b1
commit
adbbb76e90
1 changed files with 29 additions and 0 deletions
29
pages/linux/virt-xml.md
Normal file
29
pages/linux/virt-xml.md
Normal file
|
@ -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: <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 (See: tldr lsusb):
|
||||
|
||||
`virt-xml {{domain}} --update --add-device --hostdev {{bus}}.{{device}}`
|
Loading…
Add table
Reference in a new issue