Am 02.07.13 17:43, schrieb Eric Blake:
On 07/02/2013 08:19 AM, Thomas Stein wrote:
>> Try this modification (again untested, but at least doesn't have a block
>> job running during the save attempt):
>>
>> virsh dumpxml --security-info dom > dom.xml
>> virsh undefine dom
>> virsh blockcopy dom vda /path/to/backup-vda
>> polling loop - check periodically until 'virsh blockjob dom vda'
>> shows 100% completion
>> virsh suspend dom
>> virsh blockjob dom vda --abort
>> virsh save dom /path/to/memory-backup --running
Good through here.
>> virsh resume dom
>> virsh define dom.xml
>
>
> virsh resume gentoo-template
> error: failed to get domain 'gentoo-template'
> error: Domain not found: no domain with matching name 'gentoo-template'
Aha - then 'virsh resume dom' is not correct; we merely need 'virsh
restore /path/to/memory-backup' which should load from the memory save
file and start it running again (since we saved it with --running in the
first place).
Yes. This works. So for now my backup looks like this:
virsh dumpxml --security-info dom > dom.xml
virsh undefine dom
virsh blockcopy dom vda /path/to/backup-vda
polling loop - check periodically until 'virsh blockjob dom vda'
shows 100% completion
virsh suspend dom
virsh blockjob dom vda --abort
virsh save dom /path/to/memory-backup --running
virsh restore /path/to/memory-backup
virsh resume dom
virsh define dom
Thank you again Eric. I'm quite happy with that solution.
Thomas