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.

Linux
Migrate WordPress site to another hosting service.

IntroductionThis article details the migration of WordPress site (exactly this site you are now on) from one service provider to Amazon Lightsail. There might be various reason to do that (mine is outlined below) but in general I hope to share the message that especially with WordPress, migration can be …

VMware
VMware Workstation and Fusion can be installed and use for free (even for the enterprise)

For a while now, the VMware Workstation (and Fusion for MacOS) can be used without any additional fee for Personal use. That was a great Broadcom news and nice gesture from that software vendor. Recently Broadcom announced that the software will be available for all, even the commercial sector. This …

Linux
Salt, VMware implementation – part 1, introduction

As every IT administrator knows, the infrastructure (meaning storages, compute, VMware virtualisation stack) is just a fundaments to run various operating systems (OS) and finally (containerized) application. Therefore, installation of (let’s call it) infrastructure in the datacenter (SDDC), in that sense is just the beginning of the adventure. No wonder, …