[pve-devel] savevm tests

Alexandre DERUMIER aderumier at odiso.com
Wed Aug 29 17:11:36 CEST 2012

>>* create_snapshot: (savevm?) 
Yes, if storage support it (qcow2,rbd,sheepdog).
I would like to implement also snasphot for external storage like nexenta
We simply need to define a create_snapshot sub for each storage module

- create an internal snapshot of all disk 
- optional including complete VM state (RAM) 
>>- use guest agent like 'blockdev_snapshot_sync' 
qmp command is "guest-fsfreeze-freeze" to guest agent

* delete_snapshot: 

>>- removes all internal snapshot with that name 
can be done online with delvm monitor command

>>Rollback is not needed, because we restart the VM for that case. 

- We can rollback online if we have the complete vmstate,using load_vm monitor command (tested with qcow2,it's funny :)
or offline:
- or we can use -loadvm param at kvm command line (to load the vmstate)
- or we can use storage commands to rollback

>>Anything else? 

I think it's a good start :)




Alexandre D e rumier 

Ingénieur Systèmes et Réseaux 

Fixe : 03 20 68 88 85 

Fax : 03 20 68 90 88 

45 Bvd du Général Leclerc 59100 Roubaix 
12 rue Marivaux 75002 Paris 

More information about the pve-devel mailing list