VMWare

ESXi Commands – VM Commands

Hello everyone,
Following the recent posts around the ESXi commands, its time to get to the next layer of commands, used in our investigations, which is the VM layer.

To interact with this layer, and view a possible list of namespaces on the VM layer, type in:
esxcli vm [ will return a list of all the VM namespace components ]

On a simple, ESXi 6.0 host, this will return only the process namespace, as below:
Usage: esxcli vm {cmd} [cmd options]
Available Namespaces:
process Operations on running virtual machine processes

Now, as a lab example, lets say we want to list all the running VM processes on the current ESXi host.
To do that, we will explore the namespaces available, using:
esxcli vm process

This will return the command syntax, and the available namespaces:
Usage: esxcli vm process {cmd} [cmd options]
Available Commands:
kill Used to forcibly kill Virtual Machines that are stuck and not responding to normal stop operations.
list List the virtual machines on this system. This command currently will only list running VMs on the system.

To obtain the desired result, we will use the following available command, which is:

esxcli vm process list

This will return all the running VM processes on the ESXi, together with World ID, Process ID, DisplayName, and other useful information.

Also as a lab example, we can use the following command:
esxcli vm process kill
To explore the available options to force kill some of the stuck VM processes on the ESXi, after we list them with the list command.

Click on this link for ESXi Commands – Basic Commands
Click on this link for ESXi Commands – Hardware Commands
Click on this link for ESXi Commands – System Commands
Click on this link for ESXi Command – Network Commands
Click on this link for ESXi Commands – Storage Commands

Tagged , ,