vmrun的简单用法

Power Commands Description Parameters
start

Starts a virtual machine (.vmx file) or team (.vmtm file).

The default gui option starts the machine interactively,

which is required to display a VMware user interface.

The nogui option suppresses the user interface,

including startup dialog box, to allow noninteractive

scripting.

<path to .vmx or .vmtm file>

[ gui | nogui ]

stop

Stops a virtual machine (.vmx file) or team (.vmtm file).

Use the soft parameter to power off the guest after

running shutdown scripts. Use the hard parameter to

power off the guest without running scripts, as if you

pressed the power button. The default is to use the

powerType specified in the .vmx file, if present.

<path to .vmx or .vmtm file>

[ hard | soft ]

reset

Resets a virtual machine (.vmx file) or team (.vmtm file).

Use the soft parameter to run shutdown scripts before

rebooting the guest. Use the hard parameter to reboot

the guest without running scripts, as if you pressed the

reset button. The default is to use the powerType

specified in the .vmx file, if present.

<path to .vmx or .vmtm file>

[ hard | soft ]

suspend

Suspends a virtual machine (.vmx file) or team (.vmtm)

without shutting down, so local work can resume later.

The soft parameter suspends the guest after running

system scripts. On Windows guests, these scripts release

the IP address. On Linux guests, the scripts suspend

networking. The hard parameter suspends the guest

without running the scripts. The default is to use the

powerType specified in the .vmx file, if present.

To resume virtual machine operation after suspend, use

the start command. On Windows, the IP address is

retrieved. On Linux, networking is restarted.

<path to .vmx or .vmtm file>

[ hard | soft ]

pause

Pauses a virtual machine (.vmx file). You can use this

either to pause replay, or to pause normal operation.

<path to .vmx file>
unpause

Resumes operation of a virtual machine (.vmx file) from

where you paused replay or normal operation.

<path to .vmx file>