[libvirt] snapshots += domain description?

Philipp Hahn hahn at univention.de
Fri Mar 4 10:04:49 UTC 2011


Hello,

to refresh this old question again:

Snapshots are a great feature, but I encountered a problem with Qemu/KVM: The 
snapshot information does not include the domain description, which breaks 
the following work-flow:
1. create and start domain with RAM=x1, CPU=y1, ...
2. take snapshot
3. shutdown domain
4. edit domain to RAM=x2, CPU=y2, ...
5. start domain and restore previous snapshot

Qemu will start the domain, but will fail to load the saved RAM state:
> qemu: warning: error while loading state for instance 0x0 of device 'ram'

For comparison, VMWare also includes the configuration in the snapshot data 
(see the *.vmsn file), so on restore the right configuration and state of 
mass storage and RAM are restored.

I think the domain XML should be included with the snapshot data, so restoring 
the exact machine is possible. On restore there would be two cases, when 
restoring a live vm:
1. when the already running qemu/kvm-process is compatible with the VM to be 
restored, reuse the running process and issue the loadvm (or what ever).
2. if they are incompatible, kill the running kvm process and start a new one 
with the right setup to load the VM state.

Is someone working on fixing the problem or are there any plans to fix that?

Sincerely
Philipp
-- 
Philipp Hahn           Open Source Software Engineer      hahn at univention.de
Univention GmbH        Linux for Your Business        fon: +49 421 22 232- 0
Mary-Somerville-Str.1  28359 Bremen                   fax: +49 421 22 232-99
                                                   http://www.univention.de/
** Besuchen Sie uns auf der CeBIT in Hannover **
** Auf dem Univention Stand D36 in Halle 2    **
** Vom 01. bis 05. März 2011                  **
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110304/e1247911/attachment-0001.sig>


More information about the libvir-list mailing list