To use the --vm option, you need the current virtual machine configuration file location.

Procedure

  1. Run vmware-cmd -l to list all virtual machine configuration files (VMX files).
    vmware-cmd -H <vc_server> -U <login_user> -P <login_password> -h <esx_host> -l
  2. Choose the VMX file for the virtual machine of interest.
    By default, the virtual disk file has the same name as the VMX file but has a .vmdk extension.
  3. (Optional) Use vifs to verify that you are using the correct VMDK file.