Description of problem: libvirt deleted the XML configuration file for a VM after an edit. Version-Release number of selected component (if applicable): ii libvirt-bin 0.9.2-4ubuntu15 ii libvirt0 0.9.2-4ubuntu15 How reproducible: 100% Steps to Reproduce: 1. Create and define a VM, but do not start it. 2. virsh edit the VM. 3. Change the UUID 4. Save and exit the editor. 5. Error message appears: error: operation failed: domain 'orchestra' already exists with uuid 4dd4e4bc-ec46-d7b8-5935-cbd727dd89c0 6. Observe XML file in /etc/libvirt/qemu now gone, and never called me mother. Actual results: XML file vanished, and VM config lost to posterity. Expected results: VM config should still exist, with an updated UUID. libvirt should honour the updated UUID.
Hmm, I tried your steps to reproduce, but I am unable to reproduce this behavior on libvirt 0.9.6. I see the message about domain already exists with uuid..., but the VM is unaffected following the attempt to edit it. What version of libvirt are you using?