Update on-disk XML after virsh snapshot-create-as

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am using "virsh snapshot-create-as" to create external snapshots of running
VMs using libvirt 1.0.2 on Ubuntu 12.04 and libvirt 1.2.2 on Ubuntu 14.04. This
works well for creating the snapshots, but I notice that the on-disk XML file
in /etc/libvirt/qemu is not updated with the new disk image file after the
snapshot is created. This appears to be very similar to
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1403841, but occurs on
both 12.04 and 14.04 so I am not sure it is the same bug.

This presents a problem if the virtual machine host is suddenly powered off
since a subsequent boot will find the VM using an older image file to boot
rather than the most recent snapshot. Is it safe for me to use an external
wrapper script that does the following to ensure the on-disk XML is up-to-date:
virsh snapshot-create-as ....  
virsh dumpxml > /etc/libvirt/qemu/<domain>.xml

Is it safe for me to overwrite the contents of /etc/libvirt/qemu/<domain>.xml
manually while the VM is running?

Thanks,

Andrew Martin

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux