12.0

Table Of Contents
The vmrun General Commands and Parameters
Option Parameters Description
list Lists all running virtual machines.
upgradevm
path to .vmx file
Upgrades a virtual machine to the current virtual hardware version. Has
no effect if the virtual hardware version is the most recent supported.
Power off the virtual machine, such as with the vmrun stop command.
Wait a short period of time for the command to finish. Then run the vmrun
upgradevm command.
installTools
path to .vmx file
Prepares to install VMware Tools in the guest operating system. In
Windows guests with autorun enabled, the VMware Tools installer starts
by itself. In Linux guests without autorun, the command connects the
virtual CDROM drive to the VMware Tools ISO image suitable for the
guest, but the installer does not start.
You must complete the installation with additional manual steps, as
described in the product documentation.
checkToolsState
path to .vmx file
Checks the status of VMware Tools in the guest. The possible states are
unknown, installed, and running.
deleteVM
path to .vmx file
Deletes a virtual machine.
clone
path to .vmx file
destination .vmx file path
full|linked
[-snapshot=Snapshot Name]
[-cloneName=Name]
Only Fusion Pro supports the clone option.
Creates a copy of the virtual machine.
The
vmrun Template Virtual Machine Commands and Parameters
Option
Parameters Description
downloadPhotonVM
path to save the downloaded VM
Downloads a VMware Project Photon operating system virtual
machine.
Examples of vmrun Commands
The command-line examples that follow work on VMware Fusion. Ubuntu16 is the virtual machine
example for Linux and Win10 is the virtual machine example for Windows.
Reboot Commands
n Reboot a virtual machine.
vmrun reset Win10.vmwarevm/Win10.vmx soft
Snapshot Commands
n Create a snapshot of a virtual machine
vmrun snapshot Ubuntu16.vmwarevm/Ubuntu16.vmx mySnapshot
n List snapshots on the virtual machine, showing the snapshot created in the previous
command.
Using VMware Fusion
VMware, Inc. 200