Skip to content

Commit 7b488a9

Browse files
Merge pull request #571 from shapeblue/vm-snap
Some info on Instance Snapshots causing VM to pause on KVM
2 parents 5e4cd0c + 4b74f72 commit 7b488a9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

source/adminguide/virtual_machines.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,8 @@ When the snapshotting is complete, the Instance is thawed.
12701270

12711271
You can use this functionality on Instances with raw block storages (E.g. Ceph/SolidFire/Linstor).
12721272

1273+
.. _Disk-only-File-based-Storage-Instance-Snapshots-on-KVM:
1274+
12731275
Disk-only File-based Storage Instance Snapshot on KVM
12741276
-----------------------------------------------------
12751277

@@ -1303,6 +1305,25 @@ Limitations on Instance Snapshots
13031305
managed by CloudStack. Any Snapshots that you make directly on the
13041306
hypervisor will not be tracked in CloudStack.
13051307

1308+
Pause During Live Instance Snapshots on KVM
1309+
-------------------------------------------
1310+
1311+
When creating **Instance Snapshots with Memory**, CloudStack uses Libvirt’s
1312+
*domain snapshot* API to create an Internal Snapshot that includes Memory.
1313+
The guest’s memory state is written directly into the root volume’s QCOW2 file.
1314+
This causes the instance to pause for the duration of the memory dump. The pause
1315+
time is typically much longer than with VMware snapshots, but this is a limitation
1316+
with Internal Snapshots in Libvirt.
1317+
1318+
**Instance Snapshots without Memory** has seen significant improvements since Cloudstack 4.21 with the
1319+
:ref:`Disk-only-File-based-Storage-Instance-Snapshots-on-KVM` feature for NFS and local storage.
1320+
Pre 4.21, the Instance would be frozen for the entire duration of the snapshot create operation.
1321+
Since 4.21, the Instance is only frozen during the checkpointing operation, which is significantly less.
1322+
1323+
Users looking for the Instance Snapshot feature in KVM are recommended to use the
1324+
:ref:`Disk-only-File-based-Storage-Instance-Snapshots-on-KVM` feature, if the pause duration is a concern.
1325+
App consistent snapshots can be created by using the ``quiescevm`` parameter with pre and post-freeze hooks.
1326+
The Instance should have Qemu Guest Agent installed for this to work.
13061327

13071328
Configuring Instance Snapshots
13081329
------------------------------

0 commit comments

Comments
 (0)