LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

virt-xml

Edit libvirt domain XML configuration

TLDR

List available disk suboptions
$ virt-xml --disk=?
copy
Edit VM metadata
$ virt-xml [domain] --edit --metadata description="[new_description]"
copy
Toggle boot menu
$ virt-xml [domain] --edit --boot bootmenu=[on]
copy
Add a disk to a VM
$ virt-xml [domain] --add-device --disk [path=/var/lib/libvirt/images/disk.qcow2]
copy
Attach USB device to a running VM
$ virt-xml [domain] --update --add-device --hostdev [bus].[device]
copy

SYNOPSIS

virt-xml [OPTIONS] DOMAIN

DESCRIPTION

virt-xml edits libvirt domain XML files using explicit command-line options. It provides a way to modify VM configurations without manually editing XML.Domain can be specified by name, UUID, or ID for existing VMs. Adding =? to any option lists available suboptions.

PARAMETERS

--edit

Edit existing configuration
--add-device
Add a new device
--update
Apply changes to running VM
--disk
Disk configuration options
--network
Network configuration options
--boot
Boot configuration options
--metadata
Metadata options (description, title, etc.)
--hostdev
Host device passthrough

INSTALL

sudo dnf install virt-manager
copy
sudo pacman -S virt-manager
copy
sudo apk add virt-manager
copy
sudo zypper install virt-manager
copy
brew install virt-manager
copy
nix profile install nixpkgs#virt-manager
copy

CAVEATS

Changes to running VMs may require restart. Not all options can be changed on running VMs. Requires proper libvirt permissions.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid