Yes, if you turn on a VM, it means "Power ON", but not the OS is running.
hongtu_z...@chinacloudly.com From: li jerry Date: 2019-11-25 15:38 To: dev@cloudstack.apache.org Subject: Reply: VM HA is turned on and off Thank you Andrija I have another problem with VM HA. Our scenario is KVM + ACS 4.11.2; When we found that the guest OS had a blue screen during the test, the VM did not detect that the VM failed and triggered HA. Is this normal? -----邮件原件----- 发件人: Andrija Panic <andrija.pa...@gmail.com> 发送时间: 2019年11月25日 2:10 收件人: dev <dev@cloudstack.apache.org> 抄送: us...@cloudstack.apache.org 主题: Re: VM HA is turned on and off Hi Li, if that works for you, then that's all you need. You can always revert the change back AND test that it works fine (i.e. stop VM and see if ACS will start it again) If you have a need to just occasionally stop the VM from inside the OS - then, assuming you doing some manual work (i.e not automated) - you can always do as following, without changing the DB: 1. Start the OS shutdown sequence inside the VM 2. Quickly, while OS is still being shut down, request a shutdown via CloudStack (even if you are late for 1-2 seconds, it should still be good - the whole idea is to request GUI/API shutdown while ACS still sees the VM as running, even though it might be stopped already but the hypervisor has not yet reported that back to mgmt server) Doing things like that, means ACS will send another ACPI shutdown request to VM (which OS will actually ignore since it's ALREADY being shut down) and the VM will be stopped (since you initiated shutdown from inside the VM), and ACS will see that the VM is stopped, as expected after the API call. I have used this sometimes to hack around the HA enabled VMs. Best Andrija On Sun, 24 Nov 2019 at 15:44, li jerry <div...@hotmail.com> wrote: > Hello All > > I started VM HA through the calculation scheme. > However, at work, it is sometimes necessary to "temporarily" shut down > the HA for testing. > My current practice is to directly modify cloud.ha_enabled=0; > > Is there any hidden danger in this operation? > > > -Jerry > > -- Andrija Panić