To use the --vm
option, you need the current virtual machine configuration file location.
Procedure
- 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
- 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.
- (Optional) Use vifs to verify that you are using the correct VMDK file.