Gao Yongwei
2014-Jan-15 03:13 UTC
Re: [libvirt-users] how to detect if qemu supports live disk snapshot
> > > > > > So, if I'm not mistaken, looks like the only way to test for the support > in QEMU is to actually > > request a snapshot and see what happens. > > Is this right? > > Unfortunately true for the moment. >Hi, does this command can help with you? virsh qemu-monitor-command vmname --hmp 'help' | grep snapshot_blkdev
Eric Blake
2014-Jan-15 04:04 UTC
Re: [libvirt-users] how to detect if qemu supports live disk snapshot
On 01/14/2014 08:13 PM, Gao Yongwei wrote:>> >> >>> >>> So, if I'm not mistaken, looks like the only way to test for the support >> in QEMU is to actually >>> request a snapshot and see what happens. >>> Is this right? >> >> Unfortunately true for the moment. >> > Hi, does this command can help with you? > virsh qemu-monitor-command vmname --hmp 'help' | grep snapshot_blkdevThis would work for current versions of qemu, but may not work in the future (as HMP does not guarantee stable output) - parsing QMP output would be more reliable. Furthermore, the 'qemu-monitor-command' is intentionally unsupported, although this particular use is safe because it doesn't change guest state behind libvirt's back. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Gao Yongwei
2014-Jan-15 05:20 UTC
Re: [libvirt-users] how to detect if qemu supports live disk snapshot
> > This would work for current versions of qemu, but may not work in the > future (as HMP does not guarantee stable output) - parsing QMP output > would be more reliable. Furthermore, the 'qemu-monitor-command' is > intentionally unsupported, although this particular use is safe because > it doesn't change guest state behind libvirt's back. > > soga, thanks, :-)
Apparently Analagous Threads
- Re: how to detect if qemu supports live disk snapshot
- how to detect if qemu supports live disk snapshot
- Re: how to detect if qemu supports live disk snapshot
- Re: snapshot-create-as for a single disk not all disks
- Re: [Qemu-devel] [PATCH v2] hmp: allow cpu index for "info lapic"