Difference between revisions of "Virsh Snapshots"
Jump to navigation
Jump to search
↑ https://www.berrange.com/posts/2017/02/10/the-surprisingly-complicated-world-of-disk-image-sizes/
↑ https://lists.gnu.org/archive/html/qemu-devel/2018-12/msg03324.html
(13 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
+ | <code>[[qcow2]]</code> internal snapshots are best avoided in favour of extenal snapshots. <ref>https://www.berrange.com/posts/2017/02/10/the-surprisingly-complicated-world-of-disk-image-sizes/</ref>, they do not get much attention.<ref>https://lists.gnu.org/archive/html/qemu-devel/2018-12/msg03324.html</ref> | ||
+ | |||
+ | |||
+ | == [[Libvirt changelog|Libvirt Snapshot releated changelog]] == | ||
+ | |||
+ | * v5.6.0 (2019-08-05) | ||
+ | ** qemu: Allow XML validation for snapshot creation | ||
+ | :: Add flag VIR_DOMAIN_SNAPSHOT_CREATE_VALIDATE to validate snapshot input XML. For virsh, users can use it as <code>[[virsh snapshot-create]] --validate</code> | ||
+ | |||
+ | * v5.2.0 (2019-04-03) | ||
+ | ** [[snapshots]]: Add support for topological listings | ||
+ | |||
+ | * v5.1.0 (2019-03-04) | ||
+ | ** External snapshot metadata redefinition is fixed | ||
+ | ::Attempting to use VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE to reinstate the metadata describing an external snapshot created earlier for an offline domain no longer fails. | ||
+ | |||
+ | * v3.5.0 (2017-07-04) | ||
+ | ** qemu: snapshot: retrieve image metadata from user provided files | ||
+ | ::Disk images of an external snapshot created with VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT flag specified would not be scanned for metadata after recent changes. The metadata is necessary to allow keeping relative paths between images when doing a block-commit. | ||
+ | |||
+ | == Related commands == | ||
+ | * <code>[[virsh list]] --with-[[snapshot]]</code> | ||
+ | * <code>[[virsh backup-begin]]</code> | ||
== Activities == | == Activities == | ||
Line 10: | Line 33: | ||
* {{virsh}} | * {{virsh}} | ||
* {{virsh snapshot}} | * {{virsh snapshot}} | ||
+ | * {{libvirtd}} | ||
[[Category:virsh]] | [[Category:virsh]] |
Latest revision as of 07:40, 13 October 2020
virsh snapshot-create
Create a snapshot from XML. See also:qemu-img
andqemu-img info
virsh snapshot-create-as
Create a snapshot from a set of args.virsh snapshot-current
Get or set the current snapshotvirsh snapshot-dumpxml VM_MACHINE_NAME SNAPSHOT_NAME
Dump XML for a domain snapshotvirsh snapshot-edit
edit XML for a snapshotvirsh snapshot-info
snapshot information. (virsh snapshot-info --domain DOMAIN_NAME --snapshotname SNAPSHOT_NAME)virsh snapshot-list VM_MACHINE_NAME
List snapshots for a domainvirsh snapshot-parent
Get the name of the parent of a snapshotvirsh snapshot-revert
(Destructive action) revert a domain to a snapshotvirsh snapshot-delete
Delete a domain snapshot
qcow2
internal snapshots are best avoided in favour of extenal snapshots. [1], they do not get much attention.[2]
Libvirt Snapshot releated changelog[edit]
- v5.6.0 (2019-08-05)
- qemu: Allow XML validation for snapshot creation
- Add flag VIR_DOMAIN_SNAPSHOT_CREATE_VALIDATE to validate snapshot input XML. For virsh, users can use it as
virsh snapshot-create --validate
- Add flag VIR_DOMAIN_SNAPSHOT_CREATE_VALIDATE to validate snapshot input XML. For virsh, users can use it as
- v5.2.0 (2019-04-03)
- snapshots: Add support for topological listings
- v5.1.0 (2019-03-04)
- External snapshot metadata redefinition is fixed
- Attempting to use VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE to reinstate the metadata describing an external snapshot created earlier for an offline domain no longer fails.
- v3.5.0 (2017-07-04)
- qemu: snapshot: retrieve image metadata from user provided files
- Disk images of an external snapshot created with VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT flag specified would not be scanned for metadata after recent changes. The metadata is necessary to allow keeping relative paths between images when doing a block-commit.
Related commands[edit]
virsh list --with-snapshot
virsh backup-begin
Activities[edit]
See also[edit]
virsh
: Storage information, Connecting, Operations, Memory, Snapshots, Networking, CPU, release notes,virsh nodedev-list
- Virsh Snapshots:
virsh snapshot-create-as
,virsh snapshot-info
,virsh snapshot-list
,virsh blockjob
,virsh snapshot-revert (Destructive action)
,virsh snapshot-delete
- libvirtd:
systemctl status libvirtd
,systemctl status libvirt-guests
, Libvirt release notes, logs,libvirtd.conf
,/etc/libvirt/
,/var/log/libvirt/
Advertising: