[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
http://git.qemu.org/?p=qemu.git;a=blob;f=qapi-schema-guest.json;h=d955cf11fb3c1320a263f88b9dac4618c53e63a0;hb=HEAD

* delete_snapshot: 

>>- removes all internal snapshot with that name 
yes.
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