Using the ESX esxcli command to power off a virtual machine

Written by r2d2. Posted in ESX

Using the ESXi esxcli command to power off a virtual machine

The esxcli command can be used locally or remotely to power off a virtual machine running on ESXi 5.x or later. For more information, see the esxcli vm Commands section in the vSphere Command-Line Interface Reference.

  1. Open a console session where the esxcli tool is available, either in the ESXi Shell, the vSphere Management Assistant (vMA), or the location where the vSphere Command-Line Interface (vCLI) is installed.
  2. Get a list of running virtual machines, identified by World ID, UUID, Display Name, and path to the .vmx configuration file by running this command:esxcli vm process list
  3. Power off the virtual machine from the list by running this command:esxcli vm process kill --type= [soft,hard,force] --world-id= WorldNumber

    Notes:

    • Three power-off methods are available. Soft is the most graceful, hard performs an immediate shutdown, and force should be used as a last resort.
    • alternate power off command syntax is: esxcli vm process kill -t [ soft,hard,force] -w WorldNumber
  4. Repeat Step 2 and validate that the virtual machine is no longer running.
41 views

ESXi 6.5 – Memory limit doesn’t accept the negative value -1048576

Written by leif. Posted in ESX, Linux, Tips

Memory limit doesn’t accept the negative value -1048576 error

MacOS Sierra 10.12 and Safari 10.0. Reopening the ‘edit’ screen produces a Memory limit doesn’t accept the negative value -1048576 error. This was also in the previous OS X and Safari error. Reloading the page (cmd + R) fixes it, then you can reopen the edit screen and make changes.

I use Firefox instead, it´s easier.

787 views