Contents
Previous Next
Command Line Application: vmrun
VMware Workstation includes a separate application vmrun for operating teams or virtual machines from the command line.
To launch the vmrun application:
From the command prompt:
vmrun COMMAND [OPTION]
Valid vmrun commands and options are described in the following table:
|
Command
|
Description
|
Option
|
|
list
|
Lists all running virtual machines.
|
None
|
|
start
|
Start a VM.
|
Path to vmxf file
|
|
stop
|
Stop a virtual machine or team.
|
Path to vmxf file (VM)
or
Path to vmtm file (Team)
|
|
reset
|
Reset a virtual machine or team.
|
Path to vmxf file (VM)
or
Path to vmtm file (Team)
|
|
suspend
|
Suspend a virtual machine or team.
|
Path to vmxf file (VM)
or
Path to vmtm file (Team)
|
|
upgradevm
|
Upgrades a virtual machine to the current Workstation version. Upgrading allows the greatest compatibility with the latest Workstation features.
Note: You must upgrade VMware Tools from within the guest operating system. See Install VMware Tools.
|
Path to vmxf file
|
Note: Before running this command on a Windows host, you must do one of the following:
Change your working directory to the VMware Workstation directory. For example:
c:\Program Files\Vmware\Workstation
Add the VMware Workstation directory to the system path. On Windows 2000 and XP, this setting is changed from:
Control Panels > System > Advanced > Environment Variables > System variables > Path
Examples for vmrun:
For example, type this command to start a virtual machine:
In a Linux terminal:
vmrun start /usr/local/VMs/<virtual_machine_name>.vmx
On the Windows command line:
vmrun start c:\My Virtual Machines\<virtual_machine_name>.vmx
Note: Vmrun may time out (fail) with virtual machines that require input through a VMware Workstation dialog box. To disable Workstation dialog boxes, insert the following line into the .vmx configuration file for a virtual machine:
msg.autoAnswer = TRUE