Name

vmware-cmd

Synopsis

vmware-cmd [options][vmxpath command]

Console-based virtual machine manager. This command can work on the local system, or connect to a remote system using the Simple Object Access Protocol (SOAP). To connect to a remote system you may need to alter your firewall settings on the system issuing the commands so that it will allow outgoing connections to port 443. See the example in esxcfg-firewall.

The guest you want to work on is identified by the full path to its .vmx configuration file (vmxpath). The path must include the UUID of the vmfs volume and so can be quite long. Use the -l option to get the correct path for all registered virtual machines. While vmware-cmd has options for getting and setting virtual machine configuration values, we don’t cover those here.

Options

-h

Print basic usage and commands.

-H host

Connect to remote host. This can be given as a domain name or IP address.

-s [un]register configfile

Add or remove the guest described in .vmx file found at path from server control.

-l

List virtual machines registered with server.

-O port

Connect to alternative port, specified by port number. The default is port 443.

-P password

Provide password for the user specified in the -U option.

-q

Quiet mode. Minimize output.

-U username

Connect with the given username.

-v

Verbose mode.

Command

Return values for the command generally show the command function and whether they succeed (value 1) or fail (value 0.) Power-related commands generally take an option power operation ...

Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.