Hello Apache CloudStack Community,

Thank you, João Jandre , for your quick response.

I wanted to let you know that I have submitted a feature request here:
https://github.com/apache/cloudstack/issues/10534

I also have one additional query: Is there a way to run an arbitrary command on 
the KVM host using the Apache Cloud Stack interface?

In other words - Can I run my own custom commands on the KVM host (for example, 
using libvirt functions) via CloudStack? This may be suffice for now to perform 
the quiesce and unquiesce ops.

Thanks,
Raj.


-----Original Message-----
From: João Jandre <j...@apache.org> 
Sent: 07 March 2025 18:11
To: users@cloudstack.apache.org
Subject: Re: API Support for Quiescing/Unquiescing Running VMs

EXTERNAL EMAIL - USE CAUTION when clicking links or attachments




Hello, Raj

There currently is no API to quiesce/unquiesce a VM. As you mentioned, there 
are a few snapshot APIs that enable users to do it, but it is done alongside 
the snapshot process.

Since libvirt has APIs specifically to freeze/thaw a VM's filesystem (see 
https://urldefense.com/v3/__https://libvirt.org/html/libvirt-libvirt-domain.html*virDomainFSFreeze__;Iw!!Nhn8V6BzJA!XHLVp2Jz11lhI4cx2O7DmFbdemZMtyMSgha0_cHdTB5Qt9OC-HkQ94aDKkp29p-n9bPPsdIkXGm4ag$
 ), this should not be too hard to implement for KVM. I'm not sure about Xen or 
VMware though.

You could raise an issue on the Github to request this feature. Also, I believe 
that there is still to apply your idea to GSoC.

Best regards,

João Jandre.

On 3/7/25 08:41, Rajasekar P wrote:
> Hello Apache CloudStack Community,
>
> I am currently working with Apache CloudStack version 4.20 and need 
> some clarification regarding controlling the quiesced state of a running VM.
> Specifically, I'm looking for a way to:
>
> 1. Quiesce a VM (i.e., flush filesystem activity or pause relevant
> operations) without stopping it.
> 2. Later, unquiesce the VM to resume its normal operations.
>
> I’m not referring to snapshot-related operations, which internally 
> Queisce and UnQuiesce, rather a standalone feature to manage the 
> quiesced state of a VM for purposes of storage vendor based backup procedures.
>
> Could you please let me know if there is any API support for directly 
> quiescing and unquiescing VMs, or if there is a recommended best 
> practice to achieve this functionality using Apache CloudStack API?
>
> Thank you for your assistance.
>
> Best regards,
> Raj.
>

Reply via email to