KVM/Qemu snapshot

atuin

Renowned Member
Jun 9, 2009
27
1
68
www.geco-it.fr
hi,

i want to make snapshots on kvm with bash script

with the Qemu monitor command :

- info snapshot
- savevm
- loadvm
- delvm

run very well and make a few seconds to execute

but if i try the qemu-img commands:

- qemu-img snapshot -l /vz/images/101/vm-101-disk.qcow2 => run
- qemu-img snapshot -c/-d/-a "XXX" /vz/images/101/vm-101-disk.qcow2 => kill with crtl-c after many minutes

so i install socat and run

echo "MONITOR COMMAND" | socat unix-connect:/var/run/qemu-server/101.mon stdio => run

someone uses the command qemu-img successfully?

Cyril