Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

15.3. 配​​​​​​​置​​​​​​​ XML 转​​​​​​​储​​​​​​​

你​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​ virsh 为​​​​​​​现​​​​​​​有​​​​​​​的​​​​​​​虚​​​​​​​拟​​​​​​​机​​​​​​​执​​​​​​​行​​​​​​​一​​​​​​​个​​​​​​​数​​​​​​​据​​​​​​​转​​​​​​​储​​​​​​​。​​​​​​​
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.