virsh Command Examples

Manage virsh guest domains. (Note: guest_id can be the ID, name or UUID of the guest). Some subcommands such as list have their own usage documentation. More information: https://libvirt.org/manpages/virsh.html.

virsh connect {{qemu:///system}}

virsh list --all

virsh dumpxml {{guest_id}} > {{path/to/guest.xml}}

virsh create {{path/to/config_file.xml}}

virsh edit {{guest_id}}

virsh {{command}} {{guest_id}}

virsh save {{guest_id}} {{filename}}

virsh destroy {{guest_id}} && virsh undefine {{guest_id}}