Sean's Musings as a Service

Sean's Musings as a Service

Couple of Tips using the ESXi command line

  • Published:
  • categories:
  • tags: virtualization, esxi, vmware, command-line

vim-cmd vmsvc/getallvms

# esxcli vm process list
# vim-cmd vmsvc/ 22


base_image="image name"

pushd ${datastore_path}
mkdir ${new_image} && cp -rf "base-images/${base_image}/*" ${new_image}/

vim-cmd solo/registervm ${datastore_path}/${new_image}/*.vmx

export no_proxy="localhost,,"

sgwilbur@gura:~$ ssh root@
The time and date of this login have been sent to the system logs.

VMware offers supported, powerful system administration tools.  Please
see for details.

The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
~ # vim-cmd cmsvc/getallvms
Invalid command 'cmsvc/getallvms'.
~ # vim-cmd vmsvc/getallvms
Vmid                     Name                                                                   File                                                       Guest OS          Version                                                                                                                                         Annotation                                                                                                                                      
11     Ubuntu Server 13.04                        [datastore1] base-images/Ubuntu Server 13.04/Ubuntu Server 13.04.vmx                               ubuntu64Guest           vmx-08    sgwilbur : Rat1onal
~ # vim-cmd vmsvc/destroy 11