List system virtual machines:

$ virsh -c qemu:///system list --all

List session VMs:

$ virsh -c qemu:///session list --all

Dump a VM configuration to XML file:

$ virsh -c qemu:///system dumpxml vm-name > vm-name-conf.xml

Create a new VM by importing its XML configuration:

$ virsh -c qemu:///system define vm-name-conf.xml

Related content