+15 votes
1.1k views
in Windows by (6.6k points)
How to list the VM running on an ESXi

1 Answer

+5 votes
by (201k points)
Hi 
 
 VM was totally hung but his state shown in vSphere Client or Web was in "Power On" or, for that GUI was falling and there was no way to connect to the environment if not by command lines.
 
The following command will list not only the VM running , I can also do a "Power off" clean or forced.
 
How to find out which virtual machines are running on an ESXi if we have access to the GUI?
 
We must have SSH enabled on the host but is a best practice not to have it , to send commands to the ESXi without access via SHH , is a very good practice to have vMA to operate with and execute the commands directly into the targets ( HOST, vCenter ) or physical access to the host.
 
This command will list us spectacular VM running on an ESXi specifically:
 
# Esxcli vm process list
 
As you can see in that screenshot , I have the " win01 - esxios05 " Virtual Machine Power On state , if it had any VM on, the Output of that command would be null, not teach anything on the screen .
 
To shut down a virtual machine in particular, we must make the Word ID for each virtual machine, the catch can be seen that the 8785 is for the VM " win01 - esxios05 " .
 
The kill command to a "clean" shutdown would be:
 
# Esxcli vm process kill- t soft / hard / force - w World ID
 
The kill command has 3 types of operations : soft , hard and force .
 
 
Ask a Question
Welcome to WikiTechSolutions where you can ask questions and receive answers from other members of the community.

You can ask a question without registration.

Categories

...