Symptoms: virtual system cannot be powered off from the vCenter or ESXi UI.

Symptoms: virtual system cannot be poweredoff from the vCenter or ESXi ui console.

Cause:

So, you have just checked that there is no communication between vCenter or inside ESXi between services. From ESXi shell you are getting “connection failed” with esxcli and other commands.

This can be caused by ADP of some datastore connectivity problem (as I saw this several time) or internal disk issues.

Most of the time operation on ESXi and virtual systems from ESXi CLI are done with esxcli command like the below – which in this situation you would probably do to stop system and register VM on other host.

esxcli vm process list

esxcli vm process kill -w <numer world-id>

Above commands can failed with information: “connection failed”.

In such situation you can use the following command, which probably will also fail:

vim-cmd vmsvc/getallvms
vim-cmd vmsvc/power.shutdown vmid
vim-cmd vmsvc/power.off vmid

So administrator can feel unarmed without above powerful command.

In such case you can use the following command

localcli vm process list
localcli vm process kill --world-id 74431 --type force

other parameters:
soft = prefer this if you want to shut down “softly”
hard = equal to an immediate shutdown
force = hard kill of the VM

Please keep in mind that using localcli command will not necessarily update all vmware services (files etc.) For such reason using localcli command shouldn’t be yours first choice.

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

VMware
VCF, backup configuration

Backup implementation for VMware component is fairly easy. Just the requirements is to configure SFTP server in proper way and make it network available to the VMware components. SDDC Manager and NSX Manager backup In VCF Operations it is possible to configure backup for SDDC Manager and NSX Manager. Go …

VMware
VCF Automation, fresh environment configuration with identity providers and access control.

Introduction Login Login as user admin to the Organization name: system or if selected manual: Check the connections (in Administration section), where you should see connection to the vCenter and NSX-t manager as those are provided automatically via VCF Operations: the same for VCF Instances: Also check your networking: Identity …

VMware
VCF SoS

SoS (Supportability and Serviceability) command can be used for troubleshooting purpose to generate VCF (per component) log bundle, massively enable/disable ssh service on ESXi, vCenter, password and certificates expiry status, verify cluster health and many other. while troubleshooting, the following commands can be helpful: