Thanks again João Jandre. I completely agree, I tool felt the same, it could leads to security issues.
Regards, Raj On Mon, 10 Mar, 2025, 9:51 pm João Jandre, <j...@apache.org> wrote: > Hi, Raj > > This is also not currently possible, and I'm not sure if it should be. > This is a rather dangerous feature to implement, as it allows the users > to easily break their VMs and cause inconsistencies with ACS's DB. You > could change the VM's status and/or configuration without ACS's > knowledge and this would definitely lead to issues down the line. > Generally speaking it is not advised to execute custom commands directly > to the hypervisor, as it comes with the risks that I just mentioned. > > It is safer to have your use case implemented into ACS and let the > platform deal with the hypervisors and keep track of the relevant metadata. > > Best regards, > > João Jandre. > > On 3/10/25 10:57, P, Rajasekar wrote: > > 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. > >> >