List system virtual machines:
1 $ virsh -c qemu:///system list --all
List session VMs:
1 $ virsh -c qemu:///session list --all
Dump a VM configuration to XML file:
1 $ virsh -c qemu:///system dumpxml vm-name > vm-name-conf.xml
Create a new VM by importing its XML configuration:
1 $ virsh -c qemu:///system define vm-name-conf.xml