Friday, April 8, 2011

Use vmrun Command-Line for VMWare Fusion on Mac OS X

I discovered the vmrun command today and thought I would share what I learned.

  1. Open a Terminal, X-Window or your favorite command shell program on your Mac. Paste the following into your Terminal, including the quotes:
    "/Library/Application Support/VMware Fusion/vmrun"
  2. The vmrun command will display usage instructions. Here are the commands I use most:
    Usage: vmrun [AUTHENTICATION-FLAGS] COMMAND [PARAMETERS]
    
    GENERAL COMMANDS         PARAMETERS           DESCRIPTION
    ----------------         ----------           -----------
    list                                          List all running VMs
    
    POWER COMMANDS           PARAMETERS           DESCRIPTION
    --------------           ----------           -----------
    start                    Path to vmx file     Start a VM or Team
                             [gui|nogui]
    
    stop                     Path to vmx file     Stop a VM or Team
                             [hard|soft]
    
    reset                    Path to vmx file     Reset a VM or Team
                             [hard|soft]
    
    suspend                  Path to vmx file     Suspend a VM or Team
                             [hard|soft]
    
    pause                    Path to vmx file     Pause a VM
    
    unpause                  Path to vmx file     Unpause a VM
  3. Here is how I start my NetApp Data ONTAP 8.0.1 7-Mode Simulator
    vmrun start "/Users/lab/Documents/Virtual Machines.localized/7M/DataONTAP.vmx"

No comments:

Post a Comment

Please be respectful of others when commenting.