This article provides information on counter measure for an issue that prevents switchover during bulk migration of HCX.
Bulk Migration fails at the time of cutover with the following error message.
Error message seen in HCX UI:Can not poweroff VM as guest shutdown timed out and forcePowerOff is not set
In the app.log (/common/logs/admin/app.log), a similar error can be found:
2021-03-02 03:12:07.186 UTC [ReplicationTransferService_SvcThread-65273, Ent: HybridityAdmin, , TxId: #####-####-###-823d-94f0a4a331d3] ERROR c.v.h.s.r.j.VirtualmachineOperationJob- Job (#######-####-####-####-175b2cdda7f2) failed with exception Can not poweroff VM as guest shutdown timed out and forcePowerOff is not set java.lang.RuntimeException: Can not poweroff VM as guest shutdown timed out and forcePowerOff is not set at com.vmware.hybridity.service.replicationtransfer.jobs.VirtualmachineOperationJob.doWaitForPowerOffVm(VirtualmachineOperationJob.java:247) at com.vmware.hybridity.service.replicationtransfer.jobs.VirtualmachineOperationJob.run(VirtualmachineOperationJob.java:59) at com.vmware.vchs.hybridity.messaging.LoggingJobWrapper.run(LoggingJobWrapper.java:41
Note: Dates, Times and, UUIDs in the log line above are examples.
VMware HCX
This issue happens when a guest OS does not reach a fully powered off state within 100 seconds of the initial "Shutdown Guest OS" call as part of bulk migration cutover.