You can use authentication flags in vmrun commands to provide information required to access a system.

For example, you can use an authentication flag to specify the local host type because vmrun commands apply to both VMware Workstation and VMware Fusion host types. You can also use authentication flags to provide the credentials required to access encrypted virtual machines or a guest operating system.

Authentication flags must appear before the command and command parameters.

The vmrun command supports the following authentication flags.

 -T hostType
 -vp password for encrypted virtual machine
 -gu user name in guest operating system
 -gp user password in guest operating system

Running Hosted Platforms Locally

Reviewers: djohn Mon Nov 6 11:20:19 PST 2017

Maybe I should change the paragraph that follows to focus more on Fusion. For example:

"The vmrun utility is available on VMware Workstation and VMware Fusion. The examples in this guide are specific to Fusion. The vmrun utility controls guest operating systems on the local host. You do not need to specify a remote host name or port. Use the -T flag for Fusion as follows.

On VMware Workstation and VMware Fusion, the vmrun utility controls guest operating systems on the local host. You do not need to specify a remote host name or port. Use the -T flag for Fusion as follows.
vmrun -T fusion
Note:
Powering on a virtual machine with the default gui option requires a window system (user interface) to be running on the host.
Reviewers: djohn Fri Oct 20 09:45:42 PDT 2017

I've adjusted the note from the Using vmrun to Control Virtual Machines guide, here:https://www.vmware.com/support/developer/vix-api/vix112_vmrun_command.pdf#page=10.

We shouldn't use parenthesis the way they are used here: (user interface). But I can't tell what is being said by "window system (user interface)." Can this be said more in a more clear way? If we are just talking about Fusion, can se say "...option requires the Fusion interface to be running on the host"?

Encrypted Virtual Machines

Encrypted virtual machines require a password for most operations.

 -vp password for encrypted virtual machine
		

Guest Operations

Guest operations require authentication by the guest operating system.
Reviewers: djohn Fri Oct 20 10:37:44 PDT 2017

The following info comes from the "Guest Operations" section of the following page: https://www.vmware.com/support/developer/vix-api/vix112_vmrun_command.pdf#page=9.

..."so their command descriptions in Table 2, 'vmrun Commands and Parameters,' on page 11 say that a 'valid guest login' is required."

I need to work that info into this description.

Use the following flags to specify the guest login credentials.

-gu  userName in guest operating system

-gp  user password in guest operating system

If authentication information is required, the vmrun utility prompts for it.

Reviewers: djohn Fri Oct 20 10:44:06 PDT 2017

I've dropped two sections that were in the pdf here:

https://www.vmware.com/support/developer/vix-api/vix112_vmrun_command.pdf#page=10

"Running VMware vSphere Remotely"

"Running VMware Server Remotely"

I don't believe they apply to vmrun anymore. Even if they do, I don't think they apply to Fusion. If you disagree, please let me know and suggest how to work them in.