virsh
Manage `virsh` guest domains. Note: Some of the commands below may require specifying `virsh --connect URI` explicitly. Some subcommands such as `list` have their own usage documentation.
More info →Subcommands (5)
Connect to a virtual machine hypervisor. See also: `virsh`.
List information about block devices associated with a virtual machine. See also: `virsh`.
Display information about `virsh` commands or command groups. See also: `virsh`.
List the ID, name, and state of virtual machines. See also: `virsh`.
Delete a virtual machine.
Options (1)
-c, --connectbooleanConnect to a hypervisor session interactively
virsh {{[-c|--connect]}} {{qemu:///system|qemu:///session|xen:///system|lxc:///system|...}}Examples (8)
Connect to a hypervisor session interactively
virsh [-c|--connect] qemu:///system|qemu:///session|xen:///system|lxc:///system|...List all domains
virsh [-c|--connect] URI list --allActivate a network named `default`
virsh net-start defaultCreate a domain from a configuration file
virsh create path/to/config_file.xmlEdit a domain's configuration file (editor can be changed with `$EDITOR` or `$VISUAL`)
Start/reboot/reset/shutdown/destroy/suspend/resume a domain
virsh start|reboot|reset|shutdown|destroy|suspend|resume domainSave the current running state of a domain (RAM, but not disk state) to a state file (domain will be powered off)
virsh save domain path/to/state_fileRemove storage and snapshots of a stopped domain
virsh undefine domain --remove-all-storage --snapshots-metadata