Re: How exactly does CloudStack stop a VM?

2018-06-07 Thread Suresh Kumar Anaparti
Hi Zhang, Cloudstack would usually trigger a hypervisor level shutdown cmd for the guest OS to stop the the guest VM. In case of XenServer, a XAPI command for shutdown VM is sent from Cloudstack. Attempted for hard shutdown if force flag is set, else a clean shutdown and if the shutdown

Re: How exactly does CloudStack stop a VM?

2018-06-06 Thread Yiping Zhang
Our VM instances do have xentools installed, though still at 6.2 version, whereas our hypervisors have been upgraded to XenServer 6.5 since the VM instances were created On 6/6/18, 4:20 PM, "Jean-Francois Nadeau" wrote: If the xentools are installed and running in the guest OS it should

Re: How exactly does CloudStack stop a VM?

2018-06-06 Thread Jean-Francois Nadeau
If the xentools are installed and running in the guest OS it should detect the shutdown sent via XAPI. On Wed, Jun 6, 2018 at 6:58 PM, Yiping Zhang wrote: > We are using XenServers with our CloudStack instances. > > On 6/6/18, 3:11 PM, "Jean-Francois Nadeau" > wrote: > > On KVM, AFAIK

Re: How exactly does CloudStack stop a VM?

2018-06-06 Thread Yiping Zhang
We are using XenServers with our CloudStack instances. On 6/6/18, 3:11 PM, "Jean-Francois Nadeau" wrote: On KVM, AFAIK the shutdown is the equivalent of pressing the power button. To get the Linux OS to catch this and initiate a clean shutdown, you need the ACPID service running

Re: How exactly does CloudStack stop a VM?

2018-06-06 Thread Jean-Francois Nadeau
On KVM, AFAIK the shutdown is the equivalent of pressing the power button. To get the Linux OS to catch this and initiate a clean shutdown, you need the ACPID service running in the guest OS. On Wed, Jun 6, 2018 at 6:01 PM, Yiping Zhang wrote: > Hi, all: > > We have a few VM instances which

How exactly does CloudStack stop a VM?

2018-06-06 Thread Yiping Zhang
Hi, all: We have a few VM instances which will hang when issue a Stop command from CloudStack web UI or thru API calls, due to the app’s own startup/stop script in guest OS was not properly invoked. The app’s startup/stop script works properly if we issue shutdown/reboot command in guest OS