title: Changes are lost after editing <hostname>.xml by virsh edit command
body: <p>I am using 'virsh edit' command to edit an XML of the host. As soon as I add the contents I come out of the file by: wq!(vi editor style), Again I entered 'virsh edit' command and found my edits in the XML are lost. I checked the permissions in /etc/libvirt/qemu and found the permissions are rw-----, I was editing the file as root. </p>
  
  <p>Could anyone help what can be the issue?</p>