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.

Free(BSD)
Search for duplicated files

This will be short (but hopefully I will find more time to show entire process to search duplicated files together with some examples). In case you are searching for duplicated files I can recommend two software which actually rocks in openSource world

Azure
NFS issue, cannot be mounted or is not visible

The same kind of issue I have encountered numerous times while working across different environments and with various customers. The problem with NFS mounts connected from remote locations is so common. This issue extends beyond communication solely over WAN and also include connections between datacenters (DC) where we lack control …

Azure
Why Firefox is important and people should use this browser in 2024, my thoughts.

Can you remember the times when everyone was using Internet Explorer? Back in the ’90s and the early part of this century, Internet Explorer dominated the browser market. Software Incompatibility with Other Browsers Incompatibility issues with software and other browsers have been a persistent problem. Even in 2022, this remains …