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

Comment Guidelines: In your first comment, please explain if you agree or disagree with statements made in the post. Please also be respectful of others at all times. Pretend like this is a competition to see who can be the most mature and the most intelligent. And remember, you have the right to remain silent. Anything you post here can and will be used against you. I will not delete your posts just because you are embarrassed that your comments make you look like an idiot. Others may or may not treat you with the same respect you have treated them. And finally, thanks for reading and thanks for your comments!