
On Mon, Nov 23, 2015 at 15:04:55 +0300, Vasiliy Tolstov wrote:
2015-11-23 14:43 GMT+03:00 Peter Krempa <pkrempa@redhat.com>:
If you insist on using --live you also have to specify --memspec to point to a location where the memory snapshot is saved. Btw, --live and --disk-only are basically mutually exclusive since --disk-only implies that the memory state should not be saved, whereas --live is used when the memory state is saved.
Additionally a disk-only snapshot is always considered "live" since it usually doesn't require pausing of the VM.
So, i'm try to modify command to virsh snapshot-create-as 40219 --no-metadata --disk-only --diskspec sda,file=/test.raw but also have error: error: unsupported configuration: external snapshot file for disk sda already exists and is not a block device: /test.raw
The file should not exist prior to the snapshot. If you want to pre-create it (with correct size and format), you need to specify --reuse-external in that case. Virsh manual already documents that: If --reuse-external is specified, and the snapshot XML requests an external snapshot with a destination of an existing file, then the destination must exist and be pre-created with correct format and metadata. The file is then reused; otherwise, a snapshot is refused to avoid losing contents of the existing files.