15.3. Configuring an XML Dump
You can use virsh to perform a data dump for an existing virtual machine.
virsh dumpxml [domain-id | domain-name | domain-uuid]
This command outputs the domain information (in XML) to stdout . If you save the data to a file, you can use the create option to recreate the virtual machine.