Hello.
https://libvirt.org/news.html#v8-2-0-2022-04-01
https://libvirt.org/kbase/snapshots.html

Libvirt 8.2 has manual snapshot feature.

Will it help for making VM snapshot?

To achieve this such disks can use snapshot mode manual. When a snapshot has a disk in manual mode the following happens:
libvirt takes snapshot of the VM memory if requested
If a live snapshot is requested (VIR_DOMAIN_SNAPSHOT_CREATE_LIVE) the VM runs until the memory snapshot phase completes and is then paused.
Otherwise the VM is paused right away.
Snapshot of disks which are marked for external snapsot is executed
The API return success, the VM is paused.
The user snapshots the externally managed storage
The user resumes the execution of the VM (virsh resume $VM)

On 2023/11/16 08:11:02 Slavka Peleva wrote:
Hi Bryan,

Sorry, I haven't done any research about how to take the memory.
Unfortunately, with the current implementation, I don't think there is any
workaround.

Best regards,
Slavka

On Thu, Nov 16, 2023 at 9:51 AM Bryan Tiang
wrote:

> Hi Slavka,
>
> Thanks! Another question, I understand that Storage-based Instance
> Snapshots on KVM does not support memory snapshot.
>
> Are there any workaround to allow memory snapshot?
>
> Still using KVM and Linstor
>
> Regards,
> Bryan
> On 16 Nov 2023 at 3:21 PM +0800, Slavka Peleva
> , wrote:
> > Hi Bryan,
> >
> > Yes, you need qemu-guest-agent to be installed. This operation creates a
> > volume snapshot for each volume that is attached to the VM while the
> > virtual machine is frozen.
> > Storage-based Instance Snapshots on KVM
> > <
> 
https://docs.cloudstack.apache.org/en/latest/adminguide/virtual_machines.html#storage-based-instance-snapshots-on-kvm
> >
> >
> > Best regards,
> > Slavka
> >
> > On Thu, Nov 16, 2023 at 7:47 AM Bryan Tiang
> > wrote:
> >
> > > Hey Swen,
> > >
> > > Thanks for this. But for this to work, we need to make sure each VM
> > > spinner up has the QEMU agent installed, right?
> > >
> > > Regards,
> > > Bryan
> > > On 10 Nov 2023 at 9:54 PM +0800, m...@swen.io, wrote:
> > > > Hi Bryan,
> > > >
> > > > you can use KVM with linstor to do VM snapshots. You just need to
> enable
> > > kvm.snapshot.enabled and kvm.vmstoragesnapshot.enabled in global
> settings.
> > > No NFS storage needed at all.
> > > >
> > > > Regards,
> > > > Swen
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Bryan Tiang
> > > > Gesendet: Freitag, 10. November 2023 14:12
> > > > An: Vivek Kumar via users
> > > > Betreff: Cloudstack Linstor cant do live vm snapshots?
> > > >
> > > > Hi Community,
> > > >
> > > > We are using Cloudstack with Linstor. We want to achieve live
> snapshots
> > > as this is an important feature for us (can’t live without it).
> > > >
> > > > But based on the Cloudstack documentation, KVM Supports VM Snapshots
> > > only when using NFS Shared Storage.
> > > >
> > > > Linstor does support NFS, but there are some limitations to it such
> as
> > > not being able to resize the NFS share file (need to create a new NFS
> and
> > > do manual migration).
> > > >
> > > > How are other users overcoming this issue with Cloudstack + Linstor?
> Our
> > > setup details below:
> > > >
> > > > Compute Hypervisor: Ubuntu 20/22 LTS KVM Primary Storage: Linstor Raw
> > > Block Storage
> > > >
> > > > Regards,
> > > > Bryan
> > > >
> > > >
> > >
>

Reply via email to