Red Hat Bugzilla – Bug 817226
[RFE] support domain offline --disk-only snapshots
Last modified: 2016-04-26 10:02:57 EDT
Description of problem:
Libvirt doesn't support domain offline --disk-only snapshots.
Version-Release number of selected component (if applicable):
# rpm -q libvirt qemu-kvm-rhev
Steps to Reproduce:
# virsh domstate test
# virsh snapshot-create test --atomic --disk-only
error: unsupported configuration: disk snapshots of inactive domains not
"disk snapshots of inactive domains not implemented yet"
Support offline --disk-only snapshots.
Eric has help me confirm the issue.
This is on my personal pet-peeve list. I definitely plan to fix this in time for 6.4, because it is not only frequently requested upstream, but because I can use it for making my other disk coding tasks easier. The work is straightforward - if the domain is offline, wire up qemu-img to do the right things.
is this a fixed bug?
(In reply to yisun from comment #2)
> is this a fixed bug?
Indeed it is:
Upstream implemented this feature in:
Author: Peter Krempa <email@example.com>
Date: Mon Oct 15 17:35:24 2012 +0200
snapshot: qemu: Add support for external inactive snapshots
This patch adds support for external disk snapshots of inactive domains.
The snapshot is created by calling using qemu-img by calling:
qemu-img create -f format_of_snapshot -o
in case the backing image format is known or probing is allowed and
qemu-img create -f format_of_snapshot -o backing_file=/path/to/src
on each of the disks selected for snapshotting. This patch also modifies
the snapshot preparing function to support creating external snapshots
and to sanitize arguments. For now the user isn't able to mix external
and internal snapshots but this restriction might be lifted in the